Skip to content

docs(ai): Add sampling strategies page for AI agent monitoring#17321

Open
sergical wants to merge 1 commit intomasterfrom
sergiy/ai-sampling-strategies
Open

docs(ai): Add sampling strategies page for AI agent monitoring#17321
sergical wants to merge 1 commit intomasterfrom
sergiy/ai-sampling-strategies

Conversation

@sergical
Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

Add a new "Sampling Strategies" page as a child of AI Agents monitoring docs. Documents how to configure tracesSampler to capture 100% of AI agent traces without sampling all traffic.

Based on https://blog.sentry.io/sample-ai-traces-at-100-percent-without-sampling-everything/, adapted to documentation style.

  • Explains the head-based sampling problem for agent span trees
  • Provides tracesSampler configs for standalone and HTTP-nested agent runs (JS + Python)
  • Cost rationale for 100% AI trace sampling
  • Supplementary metrics and structured logs as a fallback

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

Document how to configure tracesSampler to capture 100% of AI agent
traces without sampling all traffic. Covers standalone agent runs,
HTTP-nested agent spans, cost rationale, and supplementary metrics/logs.

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 13, 2026

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

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Apr 13, 2026 2:30pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Apr 13, 2026 2:30pm

Request Review

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.

1 participant