Skip to content

feat(langgraph): Support span streaming#6406

Open
alexander-alderman-webb wants to merge 17 commits into
masterfrom
webb/langgraph/span-first
Open

feat(langgraph): Support span streaming#6406
alexander-alderman-webb wants to merge 17 commits into
masterfrom
webb/langgraph/span-first

Conversation

@alexander-alderman-webb
Copy link
Copy Markdown
Contributor

@alexander-alderman-webb alexander-alderman-webb commented May 26, 2026

Note: Depends on #6405

Description

Use sentry_sdk.traces.start_span and replace Span.set_data() with StreamedSpan.set_attribute() when in span streaming mode.

Do not create spans for StateGraph.compile when the streaming trace lifecycle is configured.

Parametrize tests on the trace lifecycle option.

Issues

Closes #6032

Reminders

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 26, 2026

Codecov Results 📊

2206 passed | ⏭️ 153 skipped | Total: 2359 | Pass Rate: 93.51% | Execution Time: 4m 51s

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests 📈 +1
Failed Tests
Skipped Tests 📉 -1

✨ No test changes detected

All tests are passing successfully.

❌ Patch coverage is 0.00%. Project has 13412 uncovered lines.
❌ Project coverage is 41.13%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/langgraph.py 0.00% ⚠️ 23 Missing
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    41.16%    41.13%    -0.03%
==========================================
  Files          190       190         —
  Lines        22751     22784       +33
  Branches      7778      7788       +10
==========================================
+ Hits          9366      9372        +6
- Misses       13385     13412       +27
- Partials       507       507         —

Generated by Codecov Action

@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review May 26, 2026 12:25
@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner May 26, 2026 12:25
Comment thread sentry_sdk/integrations/langgraph.py
Comment thread sentry_sdk/integrations/langgraph.py
Comment thread sentry_sdk/integrations/langgraph.py
Base automatically changed from webb/langchain/span-first to master May 27, 2026 11:31
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 41ed46b. Configure here.

Comment thread tests/integrations/langgraph/test_langgraph.py
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.

Migrate langgraph to span first

2 participants