Skip to content

feat(attributes): Add langchain.chain.name (deprecated) in favor of gen_ai.pipeline.name - #599

Merged
Lms24 merged 3 commits into
mainfrom
cursor/langchain-chain-name-to-pipeline-f493
Sep 2, 2026
Merged

feat(attributes): Add langchain.chain.name (deprecated) in favor of gen_ai.pipeline.name#599
Lms24 merged 3 commits into
mainfrom
cursor/langchain-chain-name-to-pipeline-f493

Conversation

@RulaKhaled

Copy link
Copy Markdown
Collaborator

The JavaScript SDK ships langchain.chain.name on LangChain chain spans, but it has no conventions registry entry. That value is the name of the AI pipeline/chain being executed, which is already covered by gen_ai.pipeline.name (and LangGraph already sets that attribute).

This registers langchain.chain.name as deprecated with gen_ai.pipeline.name as its replacement, _status: backfill, and adds it to the existing gen_ai.pipeline.name / ai.pipeline.name alias group so ingest can copy historical values onto the canonical name.

The agent span name template {{gen_ai.operation.name}} {{gen_ai.pipeline.name}} is already in place from #593.

Conventions work for JS-3452 / getsentry/sentry-javascript#23683. SDK emission of gen_ai.pipeline.name instead of langchain.chain.name is a follow-up in sentry-javascript.

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

Open in Web Open in Cursor 

…en_ai.pipeline.name

Register the JS-only LangChain chain name as a backfilled alias of
gen_ai.pipeline.name so ingest can copy historical values onto the
canonical gen_ai attribute.

Co-authored-by: Rola Abuhasna <rola.abuhasna@sentry.io>
@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Add langchain.chain.name (deprecated) in favor of gen_ai.pipeline.name by RulaKhaled in #599
  • Add browser.paint.type by Lms24 in #606

Names

  • Add browser.* span name and description rules by Lms24 in #607
  • Add cache span name rules by Lms24 in #605

Internal Changes 🔧

  • (descriptions) Fix http.client span description example by Lms24 in #603

🤖 This preview updates automatically when you update the PR.

Co-authored-by: Rola Abuhasna <rola.abuhasna@sentry.io>
@RulaKhaled
RulaKhaled marked this pull request as ready for review August 28, 2026 13:09
@RulaKhaled
RulaKhaled requested review from a team, Lms24, cleptric, mjq and nsdeschenes as code owners August 28, 2026 13:09

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from conventions perspective. Would appreciate a review from Agent monitoring folks!

@Lms24
Lms24 enabled auto-merge (squash) September 2, 2026 10:51
@Lms24
Lms24 merged commit 49ff68a into main Sep 2, 2026
17 checks passed
@Lms24
Lms24 deleted the cursor/langchain-chain-name-to-pipeline-f493 branch September 2, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants