Skip to content

Commit

Permalink
Update otel.Meter to global.Meter in Getting Started Document.(#2087) (
Browse files Browse the repository at this point in the history
…#2093)

* Update otel.Meter to global.Meter in Getting Started Document. (#2087)

Signed-off-by: lastchiliarch <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Anthony Mirabella <[email protected]>
  • Loading branch information
lastchiliarch and Aneurysm9 authored Jul 16, 2021
1 parent 00a1ec5 commit d3063a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit d3063a3

Please sign in to comment.