Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider represents the tracer provider. Depending on the `config.Disabled` parameter, it will either use a "live" provider or a "no operations" version. The "no operations" means, tracing will be globally disabled.
func NewProvider ¶
func NewProvider(config ProviderConfig) (Provider, error)
New returns a new `Provider` type. It uses Jaeger exporter and globally sets the tracer provider as well as the global tracer for spans.
type ProviderConfig ¶
type ProviderConfig struct {
JaegerEndpoint string
ServiceName string
ServiceVersion string
Environment string
}
ProviderConfig represents the provider configuration and used to create a new `Provider` type.
type TraceService ¶
type TraceService interface {
AddSpanTags(span trace.Span, tags map[string]string)
AddSpanEvents(span trace.Span, name string, events map[string]string)
AddSpanError(span trace.Span, err error)
FailSpan(span trace.Span, msg string)
}
func NewTraceService ¶
func NewTraceService() TraceService
Click to show internal directories.
Click to hide internal directories.