Title: fix(langchain): use runName argument in handleChainStart to fix unknown_chain spans · Issue #19555 · getsentry/sentry-javascript · GitHub
Open Graph Title: fix(langchain): use runName argument in handleChainStart to fix unknown_chain spans · Issue #19555 · getsentry/sentry-javascript
X Title: fix(langchain): use runName argument in handleChainStart to fix unknown_chain spans · Issue #19555 · getsentry/sentry-javascript
Description: NoteThe pull request "fix(langchain): use runName argument in handleChainStart to fix unknown_chain spans" was created by @priscilawebdev but did not reference an issue. Therefore this issue was created for better visibility in external ...
Open Graph Description: NoteThe pull request "fix(langchain): use runName argument in handleChainStart to fix unknown_chain spans" was created by @priscilawebdev but did not reference an issue. Therefore this issue was cr...
X Description: NoteThe pull request "fix(langchain): use runName argument in handleChainStart to fix unknown_chain spans" was created by @priscilawebdev but did not reference an issue. Therefore this is...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/19555
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(langchain): use runName argument in handleChainStart to fix unknown_chain spans","articleBody":"> [!NOTE]\n> The pull request \"[fix(langchain): use runName argument in handleChainStart to fix unknown_chain spans](https://github.com/getsentry/sentry-javascript/pull/19554)\" was created by @priscilawebdev but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.\n\n`handleChainStart` in `createLangChainCallbackHandler` only read 4 of the 8 parameters\nLangChain passes to the callback. The 8th argument, `runName`, carries the actual\nnode/run name (e.g. LangGraph node names), but the implementation never reached it.\n\n`chain.name` is not a standard property on LangChain's `Serialized` type and is always\n`undefined`, so every chain span fell back to `'unknown_chain'` regardless of what the\nactual chain or node was named.\n\nThe fix expands the signature to accept all 8 parameters and uses `runName` as the first\nfallback before `chain.name`:\n\n```js\nconst chainName = runName || chain.name || 'unknown_chain';\n```\n\nThis matches how `handleLLMStart` and `handleChatModelStart` already handle their\nequivalent `runName` parameter (accepted but currently unused — chain spans are the\nmost impactful case since LangGraph passes node names there).\n","author":{"url":"https://github.com/apps/github-actions","@type":"Person","name":"github-actions"},"datePublished":"2026-02-27T10:02:49Z","url":"https://github.com/getsentry/sentry-javascript/issues/19555"}
| 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:f29905f0-f9b8-917a-ebe8-cd2851e050b7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A004:12A1D2:2D87C9:3B2D59:6B04F34D |
| html-safe-nonce | 71df937ba1e03a9af573c86f076b9c7f70b39abe785596f156ad786cdacb1207 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDA0OjEyQTFEMjoyRDg3Qzk6M0IyRDU5OjZCMDRGMzREIiwidmlzaXRvcl9pZCI6IjcyMTc2MzMxMjYxNDU5MTM2NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | db9e3bb3d6c7cda895ee812161b21f51990f19e2bc720da07e13e38f15d9f419 |
| hovercard-subject-tag | issue:4000202913 |
| 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/19555/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0a55327127d6f9c2f6d4574255339e53e1e6178d60e0ae0199f0b32c9ff7ad4/getsentry/sentry-javascript/issues/19555 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0a55327127d6f9c2f6d4574255339e53e1e6178d60e0ae0199f0b32c9ff7ad4/getsentry/sentry-javascript/issues/19555 |
| og:image:alt | NoteThe pull request "fix(langchain): use runName argument in handleChainStart to fix unknown_chain spans" was created by @priscilawebdev but did not reference an issue. Therefore this issue was cr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | github-actions[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0ff704de2671f716381d0ef36115cddb81606dd5397a5b003230bb8c02d623b |
| 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 | cbe60d43d23e17438879ed212ad20068394651c4 |
| 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