Skip to content

Commit 4002f38

Browse files
committed
fix starlette tests
1 parent 86c6373 commit 4002f38

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/integrations/starlette/test_starlette.py

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

10671067
sentry_init(
10681068
auto_enabling_integrations=False, # Make sure that httpx integration is not added, because it adds tracing information to the starlette test clients request.
1069-
integrations=[StarletteIntegration(transaction_style=transaction_style)],
1069+
integrations=[
1070+
StarletteIntegration(
1071+
transaction_style=transaction_style, middleware_spans=False
1072+
)
1073+
],
10701074
traces_sampler=dummy_traces_sampler,
10711075
traces_sample_rate=1.0,
10721076
)

0 commit comments

Comments
 (0)