Documentation ¶
Index ¶
Constants ¶
View Source
const ( JaegerAgentEndpointEnvKey = "OTEL_EXPORTER_JAEGER_AGENT_HOST" JaegerCollectorEndpointEnvKey = "OTEL_EXPORTER_JAEGER_ENDPOINT" )
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(exporter SpanExporterType, serviceName string) (func(), trace.Tracer, error)
Initialize creates and registers globally a new tracer provider with specified span exporter. Return values are: - func() - Should be called to gracefully shut down the tracer provider before the process terminates. - trace.Tracer - Used to start new spans. - error - An error if the tracer provider could not be initialized or nil if successful.
Types ¶
type SpanExporterType ¶
type SpanExporterType = string
SpanExporterType specifies the type of span exporter used by tracer provider.
const ( None SpanExporterType = "" Jaeger SpanExporterType = "JAEGER" Stdout SpanExporterType = "STDOUT" )
Click to show internal directories.
Click to hide internal directories.