mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-24 03:47:19 +02:00
* Update otel.Meter to global.Meter in Getting Started Document. (#2087) Signed-off-by: lastchiliarch <lastchiliarch@163.com> * Update CHANGELOG.md Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
This commit is contained in:
parent
00a1ec5fc4
commit
d3063a3d12
@ -152,7 +152,7 @@ To set up some metric instruments, add the following code to your `main.go` file
|
||||
|
||||
commonAttributes := []attribute.KeyValue{lemonsKey.Int(10), attribute.String("A", "1"), attribute.String("B", "2"), attribute.String("C", "3")}
|
||||
|
||||
meter := otel.Meter("ex.com/basic")
|
||||
meter := global.Meter("ex.com/basic")
|
||||
|
||||
observerCallback := func(_ context.Context, result metric.Float64ObserverResult) {
|
||||
result.Observe(1, commonAttributes...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user