1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/metric/internal/global
Tyler Yahn c0fb8dec4c
Remove the unneeded Observe method from the async instruments (#3586)
* Update RegisterCallback and Callback decls

RegisterCallback accept variadic Asynchronous instruments instead of a
slice.

Callback accept an observation result recorder to ensure instruments
that are observed by a callback.

* Update global impl

* Update noop impl

* Update SDK impl

* Fix prometheus example

* Fix metric API example_test

* Remove unused registerabler

* Rename ObservationRecorder to MultiObserver

* Update Callback documentation about MultiObserver

* Remove the Observe method from async inst

* Revert to iface for Observers

* Fix async inst docs

* Update global async delegate race test

* Restore removed observe doc

* Remove TODO

* Remove stale comment

* Update changelog
2023-01-25 12:58:09 -08:00
..
instruments_test.go Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
instruments.go Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
meter_test.go Redesign RegisterCallback API (#3584) 2023-01-19 08:18:26 -06:00
meter_types_test.go Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
meter.go Remove stale comments from metric global (#3603) 2023-01-19 10:44:37 -08:00
state_test.go typo fix (#2991) 2022-07-05 11:35:21 -04:00
state.go Allow non-comparable global types (#2773) 2022-04-07 13:22:19 -07:00