Skip to content

Conversation

@brettlangdon
Copy link
Member

Fixes #2756

Yun-Kim
Yun-Kim previously approved these changes Aug 9, 2021
@codecov-commenter
Copy link

codecov-commenter commented Aug 9, 2021

Codecov Report

❌ Patch coverage is 95.83333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 84.93%. Comparing base (19f4c5c) to head (0562d57).

Files with missing lines Patch % Lines
tests/contrib/flask/test_request.py 95.65% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2760   +/-   ##
=======================================
  Coverage   84.93%   84.93%           
=======================================
  Files         591      591           
  Lines       43113    43136   +23     
=======================================
+ Hits        36617    36639   +22     
- Misses       6496     6497    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

span._set_str_tag(u".".join((FLASK_VIEW_ARGS, k)), v)
# DEV: Do not use `_set_str_tag` here since view args can be string/int/float/path/uuid/etc
# https://flask.palletsprojects.com/en/1.1.x/api/#url-route-registrations
span.set_tag(u".".join((FLASK_VIEW_ARGS, k)), v)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to cache the result of these string concats?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, it might. we can handle that in a different PR

@majorgreys
Copy link
Contributor

@Mergifyio backport 0.51

@mergify
Copy link
Contributor

mergify bot commented Aug 10, 2021

Command backport 0.51: pending

Waiting for the pull request to get merged

@mergify mergify bot merged commit 54a42fe into master Aug 10, 2021
@mergify mergify bot deleted the brettlangdon/fix.2756 branch August 10, 2021 14:38
mergify bot added a commit that referenced this pull request Aug 10, 2021
* Fix issue with tagging non-string Flask view args
fixes #2756

* fix test method name

* fix json decoding when we have bytes

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 54a42fe)
@mergify
Copy link
Contributor

mergify bot commented Aug 10, 2021

Command backport 0.51: success

Backports have been created

mergify bot added a commit that referenced this pull request Aug 10, 2021
* Fix issue with tagging non-string Flask view args
fixes #2756

* fix test method name

* fix json decoding when we have bytes

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 54a42fe)

Co-authored-by: Brett Langdon <brett.langdon@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flask view_args doesnt support non-string arguments

7 participants