Skip to content

docs(cloudflare): Document Workers AI Jev tracing - #19801

Merged
JPeer264 merged 3 commits into
masterfrom
docs/cloudflare-workers-ai-jev
Oct 5, 2026
Merged

JPeer264 merged 3 commits into
masterfrom
docs/cloudflare-workers-ai-jev

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Document Jev evaluation tracing through the Cloudflare Workers AI binding (env.AI.run("typesafe/jev", ...)). Calls whose input has state and questions now create gen_ai.evaluate spans with the same attributes as the TypeSafe integration. The new section covers a setup example, the data captured, and privacy controls. It follows the Vercel AI Jev section from #19692, and the TypeSafe page now links to it.

Shipped in Sentry JavaScript SDK 11.3.0 via getsentry/sentry-javascript#24833.

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+

via Andrei Borza.

--

View Junior Session [Sentry]

Co-Authored-By: Andrei Borza <andrei.borza@sentry.io>
@vercel

vercel Bot commented Oct 5, 2026 •

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 Oct 5, 2026 8:38am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Oct 5, 2026 8:38am UTC

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Oct 5, 2026
@andreiborza
andreiborza requested a review from JPeer264 October 5, 2026 08:13
@andreiborza
andreiborza marked this pull request as ready for review October 5, 2026 08:13
@cursor

cursor Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

The change adds a docs section and one cross-link. The plan checks page loads and client errors on the two edited pages. An issue escalates when those page errors rise or those pages stop loading.

Monitoring in production

Services: sentry-docs.

Mention @change-monitor in a comment to update the plan.

Plan

What changed

The Cloudflare Workers AI docs page now describes Jev evaluation tracing through env.AI.run. The TypeSafe integration page now links to that section. sentry-docs must deploy before this text is live.

Risk

Broken MDX can fail one page render or fail the whole docs build. The Workers AI page has almost no readers, so a silent render failure can hide. A client exception on the TypeSafe page would reach current readers.

Intended effect

This is a docs edit. No production metric shows that the new heading is present. absent cannot be told from telemetry. Page load volume is not proof that the new text shipped. Leave intended_effect unknown unless the live page shows the heading Trace Jev Evaluations.

Regression watch

Traces sample at 30 percent. Error events do not. Compare error counts to sampled page loads in the same window. Do not treat a raw page-load count as full traffic.

The Workers AI page is sidebar-hidden. A 24h page-load count of zero is normal. Use the 7d window for that page.

Signal Baseline Rule Source
TypeSafe page-load p95 1.9s in 24h, 9.1s in 7d. Band 1.8s-9.2s. Sampled page loads 20 in 24h and 23 in 7d. Hold inside 1.8s-9.2s at similar volume. Escalate if p95 rises above 9.2s. Sentry sentry/docs. Query: span.op:pageload AND http.url:*configuration/integrations/typesafe* AND environment:production. Windows 2026-10-04T08:15:00Z to 2026-10-05T08:15:00Z and 2026-09-28T08:15:00Z to 2026-10-05T08:15:00Z.
TypeSafe page errors 25 events in 24h and 25 events in 7d. Pair with 20 sampled page loads in 24h. Hold at or below 25 events per 24h. Escalate if the 24h count rises above 25. Sentry sentry/docs. Query: url:*configuration/integrations/typesafe* AND environment:production. Window 2026-10-04T08:15:00Z to 2026-10-05T08:15:00Z.
Workers AI page errors 1 event in 24h and 1 event in 7d. Sampled page loads 0 in 24h and 3 in 7d. p95 2.6s on those 3 loads. Hold at 0-1 error events per 7d. Escalate if the 7d count rises above 1. Sentry sentry/docs. Error query: url:*agent-tracing/workers-ai* AND environment:production. Page-load query: span.op:pageload AND http.url:*platforms/javascript/guides/cloudflare/agent-tracing/workers-ai* AND environment:production. Window 2026-09-28T08:15:00Z to 2026-10-05T08:15:00Z.
Cloudflare guide errors 150 events in 24h and 154 events in 7d. Almost all of the week sat in the last 24h. Hold at or below 154 events per 7d. Escalate if the 24h count rises above 150. Sentry sentry/docs. Query: url:*platforms/javascript/guides/cloudflare* AND environment:production. Windows 2026-10-04T08:15:00Z to 2026-10-05T08:15:00Z and 2026-09-28T08:15:00Z to 2026-10-05T08:15:00Z.

If TypeSafe or Workers AI page errors rise, inspect code-tab and platform-selector exceptions on those URLs.

Not observable

Whether the live page contains the new heading and sample. Whether the new TypeSafe link resolves for readers. Search index inclusion of the new section.

Co-Authored-By: Andrei Borza <andrei.borza@sentry.io>
Co-Authored-By: Andrei Borza <andrei.borza@sentry.io>
@JPeer264
JPeer264 merged commit 9d42c9e into master Oct 5, 2026
24 checks passed
@JPeer264
JPeer264 deleted the docs/cloudflare-workers-ai-jev branch October 5, 2026 09:25
@cursor

cursor Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Verified in production

  • The new heading is live, and the edited pages had traffic with no new errors.

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 8c17335a Deployed Oct 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant