Title: Drop 'unknown' model fallbacks across AI integrations · Issue #25353 · getsentry/sentry-javascript · GitHub
Open Graph Title: Drop 'unknown' model fallbacks across AI integrations · Issue #25353 · getsentry/sentry-javascript
X Title: Drop 'unknown' model fallbacks across AI integrations · Issue #25353 · getsentry/sentry-javascript
Description: When a request has no model, the AI integrations set gen_ai.request.model to 'unknown', and the span name becomes
Open Graph Description: When a request has no model, the AI integrations set gen_ai.request.model to 'unknown', and the span name becomes
X Description: When a request has no model, the AI integrations set gen_ai.request.model to 'unknown', and the span name becomes <operation> unknown. With span streaming the name drops the model, bu...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25353
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Drop 'unknown' model fallbacks across AI integrations","articleBody":"When a request has no model, the AI integrations set `gen_ai.request.model` to `'unknown'`, and the span name becomes `\u003coperation> unknown`. With span streaming the name drops the model, but the attribute stays.\n\nIf there is no model, do not set `gen_ai.request.model`. The span name is then only the operation (for example `chat`), with or without span streaming.\n\nAffected integrations (in `packages/server-utils/src`):\n\n* OpenAI: `ai/openai/index.ts`, `ai/openai/utils.ts`, `integrations/openai.ts`\n* Anthropic: `ai/anthropic-ai/index.ts`\n* Google GenAI: `ai/google-genai/index.ts`, `integrations/google-genai.ts`\n* LangChain: `ai/langchain/index.ts`, `ai/langchain/utils.ts`, `ai/langchain/embeddings.ts`\n* Workers AI: `ai/workers-ai/index.ts`, `ai/workers-ai/utils.ts`\n\nRaised in review: [https://github.com/getsentry/sentry-javascript/pull/25285#discussion_r4267469713](\u003chttps://github.com/getsentry/sentry-javascript/pull/25285#discussion_r4267469713>)\n\nAlso evaluate other usages of `unknown` through out all ai integrations.\n\nFurthermore, create test cases where we call providers without specifying a model.","author":{"url":"https://github.com/andreiborza","@type":"Person","name":"andreiborza"},"datePublished":"2026-10-14T08:21:35Z","url":"https://github.com/getsentry/sentry-javascript/issues/25353"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6115d2f0-8845-b6bb-5eb9-fd1be68385ed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0BA:2F8368:1BBD1E:25673F:6B043804 |
| html-safe-nonce | 05825d293cb54fc67855dc17db53edb2e8a18a4a8cd391d05c644e375aaf2b88 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEJBOjJGODM2ODoxQkJEMUU6MjU2NzNGOjZCMDQzODA0IiwidmlzaXRvcl9pZCI6IjM5MTA3MzAzOTY2ODk3NzQ1OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 12739d5ba2e5f10afd00a7e91bc7b7039921615d9cd9d2b116df407517f4d925 |
| hovercard-subject-tag | issue:5844432476 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/25353/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eee3f4c19120d41a950bbf61bc77b170d8a83b53f0b87dda68c3759526fbbbc6/getsentry/sentry-javascript/issues/25353 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eee3f4c19120d41a950bbf61bc77b170d8a83b53f0b87dda68c3759526fbbbc6/getsentry/sentry-javascript/issues/25353 |
| og:image:alt | When a request has no model, the AI integrations set gen_ai.request.model to 'unknown', and the span name becomes |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andreiborza |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width