Skip to content
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

Implement a delegating no-op LoggerProvider #1886

Closed
hectorhdzg opened this issue Jan 3, 2024 · 1 comment
Closed

Implement a delegating no-op LoggerProvider #1886

hectorhdzg opened this issue Jan 3, 2024 · 1 comment

Comments

@hectorhdzg
Copy link
Member

hectorhdzg commented Jan 3, 2024

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 #3622

@hectorhdzg
Copy link
Member Author

Created issue in opentelemetry-js repo now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant