-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpClient] TraceableHttpClient: increase decorator's priority #47836
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
Conversation
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
fec41fe
to
c0c33a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense to me
Got it, we don't care as the http-client collector is not about tracing code execution but requests/responses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means we have to adjust the decoration priority of RetryableHttpClient
as well on higher branches:
symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Line 2411 in af6a777
->setDecoratedService($name, null, 10) // higher priority than TraceableHttpClient |
which might be more risky BC-wise (see #38633 for background)
1e3f943
to
a4e3b93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set the priority to 5 instead, to account for @chalasr's well spotted comment.
Thank you @adpeyre. |
Hello,
When I decorate my http client, all requests are not collected and visible in the profiler because of the decorator's priority of TraceableHttpClient (sub request for example). I think it should be increased. I fixed an arbitrary value of 100.
What do you think about that ?
Ty