ref(langgraph)!: Drop gen_ai.create_agent spans - #22840
Draft
nicohrubec wants to merge 3 commits into
Draft
Conversation
The LangGraph instrumentation no longer emits `gen_ai.create_agent` spans on graph compile. These spans are no longer relevant for Sentry's AI product, and removing them for v11 keeps the leftover out of the major. The span was emitted from two call sites sharing the `_INTERNAL_getLangGraphCreateAgentSpanOptions` builder: the core `instrumentStateGraphCompile` proxy and the orchestrion `stateGraphCompile` channel. Both now only wrap the compiled graph's `invoke`. The `insideCreateReactAgent` suppression is kept — it prevents duplicate `invoke_agent` spans, independent of the create_agent span. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Rename and refocus the orchestrion stateGraphCompile test to assert what it does now — wrapping the compiled graph's invoke — instead of framing it around the removed create_agent span. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
A plain writable `invoke` property is enough; the getter/setter was unnecessary. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
size-limit report 📦
|
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.
Drops the
gen_ai.create_agentspans from the LangGraph instrumentation, which are no longer relevant.Fixes #22335