Skip to content

feat(langchain)!: Emit gen_ai.pipeline.name instead of langchain.chain.name - #23740

Open
RulaKhaled wants to merge 1 commit into
developfrom
rolaabuhasna/js-3452-move-langchainchainname-to-gen_aipipelinename
Open

feat(langchain)!: Emit gen_ai.pipeline.name instead of langchain.chain.name#23740
RulaKhaled wants to merge 1 commit into
developfrom
rolaabuhasna/js-3452-move-langchainchainname-to-gen_aipipelinename

Conversation

@RulaKhaled

@RulaKhaled RulaKhaled commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

LangChain chain spans now emit gen_ai.pipeline.name instead of the js only langchain.chain.name, matching LangGraph so dashboards, alerts, and span-name templates share one key. Unnamed chains omit the attribute rather than writing unknown_chain; span names are unchanged.

Fixes #23683

…n.name

LangChain was the odd one out — LangGraph already sets the conventions
attribute, while langchain.chain.name was a JS-only key. Unnamed chains
skip the attribute rather than writing unknown_chain into a registered key.

Fixes #23683

Co-Authored-By: Cursor Grok 4.6 <cursoragent@cursor.com>
@linear-code

linear-code Bot commented Aug 28, 2026

Copy link
Copy Markdown

JS-3452

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.56 kB - -
@sentry/browser - with treeshaking flags 26.92 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB - -
@sentry/browser (incl. Tracing) 48.64 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.65 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.56 kB - -
@sentry/browser (incl. Tracing, Replay) 88.09 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.52 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.79 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.74 kB - -
@sentry/browser (incl. Feedback) 46.05 kB - -
@sentry/browser (incl. sendFeedback) 33.62 kB - -
@sentry/browser (incl. FeedbackAsync) 38.73 kB - -
@sentry/browser (incl. Metrics) 29.51 kB - -
@sentry/browser (incl. Logs) 29.8 kB - -
@sentry/browser (incl. Metrics & Logs) 30.43 kB - -
@sentry/react 30.3 kB - -
@sentry/react (incl. Tracing) 50.84 kB - -
@sentry/vue 35.69 kB - -
@sentry/vue (incl. Tracing) 50.87 kB - -
@sentry/svelte 28.59 kB - -
CDN Bundle 30.35 kB - -
CDN Bundle (incl. Tracing) 49.25 kB - -
CDN Bundle (incl. Logs, Metrics) 32.58 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 51.15 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 73.17 kB - -
CDN Bundle (incl. Tracing, Replay) 86.74 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.62 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.63 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.52 kB - -
CDN Bundle - uncompressed 89.95 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.85 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.24 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.54 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.41 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.34 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.02 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 280.05 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.71 kB - -
@sentry/nextjs (client) 53.42 kB - -
@sentry/sveltekit (client) 49.08 kB - -
@sentry/core/server 65.19 kB - -
@sentry/core/browser 51.84 kB - -
@sentry/node 122.82 kB +0.03% +30 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.23 kB - -
@sentry/node - without tracing 87.75 kB +0.04% +27 B 🔺
@sentry/node - without channel injection 102.51 kB +0.05% +47 B 🔺
@sentry/aws-serverless 95.91 kB +0.03% +25 B 🔺
@sentry/cloudflare (withSentry) - minified 199.83 kB - -
@sentry/cloudflare (withSentry) 496.91 kB - -

View base workflow run

@RulaKhaled
RulaKhaled marked this pull request as ready for review August 28, 2026 14:37
@RulaKhaled
RulaKhaled requested review from a team as code owners August 28, 2026 14:37
@RulaKhaled
RulaKhaled requested review from andreiborza and isaacs and removed request for a team August 28, 2026 14:37
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

Move langchain.chain.name to gen_ai.pipeline.name

1 participant