1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-05 00:28:58 +02:00

Rename Register* to New* (#761)

This commit is contained in:
Joshua MacDonald
2020-05-21 15:42:14 -07:00
committed by GitHub
parent d6446f0336
commit b17a7845df
11 changed files with 101 additions and 101 deletions

View File

@ -77,7 +77,7 @@ func main() {
oneMetricCB := func(_ context.Context, result metric.Float64ObserverResult) {
result.Observe(1, commonLabels...)
}
_ = metric.Must(meter).RegisterFloat64ValueObserver("ex.com.one", oneMetricCB,
_ = metric.Must(meter).NewFloat64ValueObserver("ex.com.one", oneMetricCB,
metric.WithDescription("A ValueObserver set to 1.0"),
)