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

Rename Observer to ValueObserver (#734)

* Observer -> ValueObserver

* Move wrappers into async.go
This commit is contained in:
Joshua MacDonald
2020-05-18 11:03:43 -07:00
committed by GitHub
parent 76baa9cc7a
commit ee3c9ed1a5
23 changed files with 142 additions and 142 deletions

View File

@ -76,8 +76,8 @@ func main() {
oneMetricCB := func(result metric.Float64ObserverResult) {
result.Observe(1, commonLabels...)
}
_ = metric.Must(meter).RegisterFloat64Observer("ex.com.one", oneMetricCB,
metric.WithDescription("An observer set to 1.0"),
_ = metric.Must(meter).RegisterFloat64ValueObserver("ex.com.one", oneMetricCB,
metric.WithDescription("A ValueObserver set to 1.0"),
)
valuerecorderTwo := metric.Must(meter).NewFloat64ValueRecorder("ex.com.two")