Skip to content

feat(server-utils): Instrument the OpenAI decisions API as gen_ai.decide spans - #25285

Draft
andreiborza wants to merge 9 commits into
developfrom
ab/openai-decisions
Draft

andreiborza wants to merge 9 commits into
developfrom
ab/openai-decisions

Conversation

@andreiborza

Copy link
Copy Markdown
Member

What

OpenAI decisions.create calls now create decide <model> spans with op gen_ai.decide, with the same input and answer shape as Jev calls.

Why

OpenAI added a Decisions API that works like Jev, and these calls had no span.

Related: #25253

…ide spans

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread dev-packages/node-integration-tests/suites/tracing/openai/v7/test.ts Outdated
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 29.82 kB -0.05% -13 B 🔽
@sentry/browser - with treeshaking flags 27.95 kB -0.03% -8 B 🔽
@sentry/browser - with treeshaking flags tracing without tracing 27.86 kB -0.05% -12 B 🔽
@sentry/browser (incl. Tracing) 51.96 kB -0.12% -60 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 51.96 kB -0.12% -59 B 🔽
@sentry/browser (incl. Tracing, Profiling) 54.91 kB -0.11% -56 B 🔽
@sentry/browser (incl. Tracing, Replay) 91.69 kB -0.07% -57 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 80.57 kB -0.07% -51 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 96.41 kB -0.07% -64 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 109.38 kB -0.05% -51 B 🔽
@sentry/browser (incl. Feedback) 47.34 kB -0.02% -6 B 🔽
@sentry/browser (incl. sendFeedback) 34.87 kB -0.05% -17 B 🔽
@sentry/browser (incl. FeedbackAsync) 39.98 kB -0.06% -23 B 🔽
@sentry/browser (incl. Metrics) 30.84 kB -0.02% -5 B 🔽
@sentry/browser (incl. Logs) 31.13 kB -0.02% -5 B 🔽
@sentry/browser (incl. Metrics & Logs) 31.77 kB -0.03% -9 B 🔽
@sentry/react 31.65 kB +0.02% +5 B 🔺
@sentry/react (incl. Tracing) 54.28 kB -0.12% -63 B 🔽
@sentry/vue 37.95 kB -0.06% -22 B 🔽
@sentry/vue (incl. Tracing) 54.87 kB -0.14% -75 B 🔽
@sentry/svelte 29.84 kB -0.04% -9 B 🔽
@sentry/remix (Remix 3 client bundle) 56.97 kB -0.08% -44 B 🔽
CDN Bundle 31.55 kB -0.05% -14 B 🔽
CDN Bundle (incl. Tracing) 52.47 kB -0.09% -43 B 🔽
CDN Bundle (incl. Logs, Metrics) 33.75 kB -0.06% -19 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 54.41 kB -0.1% -54 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 74.67 kB -0.05% -32 B 🔽
CDN Bundle (incl. Tracing, Replay) 90.13 kB -0.07% -56 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 92.06 kB -0.06% -55 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 96.29 kB -0.06% -50 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.22 kB -0.06% -55 B 🔽
CDN Bundle - uncompressed 92.91 kB -0.08% -71 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 155.72 kB -0.08% -117 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.45 kB -0.08% -75 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 161.67 kB -0.08% -121 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.48 kB -0.04% -75 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 275.88 kB -0.05% -117 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 281.82 kB -0.05% -121 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 289.58 kB -0.05% -117 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 295.51 kB -0.05% -121 B 🔽
@sentry/nextjs (client) 56.67 kB -0.14% -74 B 🔽
@sentry/sveltekit (client) 52.35 kB -0.12% -60 B 🔽
@sentry/core/server 40.99 kB - -
@sentry/core/browser 13.81 kB - -
@sentry/node 152.18 kB +0.15% +225 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.81 kB +0.04% +27 B 🔺
@sentry/node - without tracing 94.56 kB +0.03% +26 B 🔺
@sentry/node - without channel injection 130.38 kB +0.2% +250 B 🔺
@sentry/aws-serverless 102.72 kB +0.04% +36 B 🔺
@sentry/cloudflare (withSentry) - minified 210.38 kB - -
@sentry/cloudflare (withSentry) 521.61 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 228.06 kB - -

View base workflow run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 99155fb. Configure here.

This branch has not been deployed

No deployments
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