Skip to content

Starlette Context Propagation in StreamingResponse#1720

Merged
TimPansino merged 4 commits intomainfrom
fix-starlette-context-propagation
May 6, 2026
Merged

Starlette Context Propagation in StreamingResponse#1720
TimPansino merged 4 commits intomainfrom
fix-starlette-context-propagation

Conversation

@TimPansino
Copy link
Copy Markdown
Contributor

Overview

  • Add trace context propagation to Starlette StreamingResponse for both synchronous and asynchronous generators.

@TimPansino TimPansino requested a review from a team as a code owner April 30, 2026 23:43
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 8 0 0 1.04s
✅ MARKDOWN markdownlint 7 0 0 0 1.45s
✅ PYTHON ruff 1030 0 0 0 1.14s
✅ PYTHON ruff-format 1030 0 0 0 0.4s
✅ YAML prettier 19 0 0 0 1.61s
✅ YAML v8r 19 0 0 5.37s
✅ YAML yamllint 19 0 0 0.75s

See detailed reports in MegaLinter artifacts

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 30, 2026

Codecov Report

❌ Patch coverage is 78.26087% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.91%. Comparing base (cc86a41) to head (2dde8be).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
newrelic/hooks/framework_starlette.py 78.26% 2 Missing and 3 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1720   +/-   ##
=======================================
  Coverage   81.90%   81.91%           
=======================================
  Files         214      214           
  Lines       25812    25834   +22     
  Branches     4083     4088    +5     
=======================================
+ Hits        21141    21161   +20     
  Misses       3274     3274           
- Partials     1397     1399    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mergify mergify Bot added the tests-failing Tests failing in CI. label May 4, 2026
@TimPansino TimPansino force-pushed the fix-starlette-context-propagation branch from de36cd9 to 19cdbf4 Compare May 4, 2026 23:31
lrafeei
lrafeei previously approved these changes May 6, 2026
@mergify mergify Bot removed the tests-failing Tests failing in CI. label May 6, 2026
@TimPansino TimPansino enabled auto-merge (squash) May 6, 2026 22:28
@mergify mergify Bot added the tests-failing Tests failing in CI. label May 6, 2026
@TimPansino TimPansino force-pushed the fix-starlette-context-propagation branch from a0e178a to c4d9a33 Compare May 6, 2026 22:31
@TimPansino TimPansino merged commit 72d753f into main May 6, 2026
64 checks passed
@TimPansino TimPansino deleted the fix-starlette-context-propagation branch May 6, 2026 22:41
@mergify mergify Bot removed the tests-failing Tests failing in CI. label May 6, 2026
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