1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/metric/instrument
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
..
asyncfloat64 Deprecate the syncint64/syncfloat64/asyncint64/asyncfloat64 packages (#3575) 2023-01-10 15:06:24 -08:00
asyncint64 Deprecate the syncint64/syncfloat64/asyncint64/asyncfloat64 packages (#3575) 2023-01-10 15:06:24 -08:00
syncfloat64 Deprecate the syncint64/syncfloat64/asyncint64/asyncfloat64 packages (#3575) 2023-01-10 15:06:24 -08:00
syncint64 Deprecate the syncint64/syncfloat64/asyncint64/asyncfloat64 packages (#3575) 2023-01-10 15:06:24 -08:00
asyncfloat64_test.go Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
asyncfloat64.go Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
asyncint64_test.go Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
asyncint64.go Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
instrument.go Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00
syncfloat64_test.go Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00
syncfloat64.go Deprecate the syncint64/syncfloat64/asyncint64/asyncfloat64 packages (#3575) 2023-01-10 15:06:24 -08:00
syncint64_test.go Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00
syncint64.go Deprecate the syncint64/syncfloat64/asyncint64/asyncfloat64 packages (#3575) 2023-01-10 15:06:24 -08:00