Title: [Anthropic integration] Set `gen_ai.response.finish_reason` on span when available · Issue #5658 · getsentry/sentry-python · GitHub
Open Graph Title: [Anthropic integration] Set `gen_ai.response.finish_reason` on span when available · Issue #5658 · getsentry/sentry-python
X Title: [Anthropic integration] Set `gen_ai.response.finish_reason` on span when available · Issue #5658 · getsentry/sentry-python
Description: While an optional attribute, we have the ability to set the gen_ai.response.finish_reason span within the Anthropic integration, either through the result.stop_reason for non-streaming responses, or the event.delta.stop_reason for stream...
Open Graph Description: While an optional attribute, we have the ability to set the gen_ai.response.finish_reason span within the Anthropic integration, either through the result.stop_reason for non-streaming responses, o...
X Description: While an optional attribute, we have the ability to set the gen_ai.response.finish_reason span within the Anthropic integration, either through the result.stop_reason for non-streaming responses, o...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/5658
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Anthropic integration] Set `gen_ai.response.finish_reason` on span when available","articleBody":"While an optional attribute, we have the ability to set the `gen_ai.response.finish_reason` span within the Anthropic integration, either through the `result.stop_reason` for non-streaming responses, or the `event.delta.stop_reason` for streaming messages. \n\nWe need to ensure that we set the `gen_ai.response.finish_reason` span when available in the Anthropic integration, similar to what we do for other integrations like Google, Hugging Face, and LangChain.","author":{"url":"https://github.com/ericapisani","@type":"Person","name":"ericapisani"},"datePublished":"2026-03-13T09:44:52Z","url":"https://github.com/getsentry/sentry-python/issues/5658"}
| 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:4935ebae-a0ab-d111-3709-5afd6f48e2a0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBC2:31B4CC:9FC508:D3F1D3:6B00E52E |
| html-safe-nonce | ccd3dba5fd80ac9d3b63fdb70c0db3265aa358c75e779b3017c9bb9b8547153b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkMyOjMxQjRDQzo5RkM1MDg6RDNGMUQzOjZCMDBFNTJFIiwidmlzaXRvcl9pZCI6IjQzMTE5NTU2ODg3NDcyMzA1MTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 915e83774d5d7351f25474a52681fb6a669b8cb0e6f1562c1b2950808647ced2 |
| hovercard-subject-tag | issue:4070034435 |
| 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-python/5658/issue_layout |
| twitter:image | https://opengraph.githubassets.com/09d43b4470c726bfaad373d318a0027b5211c2d0aa9292bea9428b67c78f5753/getsentry/sentry-python/issues/5658 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/09d43b4470c726bfaad373d318a0027b5211c2d0aa9292bea9428b67c78f5753/getsentry/sentry-python/issues/5658 |
| og:image:alt | While an optional attribute, we have the ability to set the gen_ai.response.finish_reason span within the Anthropic integration, either through the result.stop_reason for non-streaming responses, o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericapisani |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width