Skip to content

Commit dbc8ba2

Browse files
committed
fix fastapi
1 parent 4002f38 commit dbc8ba2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/integrations/fastapi/test_fastapi.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,11 @@ def dummy_traces_sampler(sampling_context):
458458

459459
sentry_init(
460460
auto_enabling_integrations=False, # Make sure that httpx integration is not added, because it adds tracing information to the starlette test clients request.
461-
integrations=[StarletteIntegration(transaction_style=transaction_style)],
461+
integrations=[
462+
StarletteIntegration(
463+
transaction_style=transaction_style, middleware_spans=False
464+
)
465+
],
462466
traces_sampler=dummy_traces_sampler,
463467
traces_sample_rate=1.0,
464468
)

0 commit comments

Comments
 (0)