1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-25 22:41:46 +02:00

Rename GetMeter() to Meter() (#357)

This commit is contained in:
Cheng-Lung Sung
2019-11-27 01:54:05 +08:00
committed by Joshua MacDonald
parent 5f776dbaed
commit 1b08d827a4
9 changed files with 11 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ func ExampleNew() {
ctx := context.Background()
key := key.New("key")
meter := pusher.GetMeter("example")
meter := pusher.Meter("example")
counter := meter.NewInt64Counter("a.counter", metric.WithKeys(key))
labels := meter.Labels(key.String("value"))