-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(5432): add query parameters in tracing url #6178
fix(5432): add query parameters in tracing url #6178
Conversation
Testing on python 3.7 is failing because I'm relying on some EDIT: Addressed in 73b7e62 |
Codecov Report
@@ Coverage Diff @@
## master #6178 +/- ##
==========================================
+ Coverage 93.29% 93.31% +0.01%
==========================================
Files 102 102
Lines 30230 30305 +75
Branches 2711 2723 +12
==========================================
+ Hits 28204 28279 +75
Misses 1849 1849
Partials 177 177
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM, thanks!
Backport to 3.8: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 3e879ec on top of patchback/backports/3.8/3e879ec97923e9d29a4a277f942893ae7ed5f090/pr-6178 Backporting merged PR #6178 into master
🤖 @patchback |
💔 Backport was not successfulThe PR was attempted backported to the following branches:
|
* fix(5432): add query parameters in tracing url * docs: add CHANGES/5432.bugfix * test: support python 3.7 in `test_request_tracing_url_params`
backported by 96f8206 |
What do these changes do?
Fixes #5432
As demonstrated in the issue, when query parameters are passed via
params
keyword argument, some of tracing callback doesn't provideURL
with those parameters. Note that it's been working correctly if query parameters are passed in an "inline" fashion as insession.get("/?x=0")
instead ofsession.get("/", params=dict(x=0))
.Currently, as far as I can tell, out of 7 tracing callbacks which give
URL
information:these 4 tracing types don't include query parameters when passed via
params
.In this PR, I addressed this issue and added tests to demonstrate all 7 cases working as expected.
If there's something I'm missing, please let me know.
Thanks for the review!
Are there changes in behavior for the user?
Yes, as explained above.
Related issue number
Checklist
CONTRIBUTORS.txt
CHANGES
folder<issue_id>.<type>
for example (588.bugfix)issue_id
change it to the pr id after creating the pr.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.