Skip to content

feat: Update vercel ai span names and ops as per new conventions #16497

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: develop
Choose a base branch
from

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Jun 5, 2025

resolves #16454

As per https://www.notion.so/sentry/WIP-Span-layout-of-AI-agents-1fa8b10e4b5d80f0a83dd251a5ea4ab1, we update the span names and ops to better match OpenTelemetry. This should make them more easily accessible to the new agents module view we are building.

Now instead of a span name like generateText.doGenerate, we will show a name like generate_text gpt-4o-mini (which is the OTEL convention for the gen ai span name). Another example, tool calls will show the tool name so you'll get execute_tool getWeather instead of ai.toolCall.

@AbhiPrasad AbhiPrasad requested a review from a team June 5, 2025 20:37
@AbhiPrasad AbhiPrasad self-assigned this Jun 5, 2025
@AbhiPrasad AbhiPrasad requested review from stephanie-anderson and s1gr1d and removed request for a team June 5, 2025 20:37
@AbhiPrasad AbhiPrasad changed the title feat: Update span name and op as per new conventions feat: Update vercel ai span names and ops as per new conventions Jun 5, 2025
Copy link
Contributor

github-actions bot commented Jun 5, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.99 kB - -
@sentry/browser - with treeshaking flags 23.76 kB - -
@sentry/browser (incl. Tracing) 38.36 kB - -
@sentry/browser (incl. Tracing, Replay) 76.47 kB +0.01% +1 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.57 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 81.23 kB -0.01% -1 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 93.31 kB - -
@sentry/browser (incl. Feedback) 40.73 kB -0.01% -1 B 🔽
@sentry/browser (incl. sendFeedback) 28.7 kB - -
@sentry/browser (incl. FeedbackAsync) 33.59 kB - -
@sentry/react 25.76 kB +0.01% +1 B 🔺
@sentry/react (incl. Tracing) 40.35 kB - -
@sentry/vue 28.36 kB - -
@sentry/vue (incl. Tracing) 40.21 kB -0.01% -1 B 🔽
@sentry/svelte 24.01 kB - -
CDN Bundle 25.48 kB - -
CDN Bundle (incl. Tracing) 38.53 kB - -
CDN Bundle (incl. Tracing, Replay) 74.41 kB +0.01% +1 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 79.86 kB - -
CDN Bundle - uncompressed 74.41 kB - -
CDN Bundle (incl. Tracing) - uncompressed 114.1 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 228.07 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 240.89 kB - -
@sentry/nextjs (client) 42.01 kB - -
@sentry/sveltekit (client) 38.84 kB - -
@sentry/node 150.4 kB +0.09% +127 B 🔺
@sentry/node - without tracing 98.33 kB - -
@sentry/aws-serverless 124.1 kB - -

View base workflow run

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.

Update Vercel AI span names and attributes of generate, stream, embed and tool call calls
2 participants