-
Notifications
You must be signed in to change notification settings - Fork 569
ref(tracing): Move TRANSACTION_SOURCE_* constants to Enum
#3889
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
ref(tracing): Move TRANSACTION_SOURCE_* constants to Enum
#3889
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #3889 +/- ##
==========================================
+ Coverage 79.53% 79.55% +0.02%
==========================================
Files 140 140
Lines 15517 15521 +4
Branches 2630 2631 +1
==========================================
+ Hits 12341 12348 +7
+ Misses 2340 2338 -2
+ Partials 836 835 -1
|
f4bb234 to
ef97faa
Compare
antonpirker
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.
nice! thanks for the cleanup
|
This breaks a lot of tests, because the full enum ends up in the envelope that is sent to Sentry and not the |
antonpirker
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.
Please fix the tests, by making sure the .value of the enum (the string) ends up in the envelop json payload that is sent to Sentry.
Head branch was pushed to by a user without write access
b016caf to
79f20d7
Compare
|
Thank you @antonpirker! Now linter and tests passing! 💪 |
79f20d7 to
e135bbc
Compare
e135bbc to
6609d89
Compare
|
Hi Anton! Just curious why did we have to delete the |
|
I just made it so one does not have to always use the .value, so the enum is easier to use and error due to missing .value are not happening. otherwise it is a really cool change and I will merge it today |
antonpirker
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.
This is now ready to be merged!
|
Thank you @antonpirker !! |
| def __str__(self): | ||
| return self.value |
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 didn't see this! Thanks for the explanation!


Fixes GH-2696