Skip to content

[MLOB-7336] Document automatic user/session tagging from RUM baggage#36240

Draft
Kyle-Verhoog wants to merge 1 commit intomasterfrom
kyle.verhoog/llmobs-rum-baggage-docs
Draft

[MLOB-7336] Document automatic user/session tagging from RUM baggage#36240
Kyle-Verhoog wants to merge 1 commit intomasterfrom
kyle.verhoog/llmobs-rum-baggage-docs

Conversation

@Kyle-Verhoog
Copy link
Copy Markdown
Member

What does this PR do? What is the motivation?

Fixes MLOB-7336

Documents the new automatic user/session tagging behavior in the Python and Node.js LLMObs SDKs. When the RUM Browser SDK's propagateTraceBaggage option is enabled, outgoing requests carry OTel baggage (session.id, user.id, account.id). The LLMObs SDKs now read those values from the active trace context and auto-apply them to LLMObs spans as Datadog standard attributes (session_id, usr.id, usr.account_id). Explicit LLMObs.annotate() values still take precedence.

Companion SDK PRs (land these first):

Parent epic: MLOB-7330

Merge instructions

Merge readiness:

  • Ready for merge

Additional notes

Holding as draft until the SDK PRs ship so the docs don't describe unreleased behavior.

Adds a subsection to the LLMObs SDK "Tracking user sessions" doc
explaining that the Python and Node.js SDKs now auto-apply
session_id, usr.id, and usr.account_id to LLMObs spans when the RUM
Browser SDK's propagateTraceBaggage option is enabled.

MLOB-7336
@github-actions
Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

Modified Files

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.

1 participant