Skip to content
Open
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c5c2dfe
refactor(starlette): centralize active thread updates
faizansaiyed123 Oct 2, 2026
a14cd78
refactor(fastapi): use Starlette active thread helper
faizansaiyed123 Oct 2, 2026
87d3a13
chore(fastapi): remove unused thread helper import
faizansaiyed123 Oct 2, 2026
bdaadd5
refactor(fastapi): register active thread dependency globally
faizansaiyed123 Oct 2, 2026
1301df5
refactor(fastapi): remove private request handler patch
faizansaiyed123 Oct 2, 2026
4b487a3
test(fastapi): cover global dependency websocket compatibility
faizansaiyed123 Oct 2, 2026
ba306d1
style(fastapi): tidy global dependency setup
faizansaiyed123 Oct 2, 2026
d287e61
test(fastapi): preserve user global dependencies
faizansaiyed123 Oct 2, 2026
24f7914
test(fastapi): fix global dependency test placement
faizansaiyed123 Oct 2, 2026
19407b5
fix(starlette): preserve sync request scope access
faizansaiyed123 Oct 2, 2026
c0459e3
refactor(fastapi): move request setup into global dependency
faizansaiyed123 Oct 2, 2026
475f391
style(fastapi): tidy global dependency signature
faizansaiyed123 Oct 2, 2026
070f150
refactor(starlette): centralize sync thread wrapper
faizansaiyed123 Oct 2, 2026
3008a93
fix(fastapi): preserve sync endpoint thread tracking
faizansaiyed123 Oct 2, 2026
2af5b30
fix(fastapi): wrap effective route dependant
faizansaiyed123 Oct 2, 2026
ebcff1b
fix(fastapi): use effective dependant for sync routes
faizansaiyed123 Oct 2, 2026
6a70b84
test(fastapi): cover sync thread tracking in prefixed routes
faizansaiyed123 Oct 2, 2026
b55b5d6
style(fastapi): format thread metadata assertion
faizansaiyed123 Oct 2, 2026
b3e43e3
refactor(fastapi): restore request lifecycle in global dependency
faizansaiyed123 Oct 2, 2026
9a187d9
refactor(fastapi): simplify request event processor helper
faizansaiyed123 Oct 2, 2026
99ae098
test(fastapi): cover dependency order and request data
faizansaiyed123 Oct 2, 2026
cfb86e0
test(fastapi): enable tracing for dependency order check
faizansaiyed123 Oct 2, 2026
6f39b1e
test(fastapi): cover dependency order and request data
faizansaiyed123 Oct 2, 2026
fd54812
fix(fastapi): fall back to the routed dependant
faizansaiyed123 Oct 2, 2026
7b76b1f
test(fastapi): cover request data on all supported versions
faizansaiyed123 Oct 2, 2026
f824525
fix(fastapi): install request isolation with integration
faizansaiyed123 Oct 2, 2026
c428c6e
test(fastapi): isolate request event processors
faizansaiyed123 Oct 2, 2026
4cb785b
fix(starlette): reuse ASGI instrumentation for FastAPI
faizansaiyed123 Oct 2, 2026
0468859
test(fastapi): verify request processor cleanup
faizansaiyed123 Oct 2, 2026
1fc5ea8
sync starlette integration with verified PR state
faizansaiyed123 Oct 2, 2026
1e3d9c2
sync fastapi tests with verified PR state
faizansaiyed123 Oct 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(fastapi): install request isolation with integration
  • Loading branch information
faizansaiyed123 committed Oct 2, 2026
commit f8245254895d7ee9757d1a0de79ee80046750e51
4 changes: 4 additions & 0 deletions sentry_sdk/integrations/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ class FastApiIntegration(StarletteIntegration):

@staticmethod
def setup_once() -> None:
# FastAPI uses the Starlette ASGI lifecycle, so make sure the
# request-scoped isolation scope is installed even when the FastAPI
# integration is enabled without the Starlette integration.
StarletteIntegration.setup_once()
patch_fastapi_init()
Comment thread
cursor[bot] marked this conversation as resolved.


Expand Down