feat(langchain): Emit gen_ai.pipeline.name instead of langchain.chain.name - #23740
Merged
RulaKhaled merged 3 commits intoAug 31, 2026
Conversation
…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>
Contributor
size-limit report 📦
|
RulaKhaled
marked this pull request as ready for review
August 28, 2026 14:37
RulaKhaled
requested review from
Lms24,
andreiborza and
isaacs
and removed request for
a team
August 28, 2026 14:37
…ame-to-gen_aipipelinename
Lms24
approved these changes
Aug 31, 2026
andreiborza
reviewed
Aug 31, 2026
| : chainName | ||
| ? `invoke_agent ${chainName}` | ||
| : 'invoke_agent', | ||
| op: 'gen_ai.invoke_agent', |
Member
There was a problem hiding this comment.
m: We don't want to set op anymore directly, I think. Right @Lms24?
Member
There was a problem hiding this comment.
yes, let's remove it as we already set the sentry.op attribute :)
Lms24
reviewed
Aug 31, 2026
Member
|
super-l: We can remove the |
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ejYwBohxtqPZ8cL3hDCkh
RulaKhaled
deleted the
rolaabuhasna/js-3452-move-langchainchainname-to-gen_aipipelinename
branch
August 31, 2026 21:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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