Skip to content

Commit

Permalink
remove middleware spans toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Nov 13, 2024
1 parent dbc8ba2 commit 52f918a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions tests/integrations/fastapi/test_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,7 @@ def dummy_traces_sampler(sampling_context):

sentry_init(
auto_enabling_integrations=False, # Make sure that httpx integration is not added, because it adds tracing information to the starlette test clients request.
integrations=[
StarletteIntegration(
transaction_style=transaction_style, middleware_spans=False
)
],
integrations=[StarletteIntegration(transaction_style=transaction_style)],
traces_sampler=dummy_traces_sampler,
traces_sample_rate=1.0,
)
Expand Down
6 changes: 1 addition & 5 deletions tests/integrations/starlette/test_starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,11 +1066,7 @@ def dummy_traces_sampler(sampling_context):

sentry_init(
auto_enabling_integrations=False, # Make sure that httpx integration is not added, because it adds tracing information to the starlette test clients request.
integrations=[
StarletteIntegration(
transaction_style=transaction_style, middleware_spans=False
)
],
integrations=[StarletteIntegration(transaction_style=transaction_style)],
traces_sampler=dummy_traces_sampler,
traces_sample_rate=1.0,
)
Expand Down

0 comments on commit 52f918a

Please sign in to comment.