Skip to content

Disabling tracing/data collector of http_client #60496

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

Closed
Grummfy opened this issue May 21, 2025 · 2 comments
Closed

Disabling tracing/data collector of http_client #60496

Grummfy opened this issue May 21, 2025 · 2 comments

Comments

@Grummfy
Copy link
Contributor

Grummfy commented May 21, 2025

Description

Hello,
by default, http_client service enable tracer wrapper when data_collector.http_client exist.
So it's impossible to disable the tracing mode without changing the definition of the injected service.

I think having a configuration that allow to disable the tracing or even enable it with kernel.debug would be nice.

This can solve issue like #45974 when a worker runs, you don't always need tracing.

So for me this can be achieve in several ways

  • configuration to disable data_collector
  • configuration to disable tracing directly
  • ....

thanks

Example

No response

@nicolas-grekas
Copy link
Member

We improved the logic to enable tracing in Symfony 7.3. Can you please try it and see if this would still need to be addressed?

@Grummfy
Copy link
Contributor Author

Grummfy commented May 21, 2025

Indeed I just seen #60243
It will work (for now I'm still in the last LTS, so 6.4).

Thanks

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

No branches or pull requests

3 participants