mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-19 21:45:50 +02:00
Support named Meters, use global package (#258)
* Support named Meters, use global package * Comments/typos fixed
This commit is contained in:
committed by
rghetia
parent
915775e348
commit
8862436993
@@ -26,8 +26,7 @@ import (
|
||||
|
||||
var (
|
||||
tracer = global.TraceProvider().GetTracer("ex.com/basic")
|
||||
|
||||
meter = metric.GlobalMeter() // TODO: should share resources ^^^?
|
||||
meter = global.MeterProvider().GetMeter("ex.com/basic") // TODO: should share resources ^^^?
|
||||
|
||||
fooKey = key.New("ex.com/foo")
|
||||
barKey = key.New("ex.com/bar")
|
||||
|
||||
Reference in New Issue
Block a user