-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API] Remove Meters #2184
Comments
Thanks @lalitb . I am working on Assigning to you then. I can help with testing and review. |
Adding the blocking tag, as using opentelemetry-cpp for metrics is not possible without this fix, when instrumenting meters in shared libraries (that can disappear upon unload) |
After additional analysis, there is no real use case for removing instruments individually. The entry point for an instrumented library is MeterProvider::GetMeter(), and an instrumented library will define its own meters. As a result, removing a meter, which imply to remove all the associated instruments, at once, is sufficient. |
Related to:
Context
Using opentelemetry-cpp 1.9.1
Using metrics, with asynchronous instruments.
Using callbacks located in a shared library.
Use case:
Measurements are taken invoking the callback, and are exported.
Then:
From this point, no new measurements are called.
The OTLP HTTP exporter however, still exports data about the metrics no longer measured, as seen in the opentelemetry-collector logs in the endpoint.
In my understanding, this is due to the aggregations used:
Please provide:
so that exporters no longer report anything about defunct Meter and Metrics.
This is blocking: in practice, using Metrics with shared libraries is not possible currently with opentelemetry-cpp.
The text was updated successfully, but these errors were encountered: