-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(ai-insights): polish agent monitoring JS docs #16175
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
base: master
Are you sure you want to change the base?
fix(ai-insights): polish agent monitoring JS docs #16175
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
| - All [Common Span Attributes](#common-span-attributes) should be set | ||
|
|
||
| The handoff span itself has no body — it just marks the transition point before the target agent starts. | ||
| The handoff span itself has no body—it just marks the transition point before the target agent starts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why together? As a non-native English speaker, I find it easier when they’re separate. Is putting them together the standard?
| // your options here | ||
| recordInputs: true, | ||
| recordOutputs: true, | ||
| // See Options section for all available options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we have only 2 options listed, do we want to have this comment? it might increase at some point, but 😅
|
|
||
| ## Configuration | ||
|
|
||
| Configure the Anthropic integration using the options below. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
| ## Manual Instrumentation | ||
|
|
||
| If you're using a library that Sentry does not automatically instrument, you can manually instrument your code to capture spans. For your AI agents data to show up in Sentry [AI Agents Insights](https://sentry.io/orgredirect/organizations/:orgslug/insights/ai/agents/), spans must have well-defined names and data attributes. | ||
| If you're using a library without automatic instrumentation, you can manually instrument your code to capture spans. For your AI agents data to show up in Sentry [AI Agents Insights](https://sentry.io/orgredirect/organizations/:orgslug/insights/ai/agents/), spans must have well-defined names and data attributes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I prefer the previous sentence because it explicitly says “Sentry does not automatically instrument.” Otherwise, it sounds like it has something to do with the library I chose. Does that make sense?
| - `beta.messages.create()` - Beta messages API | ||
|
|
||
| Streaming and non-streaming requests are automatically detected and handled appropriately. | ||
| The integration automatically detects and handles both streaming and non-streaming requests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to explain what it handles?
docs-reviewskill