-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[HttpClient] Added TraceableHttpClient and WebProfiler panel #33015
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
|
@tyx: Can you please re-add the header information? This is a requirement. |
|
fabbot has some interesting things to say :) |
|
|
||
| if ($this->httpClientConfigEnabled = $this->isConfigEnabled($container, $config['http_client'])) { | ||
| $this->registerHttpClientConfiguration($config['http_client'], $container, $loader); | ||
| } |
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.
Can you move it back to the same position it was before? Or is the move important?
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.
It is important because profiler should be process after this one to use $this->httpClientConfigEnabled
|
|
||
| <services> | ||
| <service id="data_collector.http_client" class="Symfony\Component\HttpClient\DataCollector\HttpClientDataCollector"> | ||
| <tag name="data_collector" template="@WebProfiler/Collector/http_client.html.twig" id="http_client" priority="240" /> |
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.
is the priority important here?
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.
Not sure, was already here 😛
94eb7ea to
37b7f3f
Compare
|
Many failures on travis seem unrelated : https://travis-ci.org/symfony/symfony/jobs/568907222#L5407 Except one https://travis-ci.org/symfony/symfony/jobs/568907222#L5422 but I guess it's a normal failure as it does not use the right |
357b689 to
a523a5e
Compare
nicolas-grekas
left a comment
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 made some changes and tried the panel locally, failures are false positives.)
Co-authored-by: Jérémy Romey <[email protected]> Co-authored-by: Timothée Barray <[email protected]>
a523a5e to
5164001
Compare
|
Thank you @tyx, @IonBazan and @jeremyFreeAgent! |
… panel (jeremyFreeAgent) This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] Added TraceableHttpClient and WebProfiler panel | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Replace #30494 I added : - tests - move debug services declaration in dedicated `http_client_debug.xml` file - rename stuff to follow messenger data collector stuff - add CompilerPass to allow bundle to trace their own http client I didn't add all @nicolas-grekas requests on UI profiler. I will continue to make more PR after this one. IMO everything looks fine to make a first merge except one strange behavior that I am not sure to get : When making a sub request : - we still have the http_client parent data. (like messenger, but currently I did not see anything in code that could avoid that, so different topic I guess). - The data collected are already "converted" to VarDumper data, so I have errors when trying to do all the unset stuff in the TraceableHttpClient. Is it for this reason, some collector use `lateCollect` ? Should we also move to lateCollect in the `HttpClientDataCollector` ? But I'm still new on this subject but glad to help, so feel free to request more changes ! Commits ------- 5164001 [HttpClient] Added TraceableHttpClient and WebProfiler panel
|
See #33311 for possible next steps. |
Replace #30494
I added :
http_client_debug.xmlfileI didn't add all @nicolas-grekas requests on UI profiler. I will continue to make more PR after this one.
IMO everything looks fine to make a first merge except one strange behavior that I am not sure to get :
When making a sub request :
Is it for this reason, some collector use
lateCollect? Should we also move to lateCollect in theHttpClientDataCollector?But I'm still new on this subject but glad to help, so feel free to request more changes !