Skip to content

Commit e9b2ab7

Browse files
authored
test(asgi, asyncio, aws_lambda): Remove redundant empty data_collection from sentry_init (#7906)
Refs PY-2936
1 parent e25e3d0 commit e9b2ab7

8 files changed

Lines changed: 0 additions & 26 deletions

File tree

‎tests/integrations/asgi/test_asgi.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ async def test_capture_transaction(
191191
capture_items,
192192
):
193193
sentry_init(
194-
data_collection={},
195194
traces_sample_rate=1.0,
196195
)
197196
app = SentryAsgiMiddleware(asgi3_app)
@@ -225,7 +224,6 @@ async def test_capture_transaction_with_error(
225224
capture_items,
226225
):
227226
sentry_init(
228-
data_collection={},
229227
traces_sample_rate=1.0,
230228
)
231229

@@ -403,7 +401,6 @@ async def test_websocket(
403401
capture_items,
404402
):
405403
sentry_init(
406-
data_collection={},
407404
traces_sample_rate=1.0,
408405
)
409406

@@ -444,7 +441,6 @@ async def test_auto_session_tracking_with_aggregates(
444441
sentry_init, asgi3_app, capture_envelopes
445442
):
446443
sentry_init(
447-
data_collection={},
448444
traces_sample_rate=1.0,
449445
)
450446
app = SentryAsgiMiddleware(asgi3_app)
@@ -490,7 +486,6 @@ async def test_fallback_segment_name_and_source(
490486
capture_items,
491487
):
492488
sentry_init(
493-
data_collection={},
494489
traces_sample_rate=1.0,
495490
)
496491
app = SentryAsgiMiddleware(asgi3_app)

‎tests/integrations/asyncio/test_asyncio.py‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ async def test_create_task(
6969
):
7070
sentry_init(
7171
traces_sample_rate=1.0,
72-
data_collection={},
7372
integrations=[AsyncioIntegration()],
7473
)
7574

@@ -118,7 +117,6 @@ async def test_gather(
118117
):
119118
sentry_init(
120119
traces_sample_rate=1.0,
121-
data_collection={},
122120
integrations=[AsyncioIntegration()],
123121
)
124122

@@ -156,7 +154,6 @@ async def test_exception(
156154
):
157155
sentry_init(
158156
traces_sample_rate=1.0,
159-
data_collection={},
160157
integrations=[AsyncioIntegration()],
161158
)
162159

@@ -184,7 +181,6 @@ async def test_exception(
184181
async def test_task_result(sentry_init):
185182
sentry_init(
186183
integrations=[AsyncioIntegration()],
187-
data_collection={},
188184
)
189185

190186
async def add(a, b):
@@ -202,7 +198,6 @@ async def test_task_with_context(sentry_init):
202198
"""
203199
sentry_init(
204200
integrations=[AsyncioIntegration()],
205-
data_collection={},
206201
)
207202

208203
var = ContextVar("var")
@@ -374,7 +369,6 @@ async def test_span_origin(
374369
sentry_init(
375370
integrations=[AsyncioIntegration()],
376371
traces_sample_rate=1.0,
377-
data_collection={},
378372
)
379373

380374
items = capture_items("span")
@@ -408,7 +402,6 @@ async def test_task_spans_false(
408402
sentry_init(
409403
traces_sample_rate=1.0,
410404
integrations=[AsyncioIntegration(task_spans=False)],
411-
data_collection={},
412405
)
413406

414407
items = capture_items("span")
@@ -441,7 +434,6 @@ async def test_enable_asyncio_integration_with_task_spans_false(
441434

442435
sentry_init(
443436
traces_sample_rate=1.0,
444-
data_collection={},
445437
)
446438

447439
assert "asyncio" not in sentry_sdk.get_client().integrations
@@ -473,7 +465,6 @@ async def test_delayed_enable_integration(
473465
):
474466
sentry_init(
475467
traces_sample_rate=1.0,
476-
data_collection={},
477468
)
478469

479470
assert "asyncio" not in sentry_sdk.get_client().integrations
@@ -514,7 +505,6 @@ async def test_delayed_enable_integration(
514505
async def test_delayed_enable_integration_with_options(sentry_init):
515506
sentry_init(
516507
traces_sample_rate=1.0,
517-
data_collection={},
518508
)
519509

520510
assert "asyncio" not in sentry_sdk.get_client().integrations
@@ -545,7 +535,6 @@ async def test_delayed_enable_enabled_integration(sentry_init, uninstall_integra
545535
sentry_init(
546536
integrations=[integration],
547537
traces_sample_rate=1.0,
548-
data_collection={},
549538
)
550539

551540
assert "asyncio" in sentry_sdk.get_client().integrations
@@ -573,7 +562,6 @@ async def test_delayed_enable_integration_after_disabling(
573562
sentry_init(
574563
disabled_integrations=[AsyncioIntegration()],
575564
traces_sample_rate=1.0,
576-
data_collection={},
577565
)
578566

579567
assert "asyncio" not in sentry_sdk.get_client().integrations
@@ -620,7 +608,6 @@ async def test_internal_tasks_not_wrapped(
620608
sentry_init(
621609
integrations=[AsyncioIntegration()],
622610
traces_sample_rate=1.0,
623-
data_collection={},
624611
)
625612

626613
async def user_task():
@@ -662,7 +649,6 @@ async def internal_task():
662649
def test_loop_close_patching(sentry_init):
663650
sentry_init(
664651
integrations=[AsyncioIntegration()],
665-
data_collection={},
666652
)
667653

668654
loop = asyncio.new_event_loop()
@@ -689,7 +675,6 @@ def test_loop_close_flushes_async_transport(sentry_init):
689675

690676
sentry_init(
691677
integrations=[AsyncioIntegration()],
692-
data_collection={},
693678
)
694679

695680
# Save the current event loop to restore it later

‎tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/BasicOkSpanStreaming/index.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
sentry_sdk.init(
77
dsn=os.environ.get("SENTRY_DSN"),
8-
data_collection={},
98
traces_sample_rate=1.0,
109
integrations=[AwsLambdaIntegration()],
1110
)

‎tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/RaiseErrorPerformanceDisabled/index.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
sentry_sdk.init(
77
dsn=os.environ.get("SENTRY_DSN"),
8-
data_collection={},
98
traces_sample_rate=None, # this is the default, just added for clarity
109
integrations=[AwsLambdaIntegration()],
1110
)

‎tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/RaiseErrorPerformanceEnabled/index.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
sentry_sdk.init(
77
dsn=os.environ.get("SENTRY_DSN"),
8-
data_collection={},
98
traces_sample_rate=1.0,
109
integrations=[AwsLambdaIntegration()],
1110
)

‎tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/RaiseErrorSpanStreaming/index.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
sentry_sdk.init(
77
dsn=os.environ.get("SENTRY_DSN"),
8-
data_collection={},
98
traces_sample_rate=1.0,
109
integrations=[AwsLambdaIntegration()],
1110
)

‎tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/TimeoutErrorScopeModified/index.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
sentry_sdk.init(
88
dsn=os.environ.get("SENTRY_DSN"),
9-
data_collection={},
109
traces_sample_rate=1.0,
1110
integrations=[AwsLambdaIntegration(timeout_warning=True)],
1211
)

‎tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/TracesSampler/index.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def trace_sampler(sampling_context):
3030

3131
sentry_sdk.init(
3232
dsn=os.environ.get("SENTRY_DSN"),
33-
data_collection={},
3433
traces_sample_rate=1.0,
3534
traces_sampler=trace_sampler,
3635
integrations=[AwsLambdaIntegration()],

0 commit comments

Comments
 (0)