package global

Import Path
	go.opentelemetry.io/otel/api/global (on go.dev)

Dependency Relation
	imports 9 packages, and imported by one package


Package-Level Type Names (only one, which is unexported)
/* sort exporteds by: | */
Package-Level Functions (total 11, all are exported)
ErrorHandler returns the global ErrorHandler instance. If no ErrorHandler instance has been set (`SetErrorHandler`), the default ErrorHandler which logs errors to STDERR is returned.
Handle is a convience function for ErrorHandler().Handle(err)
Meter creates an implementation of the Meter interface from the global Provider. The instrumentationName must be the name of the library providing instrumentation. This name may be the same as the instrumented code only if that code provides built-in instrumentation. If the instrumentationName is empty, then a implementation defined default name will be used instead. This is short for MeterProvider().Meter(name)
MeterProvider returns the registered global meter provider. If none is registered then a default meter provider is returned that forwards the Meter interface to the first registered Meter. Use the meter provider to create a named meter. E.g. meter := global.MeterProvider().Meter("example.com/foo") or meter := global.Meter("example.com/foo")
Propagators returns the registered global propagators instance. If none is registered then an instance of propagators.NoopPropagators is returned.
SetErrorHandler sets the global ErrorHandler to be h.
SetMeterProvider registers `mp` as the global meter provider.
SetPropagators registers `p` as the global propagators instance.
SetTraceProvider registers `tp` as the global trace provider.
TraceProvider returns the registered global trace provider. If none is registered then an instance of trace.NoopProvider is returned. Use the trace provider to create a named tracer. E.g. tracer := global.TraceProvider().Tracer("example.com/foo") or tracer := global.Tracer("example.com/foo")
Tracer creates a named tracer that implements Tracer interface. If the name is an empty string then provider uses default name. This is short for TraceProvider().Tracer(name)
Package-Level Variables (total 2, neither is exported)