1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/metric
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
..
global Add godot linter to golangci (#2845) 2022-04-25 13:22:49 -07:00
instrument Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
internal/global Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
unit Use already enabled revive linter and add depguard (#2883) 2022-05-19 15:15:07 -05:00
config.go Revert Adding attributes to the instrumentation scope. 2022-09-09 09:06:58 -05:00
doc.go [API EPIC 4/4] Fix tests and examples (#2587) 2022-03-02 09:50:29 -06:00
example_test.go Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
go.mod Release v1.11.2/v0.34.0 (#3512) 2022-12-05 13:43:20 -06:00
go.sum dependabot updates Mon Oct 31 15:24:02 UTC 2022 (#3433) 2022-10-31 08:54:41 -07:00
meter.go Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
noop_test.go Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00
noop.go Remove the unneeded Observe method from the async instruments (#3586) 2023-01-25 12:58:09 -08:00