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

[WebProfilerBundle][HttpClient] Added profiler links in the Web Profiler -> Http Client panel #35391

Merged
merged 1 commit into from
Jan 22, 2020
Merged

[WebProfilerBundle][HttpClient] Added profiler links in the Web Profiler -> Http Client panel #35391

merged 1 commit into from
Jan 22, 2020

Conversation

cristagu
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets #33311
License MIT
Doc PR -

As per @Neirda24's idea in this comment, I parsed the response headers collected by the TraceableHttpClient and created profiler links in the HttpClient Web Profiler panel for all the requests having the 'X-Debug-Token' header.

profiler

@Neirda24
Copy link
Contributor

Nice 👍 . Thanks for implementing it. I was wondering though. This solutions works only if the profiler token is on the same url. Why not pointing out to the link provided by the header ? (in a new tab maybe ?)

@cristagu
Copy link
Contributor Author

Yeah, good idea, I will update the implementation and use the x-debug-token-link header instead.

@nicolas-grekas nicolas-grekas added this to the next milestone Jan 20, 2020
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea.

@cristagu
Copy link
Contributor Author

Thank you for the feedback @Neirda24 and @nicolas-grekas. I have made the changes.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(with minor comments)

@fabpot
Copy link
Member

fabpot commented Jan 22, 2020

Thank you @cristagu.

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

Successfully merging this pull request may close these issues.

5 participants