1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/example
Tyler Yahn 4014204d42
Allow multi-instrument callbacks to be unregistered (#3522)
* Update Meter RegisterCallback method

Return a Registration from the method that can be used by the caller to
unregister their callback.

Update documentation of the method to better explain expectations of
use and implementation.

* Update noop impl

* Update global impl

* Test global Unregister concurrent safe

* Use a map to track reg in global impl

* Update sdk impl

* Use a list for global impl

* Fix prom example

* Lint metric/meter.go

* Fix metric example

* Placeholder for changelog

* Update PR number in changelog

* Update sdk/metric/pipeline.go

Co-authored-by: Aaron Clawson <3766680+MadVikingGod@users.noreply.github.com>

* Add test unregistered callback is not called

Co-authored-by: Aaron Clawson <3766680+MadVikingGod@users.noreply.github.com>
2022-12-16 12:02:42 -08:00
..
fib Release v1.11.2/v0.34.0 (#3512) 2022-12-05 13:43:20 -06:00
jaeger Release v1.11.2/v0.34.0 (#3512) 2022-12-05 13:43:20 -06:00
namedtracer Release v1.11.2/v0.34.0 (#3512) 2022-12-05 13:43:20 -06:00
opencensus Release v1.11.2/v0.34.0 (#3512) 2022-12-05 13:43:20 -06:00
otel-collector Release v1.11.2/v0.34.0 (#3512) 2022-12-05 13:43:20 -06:00
passthrough Release v1.11.2/v0.34.0 (#3512) 2022-12-05 13:43:20 -06:00
prometheus Allow multi-instrument callbacks to be unregistered (#3522) 2022-12-16 12:02:42 -08:00
view Release v1.11.2/v0.34.0 (#3512) 2022-12-05 13:43:20 -06:00
zipkin Release v1.11.2/v0.34.0 (#3512) 2022-12-05 13:43:20 -06:00