-
Notifications
You must be signed in to change notification settings - Fork 35
Handle X-INSTANA-L according to specifications #352
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
Conversation
Ferenc-
commented
Mar 4, 2022
- Propagate X-INSTANA-L
- Only return spans if X-INSTANA-L==0
- Only propagate span_id and trace_id if X-INSTANA-L!=0
andrewslotin
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.
Overall LGTM, however I've put some suggestions to make the changes less error-prone
4eb77a0 to
3fc6182
Compare
andrewslotin
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.
LGTM! As a suggestion I believe it might be a good time to refactor the way we populate carrier fields in HTTP propagator to reduce duplication. You might also consider using a boolean value to store the context.level for readability.
3c80508 to
24b3a00
Compare
34c0d38 to
d1a735a
Compare
* As stated in the changelog here: https://github.com/getsentry/responses/releases/tag/0.18.0 0.18.0 Removed internal `_matches` attribute of RequestsMock object. Which has been used by our UT TCs, so before we refactor that we need to pin the last known working version.
andrewslotin
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.
Overall LGTM.
For skipping tracestate update in suppression mode Co-authored-by: Andrey Slotin <andrey.slotin@instana.com>