-
Notifications
You must be signed in to change notification settings - Fork 377
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
SQL comment propagation full mode with traceparent #2464
Conversation
9e9e33b
to
8cd795c
Compare
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.
Any general call outs that we should review more closely here? Overall looks good (intuitive) from a skim,.
@@ -12,36 +14,30 @@ module SqlComment | |||
def self.annotate!(span_op, mode) | |||
return unless mode.enabled? | |||
|
|||
# PENDING: Until `traceparent`` implementation in `full` mode | |||
# span_op.set_tag(Ext::TAG_DBM_TRACE_INJECTED, true) if mode.full? | |||
span_op.set_tag(Ext::TAG_DBM_TRACE_INJECTED, true) if mode.full? |
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.
What is this tag?
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.
The tag is defined to help filter for spans on the APM that have full trace context in their sql comment
Codecov Report
@@ Coverage Diff @@
## master #2464 +/- ##
==========================================
+ Coverage 98.01% 98.02% +0.01%
==========================================
Files 1105 1108 +3
Lines 59276 59772 +496
==========================================
+ Hits 58100 58593 +493
- Misses 1176 1179 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
What does this PR do?
Implement SQL comment propagation with
full
mode, which includestraceparent