Skip to content

docs(vercelai): Align types based on implementation#18752

Open
JPeer264 wants to merge 2 commits into
masterfrom
jp/align-types-in-ai
Open

docs(vercelai): Align types based on implementation#18752
JPeer264 wants to merge 2 commits into
masterfrom
jp/align-types-in-ai

Conversation

@JPeer264

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

Clarifying the docs. There were also some code changes needed to fix them: getsentry/sentry-javascript#22343

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • 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

LEGAL BOILERPLATE

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

EXTRA RESOURCES

@JPeer264 JPeer264 self-assigned this Jul 17, 2026
@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Jul 17, 2026 3:54pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Jul 17, 2026 3:54pm

Request Review

<PlatformSection notSupported={['javascript.nextjs']}>
</PlatformSection>

<PlatformSection notSupported={['javascript.cloudflare', 'javascript.nextjs']}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bug: The documentation for recordInputs incorrectly implies support for Deno, breaking the pattern where Deno and Cloudflare have parallel feature support.
Severity: LOW

Suggested Fix

To ensure consistency, add 'javascript.deno' to the notSupported array for the recordInputs section in vercelai.mdx. This will align its documented support with that of Cloudflare, as is done for other options in the file.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: docs/platforms/javascript/common/configuration/integrations/vercelai.mdx#L148

Potential issue: The documentation for the Vercel AI integration is inconsistent
regarding feature support for Deno. Throughout the file, `javascript.deno` and
`javascript.cloudflare` are treated as having identical support limitations. However,
for the `recordInputs` option, `javascript.deno` is omitted from the `notSupported` list
at line 148, while `javascript.cloudflare` is included. This incorrectly suggests to
Deno users that this feature is supported, which contradicts the established pattern in
the rest of the document. This will likely lead to user confusion.

Did we get this right? 👍 / 👎 to inform future reviews.

Comment thread docs/platforms/javascript/common/configuration/integrations/vercelai.mdx Outdated
@JPeer264
JPeer264 requested a review from andreiborza July 17, 2026 15:39
<PlatformSection notSupported={['javascript.nextjs']}>
</PlatformSection>

<PlatformSection notSupported={['javascript.cloudflare', 'javascript.nextjs']}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bug: Documentation for the Vercel AI integration incorrectly shows Deno users the recordInputs and recordOutputs options, which are not supported for their platform at the integration level.
Severity: MEDIUM

Suggested Fix

Add javascript.deno to the notSupported list on line 148 to hide the section documenting the recordInputs and recordOutputs options. Alternatively, add a Deno-specific section explaining that these options are not supported at the integration level and that experimental_telemetry must be used instead.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: docs/platforms/javascript/common/configuration/integrations/vercelai.mdx#L148

Potential issue: The documentation for the Vercel AI integration is inconsistent for the
Deno runtime. The PR correctly groups Deno with Cloudflare for initialization behavior,
which requires `experimental_telemetry` on each function call. However, it fails to
update the options documentation completely. As a result, Deno users are shown
documentation for the `recordInputs` and `recordOutputs` configuration options at the
integration level. These options do not work for Deno in the same way as other
platforms. Unlike the Cloudflare documentation, there is no specific note explaining
this limitation for Deno, which will likely cause developers to implement a
configuration that fails or behaves unexpectedly.

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