From d3063a3d1265fbffb93ae20f41326740f57b4cf7 Mon Sep 17 00:00:00 2001 From: "sicong.huang" Date: Sat, 17 Jul 2021 00:18:22 +0800 Subject: [PATCH] Update otel.Meter to global.Meter in Getting Started Document.(#2087) (#2093) * Update otel.Meter to global.Meter in Getting Started Document. (#2087) Signed-off-by: lastchiliarch * Update CHANGELOG.md Co-authored-by: Anthony Mirabella --- website_docs/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_docs/getting-started.md b/website_docs/getting-started.md index dce9a429691..8c19b072461 100644 --- a/website_docs/getting-started.md +++ b/website_docs/getting-started.md @@ -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...)