opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

Implement a delegating no-op LoggerProvider

Open hectorhdzg opened this issue 1 year ago • 3 comments
trafficstars

Is your feature request related to a problem? Please describe Currently when a LoggerProvider is registered via logs.setGlobalLoggerProvider() after acquiring a logs.getLoggerProvider() elsewhere, the previously acquired LoggerProvider will stay no-op forever unless replaced manually.

Describe the solution you'd like to see 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.

Additional context Related to https://github.com/open-telemetry/opentelemetry-js/issues/3622

hectorhdzg avatar Jan 03 '24 22:01 hectorhdzg

Seems like a pretty straightforward win and usability improvement to me

dyladan avatar Jan 05 '24 18:01 dyladan

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Mar 18 '24 06:03 github-actions[bot]

This issue was closed because it has been stale for 14 days with no activity.

github-actions[bot] avatar Apr 08 '24 06:04 github-actions[bot]