Skip to content

feat(anthropic) add docs for anthropic integration #14581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

constantinius
Copy link
Contributor

@constantinius constantinius commented Aug 7, 2025

DESCRIBE YOUR PR

Adds docs for the anthropic integration done with getsentry/sentry-python#4674

Part of https://linear.app/getsentry/issue/TET-996/improve-integration-for-anthropic-sdk

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

Copy link

linear bot commented Aug 7, 2025

Copy link

vercel bot commented Aug 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2025 0:55am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
develop-docs ⬜️ Ignored (Inspect) Aug 7, 2025 0:55am

Copy link

codecov bot commented Aug 7, 2025

Bundle Report

Changes will increase total bundle size by 2.96kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-client-array-push 9.85MB -6 bytes (-0.0%) ⬇️
sentry-docs-server-cjs 12.37MB 2.97kB (0.02%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.77MB -0.0%
../instrumentation.js -3 bytes 1.1MB -0.0%
9523.js -3 bytes 1.08MB -0.0%
../app/[[...path]]/page.js.nft.json 992 bytes 743.72kB 0.13%
../app/platform-redirect/page.js.nft.json 992 bytes 743.63kB 0.13%
../app/sitemap.xml/route.js.nft.json 992 bytes 741.1kB 0.13%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 882.71kB -0.0%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
server/middleware-*.js -5.55kB 1.0kB -84.74%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
static/7VqUI12kpTeY102FYBqFq/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/7VqUI12kpTeY102FYBqFq/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/cE9kb5NNoWm88O49pij6k/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/cE9kb5NNoWm88O49pij6k/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Copy link
Member

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

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

Looks great!


This integration connects Sentry with the [Anthropic Python SDK](https://github.com/anthropics/anthropic-sdk-python).

Once you've installed this SDK, you can use Sentry AI Agents Monitoring, a Sentry dashboard that helps you understand what's going on with your AI requests.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Once you've installed this SDK, you can use Sentry AI Agents Monitoring, a Sentry dashboard that helps you understand what's going on with your AI requests.
Once you've installed this SDK, you can use the Sentry AI Agents Monitoring, a Sentry dashboard that helps you understand what's going on with your AI requests.

)
```

After running this script, the resulting data should show up in the `"AI Spans"` tab on the `"Explore" > "Traces" > "Trace"` page on Sentry.io.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
After running this script, the resulting data should show up in the `"AI Spans"` tab on the `"Explore" > "Traces" > "Trace"` page on Sentry.io.
After running this script, the resulting data should show up in the `AI Spans` tab on the `Explore > "races > Trace` page on Sentry.io.


You can pass the following keyword arguments to `AnthropicIntegration()`:

- `include_prompts`:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this list going to grow? If not, I would consider reformatting from a list to something like "include_prompts is the only keyword argument you can pass into AnthropicIntegration()."

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.

Thanks for adding!

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