Skip to content

feat(litestar): Set name and source on route span when streaming#6553

Open
alexander-alderman-webb wants to merge 2 commits into
masterfrom
webb/litestar/transaction-name
Open

feat(litestar): Set name and source on route span when streaming#6553
alexander-alderman-webb wants to merge 2 commits into
masterfrom
webb/litestar/transaction-name

Conversation

@alexander-alderman-webb

Copy link
Copy Markdown
Contributor

Description

Call Scope.set_transaction_name() on isolation and current scopes instead of manually overwriting event fields in an event processor.

Using the function ensures that the name and the sentry.span.source attribute are set on the segment span when the streaming trace lifecycle is enabled.

Issues

Reminders

@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner June 10, 2026 10:48
@alexander-alderman-webb alexander-alderman-webb marked this pull request as draft June 10, 2026 10:50
Comment thread sentry_sdk/integrations/litestar.py Outdated
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

89334 passed | ⏭️ 6013 skipped | Total: 95347 | Pass Rate: 93.69% | Execution Time: 306m 48s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +1167
Passed Tests 📈 +1062
Failed Tests
Skipped Tests 📈 +105

All tests are passing successfully.

✅ Patch coverage is 88.24%. Project has 2373 uncovered lines.
✅ Project coverage is 89.87%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/litestar.py 88.24% ⚠️ 2 Missing and 1 partials
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.83%    89.87%    +0.04%
==========================================
  Files          192       192         —
  Lines        23430     23432        +2
  Branches      8050      8050         —
==========================================
+ Hits         21049     21059       +10
- Misses        2381      2373        -8
- Partials      1333      1329        -4

Generated by Codecov Action

@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review June 10, 2026 11:10
Comment thread sentry_sdk/integrations/litestar.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant