-
Notifications
You must be signed in to change notification settings - Fork 953
Open
Labels
api:metricsIssues and PRs related to the Metrics APIIssues and PRs related to the Metrics APIfeature-requestnever-stale
Milestone
Description
Is your feature request related to a problem? Please describe.
Currently when a MeterProvider is registered via metrics.setMeterProvider() after acquiring a metrics.getMeterProivder() elsewhere, the previously acquired MeterProvider will stay no-op forever unless replaced manually. This causes instrumentations that are registered before the creation of an SDK MeterProvider to never provide any metrics.
Describe the solution you'd like
Implementing the same delegating-noop similar to the one in the trace API, where a ProxyTracerProvider and ProxyTracer delegate calls to either the registered SDK instance or a NoopTracerProvider or NoopTracer.
Describe alternatives you've considered
- providing a hook in the API for instrumentations to update their
MeterProvider,Meter, orInstrumentinstances, once a newMeterProvideris registered. However, this may require significant implementation overhead for anyone who wants to take care of such a case.
Additional context
Related
Metadata
Metadata
Assignees
Labels
api:metricsIssues and PRs related to the Metrics APIIssues and PRs related to the Metrics APIfeature-requestnever-stale