Skip to content

llmobs: document gen_ai.conversation.id for multi-root grouping#37084

Open
ZStriker19 wants to merge 4 commits into
masterfrom
zach.groves/llmobs-otel-conversation-id-multiroot
Open

llmobs: document gen_ai.conversation.id for multi-root grouping#37084
ZStriker19 wants to merge 4 commits into
masterfrom
zach.groves/llmobs-otel-conversation-id-multiroot

Conversation

@ZStriker19
Copy link
Copy Markdown
Contributor

Summary

Adds a recommendation paragraph in the OpenTelemetry instrumentation reference's "Session and conversation" subsection. After the trace-indexer change in DataDog/dd-go#239022, APM traces with multiple sibling gen_ai LLM calls under a non-gen_ai parent produce multiple independent LLM Observability traces (each with its own trace ID). Customers who want the resulting traces grouped together in the UI should set gen_ai.conversation.id to the same value on every gen_ai span; that flows through to LLMObs session_id.

The attribute mapping itself is already documented (one-line entry in the table). This adds a short paragraph below it explaining when and why to set it.

Test plan

  • Hugo preview renders the new paragraph in the existing "Session and conversation" subsection of OpenTelemetry Instrumentation
  • No layout or link regressions

Related

Claude session: `3d39dd2d-18eb-4730-9671-8c93804e3657`
Resume: `claude --resume 3d39dd2d-18eb-4730-9671-8c93804e3657`

🤖 Generated with Claude Code

Adds a recommendation paragraph in the OTel instrumentation reference's
Session and conversation section. After the trace-indexer change that
stops preserving non-gen_ai workflow root spans, APM traces with
multiple sibling gen_ai LLM calls now produce multiple independent LLM
Observability traces (each with its own trace ID). Setting
gen_ai.conversation.id to the same value on every gen_ai span keeps
the resulting traces grouped together by session_id in the UI.

Tracked in DataDog/dd-go PR #239022.

Claude session: 3d39dd2d-18eb-4730-9671-8c93804e3657
Resume: claude --resume 3d39dd2d-18eb-4730-9671-8c93804e3657

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ZStriker19 ZStriker19 requested a review from a team as a code owner May 28, 2026 20:47
Picks up the in-IDE refinement of the recommendation paragraph: clearer
phrasing ("APM trace's top-most span is not a gen_ai span"), explicit
nod to the cross-request conversation-grouping use case, and a "Tip:"
prefix in line with how the docs surface non-blocking guidance.

Claude session: 3d39dd2d-18eb-4730-9671-8c93804e3657

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

Modified Files

Comment thread content/en/llm_observability/instrumentation/otel_instrumentation.md Outdated
@ZStriker19 ZStriker19 requested a review from heyitsgrace996 May 28, 2026 20:59
@cswatt cswatt self-assigned this May 28, 2026
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.

3 participants