GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(js): Clarify when agent tracing sets the conversation ID by sentry-junior[bot] · Pull Request #20894 · getsentry/sentry-docs

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Conversations needs a conversation ID, but the JS agent tracing docs only said that "some integrations infer it". Every integration page linked to the same generic paragraph, so users couldn't tell whether they had to call setConversationId(). This PR states the behavior of each integration in getsentry/sentry-javascript 11.12.0.

  • Agent Tracing → Tracking Conversations: a table of which integrations set the ID always, only in some cases, or never, and where the ID comes from. Notes cover minimum SDK versions and which ID wins over setConversationId(). A new "Set the Conversation ID Yourself" section covers:
    • when you need it
    • which ID to use and which to avoid
    • setting it on every request before the first AI call
    • that only gen_ai.* spans get the ID
    • examples for a request handler, a queue job (withIsolationScope), and several conversations in one request (withScope)
  • Integration pages:
    • OpenAI, Vercel AI, Anthropic, LangChain and LangGraph get a "Conversation IDs" section that says exactly when the ID is inferred.
    • Google Gen AI, Mistral, Groq, Together AI and TypeSafe say they don't set one.
    • Workers AI says the ID is automatic only inside the Agents SDK.
  • Manual instrumentation: a "Group Spans Into a Conversation" section with an example.
  • Stale claims fixed:
    • Cloudflare Agents SDK: the ID is a random ID stored per instance, not the instance name (fix(cloudflare): Set conversation id independent of session name sentry-javascript#22958, 10.70.0+). The onRequest path is now listed too.
    • Pi Durable: uses its stored session ID (fix(server-utils): Use the stored pi-durable session id as conversation id sentry-javascript#25792, 11.10.0+).
    • Product Conversations page: the Node OpenAI SDK only infers the ID with the Conversations API.

Open questions for SDK reviewers

  • Framework ID precedence for Eve, Flue, Mastra, and Pi Durable. Answered: the framework ID wins for Eve, Flue, and Pi Durable. For Mastra, from 11.15.0 (fix(server-utils): Keep the conversation ID from setConversationId on Mastra spans sentry-javascript#26647), setConversationId() wins over the thread ID. The Mastra page now says so.
  • Vercel AI SDK inference is only covered by tests on AI SDK v6/v7, so the page says "AI SDK v6 or later".
  • includes/agent-tracing/manual-instrumentation.mdx looks unused and is left unchanged.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

via shannon.anahata.

--

View Session [Sentry]

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sentry-junior @sfanahata
docs(js): Clarify when agent tracing sets the conversation ID
9bac632
Add a per-integration table of which JavaScript AI integrations set
gen_ai.conversation.id automatically, conditionally, or never, and
expand the manual setConversationId guidance with scope rules and
examples. Fix stale claims for the Cloudflare Agents SDK (random
persisted ID, not the instance name) and Pi Durable (stored session ID).

Co-Authored-By: Shannon Anahata <[email protected]>
@vercel

vercel Bot commented Nov 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Nov 23, 2026 12:30pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Nov 23, 2026 12:30pm UTC

Request Review

sentry-junior[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Nov 18, 2026
@sfanahata
sfanahata marked this pull request as ready for review November 19, 2026 01:33
@cursor

cursor Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Getting ready to monitor this change · Rollout details

Status Service Environment
⏳ Getting ready to monitor this change
sentry-junior[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Shannon Anahata
Updating language about conversation ID.
9a62c7a
@vercel
vercel Bot deployed to Preview – sentry-docs November 19, 2026 01:42
View deployment
@sfanahata
sfanahata requested review from alexander-alderman-webb and andreiborza November 19, 2026 21:44
@sentry-junior
Merge remote-tracking branch 'origin/master' into docs/js-agent-traci…
017ddb2
…ng-conversation-ids

# Conflicts:
#	docs/platforms/javascript/common/configuration/integrations/openai.mdx
@vercel
vercel Bot had a problem deploying to Preview – sentry-docs November 20, 2026 11:40 Failure
@vercel
vercel Bot deployed to Preview – develop-docs November 20, 2026 11:42
View deployment
andreiborza
andreiborza reviewed Nov 23, 2026
View reviewed changes
Comment thread docs/platforms/javascript/common/configuration/integrations/langgraph.mdx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@andreiborza

andreiborza commented Nov 23, 2026

Copy link
Copy Markdown
Member

About the first open question: Eve, Flue, and Pi Durable are correct, because the framework ID wins over setConversationId(). Mastra works the other way. Since 11.15.0 (#26647), an ID from Sentry.setConversationId() wins over the Mastra thread ID, so Mastra users can call it to override the ID.

sentry-junior[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sentry-junior
docs(js): List all LangGraph conversation ID keys and Mastra override
c800e68
@sentry-junior

sentry-junior Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks. In c800e68 I added a note to the Mastra page: from SDK 11.15.0 (getsentry/sentry-javascript#26647), an ID set with Sentry.setConversationId() replaces the Mastra thread ID. I also marked the open question as answered in the PR description. The Eve, Flue, and Pi Durable pages are unchanged.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sentry-junior

sentry-junior Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks. c800e682b adds a note to the Mastra page: from SDK 11.15.0 (getsentry/sentry-javascript#26647), an ID set with Sentry.setConversationId() replaces the Mastra thread ID. I also marked the open question as answered in the PR description. The Eve, Flue, and Pi Durable pages stay as they are.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vercel
vercel Bot deployed to Preview – sentry-docs November 23, 2026 12:30
View deployment
@cleptric
cleptric removed the request for review from alexander-alderman-webb November 23, 2026 12:42
andreiborza
andreiborza approved these changes Nov 23, 2026
View reviewed changes
coolguyzone
coolguyzone approved these changes Nov 23, 2026
View reviewed changes

@coolguyzone coolguyzone left a comment

Copy link
Copy Markdown
Contributor

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.

Looks good!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sentry-junior[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

This branch was successfully deployed

2 active (1 outdated) deployments
Preview – sentry-docs — c800e682 Deployed Nov 23, 2026 by vercel[bot]
View deployment
Preview – develop-docs — 017ddb2e Deployed Nov 20, 2026 by vercel[bot]
View deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coolguyzone coolguyzone coolguyzone approved these changes
@andreiborza andreiborza andreiborza approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@andreiborza @coolguyzone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.