RUM-8366 propagate session id in baggage header#2602
Conversation
| tags.append(RUM_SESSION_ID_TAG_KEY); | ||
| tags.append('='); | ||
| tags.append(sessionId); | ||
| carrier.put(BAGGAGE_KEY, RUM_SESSION_ID_BAGGAGE_KEY + '='+sessionId); |
There was a problem hiding this comment.
question: we already have OT_BAGGAGE_PREFIX (ot-baggage-) here, which is used with a particular baggage item key.
won't we have any issues with having ot-baggage-xxx and baggage at the same time at the same time?
There was a problem hiding this comment.
Those headers will be independant, one of them uses the opentelemetry format, while the latter uses the W3C recommended format, ensuring it'll be propagated throughout the trace in the backend.
| tags.append(RUM_SESSION_ID_TAG_KEY); | ||
| tags.append('='); | ||
| tags.append(sessionId); | ||
| carrier.put(BAGGAGE_KEY, RUM_SESSION_ID_BAGGAGE_KEY + '='+sessionId); |
There was a problem hiding this comment.
do we need to have a similar change for the com.datadog.trace.core.propagation.DatadogHttpCodec, etc.?
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #2602 +/- ##
===========================================
+ Coverage 69.98% 70.02% +0.04%
===========================================
Files 819 819
Lines 30579 30576 -3
Branches 5121 5121
===========================================
+ Hits 21399 21408 +9
- Misses 7740 7743 +3
+ Partials 1440 1425 -15
🚀 New features to boost your workflow:
|
4cc134e to
5ff9ef7
Compare
5ff9ef7 to
1384d4a
Compare
1384d4a to
9290c56
Compare
What does this PR do?
Update the header used to propagate the RUM session ID when tracing