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

Disabling tracing throws error #64

Open
ibogdandi opened this issue Dec 23, 2024 · 0 comments
Open

Disabling tracing throws error #64

ibogdandi opened this issue Dec 23, 2024 · 0 comments

Comments

@ibogdandi
Copy link

Hello,
when disabling tracing in the instrumentation.yaml configuration with monolog extension enabled the Instrumentation\Tracing\Instrumentation\LogHandler\TracingHandler still gets prepended to monolog.handlers.
This behaviour throws an error:
The service "monolog.logger" has a dependency on a non-existent service Istrumentation\Tracing\Instrumentation\LogHandler\TracingHandler".
Error is thrown because with tracing.enabled=false the extension is not loading the tracing.php which contains the TracingHandler service.

Suggestion is to check wether the tracing is enabled, and if so, prepend the monolog extension.

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