Title: Move langchain.chain.name to gen_ai.pipeline.name · Issue #23683 · getsentry/sentry-javascript · GitHub
Open Graph Title: Move langchain.chain.name to gen_ai.pipeline.name · Issue #23683 · getsentry/sentry-javascript
X Title: Move langchain.chain.name to gen_ai.pipeline.name · Issue #23683 · getsentry/sentry-javascript
Description: Follow-up to #23582. langchain.chain.name is a JS-only attribute with no entry in the conventions registry, while gen_ai.pipeline.name — "Name of the AI pipeline or chain being executed" — covers exactly this value and is already set by ...
Open Graph Description: Follow-up to #23582. langchain.chain.name is a JS-only attribute with no entry in the conventions registry, while gen_ai.pipeline.name — "Name of the AI pipeline or chain being executed" — covers e...
X Description: Follow-up to #23582. langchain.chain.name is a JS-only attribute with no entry in the conventions registry, while gen_ai.pipeline.name — "Name of the AI pipeline or chain being executed" ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/23683
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Move langchain.chain.name to gen_ai.pipeline.name","articleBody":"Follow-up to getsentry/sentry-javascript#23582. `langchain.chain.name` is a JS-only attribute with no entry in the conventions registry, while `gen_ai.pipeline.name` — \"Name of the AI pipeline or chain being executed\" — covers exactly this value and is already set by our LangGraph instrumentation (`packages/server-utils/src/ai/langgraph/index.ts:115`). LangChain is the odd one out.\n\n## Conventions\n\n- [X] Register `langchain.chain.name` as deprecated, with `gen_ai.pipeline.name` as its replacement\n- [X] Add `{{gen_ai.operation.name}} {{gen_ai.pipeline.name}}` to the gen_ai agent name templates, so `invoke_agent format_prompt` is template-backed\n\n## SDK\n\n- [X] Emit `gen_ai.pipeline.name` instead of `langchain.chain.name` on LangChain chain spans (`packages/server-utils/src/ai/langchain/index.ts`, `handleChainStart`)\n- [X] Skip the attribute entirely when the chain is unnamed, rather than writing the `unknown_chain` sentinel into a registered attribute — matches LangGraph, which only sets `pipeline.name` when a graph name exists\n- [X] Update unit + integration tests that assert `langchain.chain.name`\n- [X] Add a `MIGRATION.md` bullet under the existing gen_ai attribute renames in the v11 section\n\n## Notes\n\n* Breaking change: the attribute ships in v10, so dashboards/alerts/`ignoreSpans` rules keyed on `langchain.chain.name` will silently stop matching. Needs to land before v11 releases so it rides along with the renames already listed there.\n* Span names are unaffected. getsentry/sentry-javascript#23582 builds `invoke_agent {chainName}` from a local variable, not from the attribute, so the rename doesn't change any name.","author":{"url":"https://github.com/RulaKhaled","@type":"Person","name":"RulaKhaled"},"datePublished":"2026-08-27T12:41:41Z","url":"https://github.com/getsentry/sentry-javascript/issues/23683"}
| 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:111afa2b-4190-cf6c-028c-782b61e78443 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB84:27DE6D:A25CC6:E2DA91:6B04300E |
| html-safe-nonce | e8faabec38832df6006064e345ae63dc75bef25f8d248225134a0f86d5e3d314 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjg0OjI3REU2RDpBMjVDQzY6RTJEQTkxOjZCMDQzMDBFIiwidmlzaXRvcl9pZCI6IjkwNjc2NzM1NzcxODAxMTQ5NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 538c7ae191814f23085ba35e242856e6961a1e79e0133c90caa6276115c96787 |
| hovercard-subject-tag | issue:5267629330 |
| 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/23683/issue_layout |
| twitter:image | https://opengraph.githubassets.com/80f6475fd0cc6d29a3b2836bedc03a614db20b81a01c365a75df9195c23b3ca5/getsentry/sentry-javascript/issues/23683 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/80f6475fd0cc6d29a3b2836bedc03a614db20b81a01c365a75df9195c23b3ca5/getsentry/sentry-javascript/issues/23683 |
| og:image:alt | Follow-up to #23582. langchain.chain.name is a JS-only attribute with no entry in the conventions registry, while gen_ai.pipeline.name — "Name of the AI pipeline or chain being executed" — covers e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RulaKhaled |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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