-
Notifications
You must be signed in to change notification settings - Fork 494
Open
Labels
triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Description
Sometimes it makes sense to shut down a meter provider manually. However, the destructor of MeterProvider
also calls Shutdown()
[1], which will emit a warning if the MeterProvider
was Shutdown()
already manually [2]. So effectively every manual call to MeterProvider
will create a warning message.
Ideally, if the meter provider was already shut down manually, the destructor would not emit a warning, I think.
[1]
context_->Shutdown(); |
[2]
OTEL_INTERNAL_LOG_WARN("[MeterContext::Shutdown] Shutdown can be invoked only once."); |
Copilot
Metadata
Metadata
Assignees
Labels
triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.