Skip to content

Conversation

@priscilawebdev
Copy link
Member

@priscilawebdev priscilawebdev commented Jan 26, 2026

Based on @RulaKhaled’s report and my own findings, when using Next.js with Sentry without adding any AI instrumentation to the Sentry initialization, AI spans are not generated. That is, even though Node.js is the server runtime, the Sentry integration does not work out of the box. Users must explicitly instrument the OpenAI client using the helper Sentry.instrumentOpenAiClient. This PR reflects that requirement.

image

TODO: Update this in the agent monitoring onboarding too

@vercel
Copy link

vercel bot commented Jan 26, 2026

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

Project Deployment Review Updated (UTC)
sentry-docs Ready Ready Preview, Comment Jan 28, 2026 1:34pm
1 Skipped Deployment
Project Deployment Review Updated (UTC)
develop-docs Ignored Ignored Preview Jan 28, 2026 1:34pm

Request Review


</PlatformSection>

<PlatformSection supported={['javascript.nextjs']}>
Copy link
Member

Choose a reason for hiding this comment

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

@priscilawebdev As we discussed in DMs, you might want to update this section to cover manual instrumentation for all runtimes in Next.js

Copy link
Member Author

Choose a reason for hiding this comment

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

updated!

Copy link
Contributor

@coolguyzone coolguyzone left a comment

Choose a reason for hiding this comment

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

LGTM!

priscilawebdev and others added 2 commits January 28, 2026 13:21
…thropic.mdx

Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
…enai.mdx

Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
@priscilawebdev priscilawebdev changed the title feat(docs): Add edge runtime sections for openai and anthropic feat(docs): Add Next.js technical issue to OpenAI documentation Jan 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.

4 participants