Skip to content

Conversation

@obostjancic
Copy link
Member

@obostjancic obostjancic commented Jan 8, 2026

Closes TET-1573: Make a Claude/Cursor prompt that manually instruments gen_ai

Adds the "Copy Prompt for AI Agent" button in case an unsupported platform or manual instrumentation is shown.

CleanShot 2026-01-08 at 15 55 40@2x CleanShot 2026-01-08 at 15 58 40@2x

@obostjancic obostjancic requested a review from a team as a code owner January 8, 2026 14:58
@linear
Copy link

linear bot commented Jan 8, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 8, 2026
1. **All complex data must be JSON-stringified** - span attributes only accept primitives
2. **\`gen_ai.request.model\` is required** on all AI request and agent spans
3. **Nest spans correctly:** Agent span → contains Request spans and Tool spans (siblings)
Copy link
Member

Choose a reason for hiding this comment

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

From this document, I don't think it's clear what an "Agent span" is

Copy link
Member

Choose a reason for hiding this comment

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

(meaning, the LLM probably also is going to guess)

Copy link
Member

Choose a reason for hiding this comment

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

Opening a PR for this: getsentry/sentry-python#5295

Copy link
Member

@shellmayr shellmayr left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@obostjancic obostjancic enabled auto-merge (squash) January 13, 2026 14:35
@obostjancic obostjancic merged commit 9b6603b into master Jan 13, 2026
53 checks passed
@obostjancic obostjancic deleted the ogi/tet-1573-make-a-claudecursor-prompt-that-manually-instruments-gen_ai branch January 13, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants