opentelemetry-go
opentelemetry-go copied to clipboard
Deinal of metric collection via adversiral callback registration.
Description
If there is an error reported in any callback function no
Environment
tested with, but should apply to all
- OS: linx
- Architecture: amd64
- Go Version: 1.19.4
- opentelemetry-go version: v1.13.0/v.0.36.0
Steps To Reproduce
The example provided has two different "libraries" one for single callback and another for multicallback. Both only return an error. This behavior will happen for any callback that errors.
- clone example project: https://github.com/MadVikingGod/adversirial-callback
- run, this should have a populated Resource Metric printed
- uncomment either import
- run, This won't have any metrics printed.
Expected behavior
In the example above importing a callback which errors should not prevent other metrics from being reported.
Hey @MadVikingGod
I can't reproduce this with v1.14.0/v.0.37.0
It seems this has been resolved already with PR #3732
But I can work on it if we still want to patch version v1.13.0/v.0.36.0