global

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MeterProvider

func MeterProvider() metric.Provider

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

func SetMeterProvider(mp metric.Provider)

SetMeterProvider registers `mp` as the global meter provider.

func SetTraceProvider

func SetTraceProvider(tp trace.Provider)

SetTraceProvider registers `tp` as the global trace provider.

func TraceProvider

func TraceProvider() 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().GetTracer("example.com/foo")

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL