Skip to content

docs(javascript): Add Pi Durable guide - #19873

Merged
andreiborza merged 3 commits into
masterfrom
docs/pi-durable-guide
Oct 9, 2026
Merged

andreiborza merged 3 commits into
masterfrom
docs/pi-durable-guide

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Adds a dedicated javascript.pi-durable platform guide for the Pi Durable integration added in getsentry/sentry-javascript#24993 (see also the Pi Durable announcement). It follows the same structure as the Flue, Eve, and Mastra guides.

  • docs/platforms/javascript/guides/pi-durable/index.mdx: Node.js setup (preload instrument.mjs with --import, or use the bundler plugin)
  • docs/platforms/javascript/guides/pi-durable/cloudflare.mdx: Cloudflare setup (sentryCloudflareVitePlugin() + instrument.server.ts, with an Agents SDK PiHarness example)
  • includes/pi-durable/: shared sections covering experimental status, captured telemetry (gen_ai.invoke_agent / gen_ai.chat / gen_ai.execute_tool), conversation IDs across restarts, crash recovery, captured errors, which provider integrations get skipped, current gaps, verification, and next steps
  • Adds javascript.pi-durable to common-page platform lists wherever Mastra appears (install-method pages stay visible, since a Pi Durable app controls its own startup)
  • Adds a Pi icon (src/icons/pi-durable.svg), plus entries on the Agent Tracing index and the Agents getting-started page

Bun and Deno are left out for now because their setup couldn't be verified. Only Node and Cloudflare are documented.

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+

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 supplied a deadline.

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 Andrei Borza.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 3 commits October 9, 2026 08:20
Co-Authored-By: Andrei Borza <andrei.borza@sentry.io>
Co-Authored-By: Andrei Borza <andrei.borza@sentry.io>
Co-Authored-By: Andrei Borza <andrei.borza@sentry.io>
@vercel

vercel Bot commented Oct 9, 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 9, 2026 8:44am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Oct 9, 2026 8:44am UTC

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Oct 9, 2026
@andreiborza
andreiborza marked this pull request as draft October 9, 2026 08:39
@cursor

cursor Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

The change publishes a new platform guide and links it from agent tracing pages. The plan checks 200s on the new guide URL, JavaScript guide 404s, and client errors. An issue escalates when guide 404s rise or server 5xx appear.

Rollout complete

Services: sentry-docs, develop-docs.

Plan

What changed

Requests to /platforms/javascript/guides/pi-durable/ now serve the Pi Durable setup guide. The JavaScript agent-tracing index and the Agents getting-started page list that guide. A Cloudflare subpage is also live under that guide.

sentry-docs must deploy before those pages are live. develop-docs also ships the shared PlatformIcon map in src/. The Vercel production deploy map names both ids. Shared src/ is why develop-docs is included.

Risk

If static path generation misses the new slug, the guide URL returns 404. A bad icon import can fail the shared bundle on both sites. Sibling JavaScript guide pages can 404 if the new platform frontmatter breaks page generation. Client render of the platform selector can throw if the new icon map is wrong.

Intended effect

The new guide is live when http.server spans for http.url:*pi-durable* return 200. That counter is 0 today. Zero is the baseline, not a gap. absent looks like the counter staying at 0, or the URL returning 404. Traces sample at 30%, so a few 200s may not appear at once.

Signal Baseline Rule Source
http.server count for http.url:*pi-durable* 0 in 2026-10-08T08:39Z to 2026-10-09T08:39Z Rise above 0 with status 200. Stay at 0 is absent. Sentry org sentry project docs

Regression watch

This diff can 404 sibling JavaScript guides if static paths fail. It can also throw in the shared page and icon code. Watch 404s on that guide family, 5xx on the docs catch-all, and client errors on that catch-all. Algolia fetch failures already dominate client errors. Treat a new title from PlatformIcon or MDX as a regression even if the total stays near the sample.

Signal Baseline Rule Source
JavaScript guides http.server 404 rate 0.7% (3 of 445) in 2026-10-08T08:39Z to 2026-10-09T08:39Z Hold in 0-1.5%. Rise above that band is a regression. Sentry org sentry project docs, span.op:http.server http.url:*platforms/javascript/guides/*
JavaScript guides http.server p95 123ms on 445 spans in the same window Hold near 123ms. A large rise with 404s is a regression. Same query, p95(span.duration)
Docs catch-all http.server 5xx 0 in the same window Hold at 0. Any 5xx is a regression. Sentry org sentry project docs, transaction:/:path* and http.status_code:>=500
Client errors on /:path*? 160 events in the same window Hold near 160. A clear rise, or a new PlatformIcon or MDX title, is a regression. Sentry org sentry project docs, environment:production transaction:"/:path*"
develop-docs production errors 46 events in the same window Hold near 46 after the shared icon ships. Sentry org sentry project develop-docs

Sibling Eve and Mastra guide http.server counts were 7 and 27 in that window. If those counts fall to 0 while 404s rise, treat it as the same generation failure.

Not observable

Client pageload transaction names are Next.js routes, not the page URL. Soft navigations are sampled at 30%. Whether the new MDX body is correct is not in traces. The JavaScript agent-tracing page had 0 http.server spans on the URL used here, so that page is not a usable watch.

@andreiborza
andreiborza merged commit 27d3d4c into master Oct 9, 2026
32 checks passed
@andreiborza
andreiborza deleted the docs/pi-durable-guide branch October 9, 2026 13:09
@cursor

cursor Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Verified in production

  • The new guide returned 200s in production, and sibling JavaScript guide errors stayed normal.
  • The new Pi Durable guide is serving 200s, and sibling 404s and develop-docs errors stayed normal.

mydea added a commit that referenced this pull request Oct 12, 2026
…le (#19728)

## DESCRIBE YOUR PR

The Feature Flags page was excluded for the Eve, Flue, and Mastra guides
(#19450), and later for Pi Durable (#19873), but all four use
`@sentry/node`, which exports `featureFlagsIntegration`. The Generic
Feature Flags integration page is still shown for these guides and links
to `feature-flags/#enable-evaluation-tracking` and
`#enable-change-tracking`, which returned 404.

- Remove Eve, Flue, Mastra, and Pi Durable from the page's
`notSupported` list.

Checked locally: `feature-flags/` renders for these guides (it uses the
Node evaluation-tracking snippet via `fallbackGuide`), and the anchors
from the integration page resolve.

Note: the provider integrations exported from `@sentry/node`
(LaunchDarkly, OpenFeature, Statsig, Unleash, GrowthBook) are no-op
shims. Their docs pages are already hidden for server guides, so this PR
doesn't change them.

## IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs
to go live.
Select exactly one option. For deadlines, replace `YYYY-MM-DD` with the
due date. You can update this information later by editing the PR
description.

- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: 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
supplied a deadline.

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](https://github.com/orgs/getsentry/teams/docs)

---

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
mydea added a commit that referenced this pull request Oct 12, 2026
## DESCRIBE YOUR PR

The AI integration pages excluded the Mastra guide via `notSupported:
javascript.mastra`. The exclusion came over from the former Agent
Tracing sub-pages when #19547 moved them to
`configuration/integrations/*`. The Pi Durable guide (#19873) copied the
same exclusion.

Mastra and Pi Durable apps use `@sentry/node`, where these integrations
are enabled by default. Nothing in the Mastra integration disables them,
so the pages apply to Mastra too. Pi Durable turns off its OpenAI,
Anthropic, and Google Gen AI integrations once a run starts, but the
integrations still exist and can be configured. Both guides'
integrations overviews inherit the Node table, which links to all of
these pages, so these links returned 404:

-
`/platforms/javascript/guides/{mastra,pi-durable}/configuration/integrations/{vercelai,openai,anthropic,google-genai,langchain,langgraph,mistral,groq,together-ai,typesafe}`

Change:

- Remove `javascript.mastra` and `javascript.pi-durable` from
`notSupported` on the 10 AI integration pages (drop the key where it's
now empty; TypeSafe keeps its Cloudflare exclusion).

## IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs
to go live.
Select exactly one option. For deadlines, replace `YYYY-MM-DD` with the
due date. You can update this information later by editing the PR
description.

- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: 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
supplied a deadline.

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](https://github.com/orgs/getsentry/teams/docs)

---

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
andreiborza added a commit that referenced this pull request Oct 13, 2026
## DESCRIBE YOUR PR

Bumps `platformicons` to 9.8.1, which ships the official `pi` icon in
both sizes. The Pi Durable guide now uses it instead of the local
`src/icons/pi-durable.svg` we added in #19873. That local copy is
removed.

`pi-durable` and `javascript-pi-durable` both point to the new `pi`
icon, so the guide's `icon: pi-durable` frontmatter works without
changes.

## IS YOUR CHANGE URGENT?

- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] 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](https://github.com/orgs/getsentry/teams/docs)

<!-- junior-request-attribution:start -->
via **Andrei Borza**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0BKK9QLCUA%3A1791884530.598529 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0BKK9QLCUA%3A1791884530.598529)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0BKK9QLCUA%3A1791884530.598529/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Andrei Borza <andrei.borza@sentry.io>

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 2e53c5da Deployed Oct 9, 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.

2 participants