Title: Propagate chat config attributes to `chat.sendMessage()`/`chat.sendMessageStream()` spans for Google GenAI · Issue #20086 · getsentry/sentry-javascript · GitHub
Open Graph Title: Propagate chat config attributes to `chat.sendMessage()`/`chat.sendMessageStream()` spans for Google GenAI · Issue #20086 · getsentry/sentry-javascript
X Title: Propagate chat config attributes to `chat.sendMessage()`/`chat.sendMessageStream()` spans for Google GenAI · Issue #20086 · getsentry/sentry-javascript
Description: With the removal of the chats.create() span (which was a local object construction, not an LLM call), we lost some span attributes that were previously captured from the config parameter passed to chats.create(). These config values are ...
Open Graph Description: With the removal of the chats.create() span (which was a local object construction, not an LLM call), we lost some span attributes that were previously captured from the config parameter passed to ...
X Description: With the removal of the chats.create() span (which was a local object construction, not an LLM call), we lost some span attributes that were previously captured from the config parameter passed to ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/20086
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Propagate chat config attributes to `chat.sendMessage()`/`chat.sendMessageStream()` spans for Google GenAI","articleBody":"With the removal of the `chats.create()` span (which was a local object construction, not an LLM call), we lost some span attributes that were previously captured from the config parameter passed to `chats.create()`. These config values are reused for every subsequent `chat.sendMessage()` / `chat.sendMessageStream()` call on that chat instance and should be welded onto those spans instead.\n\nMissing attributes on `chat.sendMessage()` / `chat.sendMessageStream()` spans:\n\n* gen_ai.request.model — from model\n* gen_ai.request.temperature — from config.temperature\n* gen_ai.request.top_p — from config.topP\n* gen_ai.request.top_k — from config.topK\n* gen_ai.request.max_tokens — from config.maxOutputTokens\n* gen_ai.request.frequency_penalty — from config.frequencyPenalty\n* gen_ai.request.presence_penalty — from config.presencePenalty\n* gen_ai.request.available_tools — from config.tools\n* gen_ai.system_instructions — from config.systemInstruction\n\nSolution brainstorm: The relevant parameters should be captured during the `chats.create()` call and merged onto the LLM invocation spans.","author":{"url":"https://github.com/nicohrubec","@type":"Person","name":"nicohrubec"},"datePublished":"2026-04-02T08:01:37Z","url":"https://github.com/getsentry/sentry-javascript/issues/20086"}
| 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:41f02b6a-4153-f5c7-8fe6-be2b025a623d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8332:199A0D:C23CCA:FD6804:6B04DB88 |
| html-safe-nonce | 905639a944e1e7edab95abbd317bf5158af8af28e370c732a3f62bfdb65f3f99 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzMyOjE5OUEwRDpDMjNDQ0E6RkQ2ODA0OjZCMDREQjg4IiwidmlzaXRvcl9pZCI6IjY0MjA2ODc3MTk0NDE0MjMyNDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 55728e10221694f55df1a99074dd3c06c145e7b7cb06ba1f8e22baef5a0ef290 |
| hovercard-subject-tag | issue:4192636639 |
| 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/20086/issue_layout |
| twitter:image | https://opengraph.githubassets.com/10a7e18452475da24aeb50a3e0cf8460c9ba1a61d248529a27134e466810ff56/getsentry/sentry-javascript/issues/20086 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/10a7e18452475da24aeb50a3e0cf8460c9ba1a61d248529a27134e466810ff56/getsentry/sentry-javascript/issues/20086 |
| og:image:alt | With the removal of the chats.create() span (which was a local object construction, not an LLM call), we lost some span attributes that were previously captured from the config parameter passed to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nicohrubec |
| hostname | github.com |
| expected-hostname | github.com |
| None | 194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965 |
| 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 | 6c35540a0a2991ee20bd053ba2601cce33f72cb1 |
| 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