-
Notifications
You must be signed in to change notification settings - Fork 504
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
feat(pymongo): Set MongoDB tags directly on span data #3290
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3290 +/- ##
==========================================
- Coverage 79.40% 75.98% -3.42%
==========================================
Files 132 133 +1
Lines 14281 15218 +937
Branches 2999 3291 +292
==========================================
+ Hits 11340 11564 +224
- Misses 2094 2798 +704
- Partials 847 856 +9
|
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.
@0Calories couldn't this change be breaking in some way? What if a user has filters/dashboards/etc in Sentry set up based on the tags – these would break with your proposed changes.
@szokeasaurusrex That's a good point, but consistency is still more important so that we can extract metrics for multiple SDKs. I believe the Python SDK in the near future will be implementing OTel's SDK under the hood, just like the JS SDK, so this exact change will occur and break dashboards for users who rely on these tags anyways |
@0Calories I think this change will still require a major version bump if it is breaking. I understand that consistency matters, but semantic versioning dictates a major version bump for any breaking change. We are in progress with implementing POTel in Python and intend to release a major when we do so, so I guess we can include this change then. |
I suppose the change could be made backwards-compatible by setting this data both as |
That makes sense to me, I'll update this to include the data on both |
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.
Thanks for making the changes! Just a few more small things, and then I think the PR will be ready for merging
Co-authored-by: Daniel Szoke <[email protected]>
Thanks for the review and suggestions @szokeasaurusrex, updated the PR with the assertions and your 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.
Looks good!
Awesome thanks @szokeasaurusrex! Could you also please merge the PR for me? It seems I don't have permission to do so on my own |
@0Calories the PR needs to be updated with the base branch before you can merge |
* feat(pymongo): Set MongoDB tags directly on span data Co-authored-by: Daniel Szoke <[email protected]> --------- Co-authored-by: Daniel Szoke <[email protected]>
Another PR to iron out some inconsistencies between the Python and Node SDKs. OTel attaches MongoDB tags directly on the span data, rather than in the
tags
databag. This change is necessary so that Relay can parse MongoDB spans in Python for metrics extraction.Node SDK Spans:
Relevant MongoDB data is set directly as span data
Python SDK Spans:
Relevant MongoDB data is set in the
tags
databag