Documentation ¶
Index ¶
Constants ¶
This section is empty.
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.
func IsExporterSupported ¶ added in v1.12.0
func IsExporterSupported(exporter SpanExporterType) bool
IsExporterSupported returns true if the given exporter is supported.
Types ¶
type SpanExporterType ¶
type SpanExporterType = string
SpanExporterType specifies the type of span exporter used by tracer provider.
const ( // None is the noop span exporter. None SpanExporterType = "" // Default is the default span exporter to be used with any Open Telemetry-compatible agent. Default SpanExporterType = "DEFAULT" // Jaeger is the Jaeger span exporter. //Deprecated: use Default instead. Jaeger SpanExporterType = "JAEGER" // Stdout is the stdout span exporter. Stdout SpanExporterType = "STDOUT" )
Click to show internal directories.
Click to hide internal directories.