Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MeterProvider ¶
MeterProvider returns the registered global meter provider. If none is registered then an instance of metric.NoopProvider is returned. Use the trace provider to create a named meter. E.g.
meter := global.MeterProvider().GetMeter("example.com/foo")
func SetMeterProvider ¶
SetMeterProvider registers `mp` as the global meter provider.
func SetTraceProvider ¶
SetTraceProvider registers `tp` as the global trace provider.
func TraceProvider ¶
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().GetTracer("example.com/foo")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.