Skip to content

RUM-8410 update the way session id is propagated#853

Merged
xgouchet merged 2 commits into
developfrom
xgouchet/RUM-8410/propagate_session_headers
Apr 24, 2025
Merged

RUM-8410 update the way session id is propagated#853
xgouchet merged 2 commits into
developfrom
xgouchet/RUM-8410/propagate_session_headers

Conversation

@xgouchet
Copy link
Copy Markdown
Contributor

What does this PR do?

Updates the way we propagate the Session id using baggage instead of tracecontext/tags

@xgouchet xgouchet requested a review from a team as a code owner April 17, 2025 06:42
@datadog-datadog-prod-us1
Copy link
Copy Markdown

datadog-datadog-prod-us1 Bot commented Apr 17, 2025

Datadog Report

Branch report: xgouchet/RUM-8410/propagate_session_headers
Commit report: c0d8faa
Test service: dd-sdk-reactnative

✅ 0 Failed, 669 Passed, 1 Skipped, 4.07s Total Time

@xgouchet xgouchet force-pushed the xgouchet/RUM-8410/propagate_session_headers branch from 0174e74 to a1376cb Compare April 17, 2025 07:05
Copy link
Copy Markdown
Member

@marco-saia-datadog marco-saia-datadog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! I have added a unit test to check this behaviour. Does it look good to you?

Comment on lines +1006 to +1007
const resourceContext = tracingContext.getRumResourceContext();
expect(resourceContext['baggage']).toBeUndefined();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xgouchet I am explicitly checking that we are not injecting the RUM Session ID in the Resource Context, as this is the current behaviour.

@marco-saia-datadog marco-saia-datadog requested a review from a team April 18, 2025 09:38
@xgouchet xgouchet merged commit fc66de8 into develop Apr 24, 2025
8 checks passed
@xgouchet xgouchet deleted the xgouchet/RUM-8410/propagate_session_headers branch April 24, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants