@@ -91,9 +91,9 @@ def timestamps(ts: datetime):
91
91
def test_ourlog_extraction_with_otel_logs (
92
92
mini_sentry ,
93
93
relay_with_processing ,
94
- ourlogs_consumer ,
94
+ items_consumer ,
95
95
):
96
- ourlogs_consumer = ourlogs_consumer ()
96
+ items_consumer = items_consumer ()
97
97
project_id = 42
98
98
project_config = mini_sentry .add_full_project_config (project_id )
99
99
project_config ["config" ]["features" ] = [
@@ -106,7 +106,7 @@ def test_ourlog_extraction_with_otel_logs(
106
106
107
107
relay .send_envelope (project_id , envelope )
108
108
109
- assert ourlogs_consumer . get_ourlog () == {
109
+ assert items_consumer . get_item () == {
110
110
"attributes" : {
111
111
"boolean.attribute" : {"boolValue" : True },
112
112
"double.attribute" : {"doubleValue" : 637.704 },
@@ -139,10 +139,10 @@ def test_ourlog_extraction_with_otel_logs(
139
139
def test_ourlog_multiple_containers_not_allowed (
140
140
mini_sentry ,
141
141
relay_with_processing ,
142
- ourlogs_consumer ,
142
+ items_consumer ,
143
143
outcomes_consumer ,
144
144
):
145
- ourlogs_consumer = ourlogs_consumer ()
145
+ items_consumer = items_consumer ()
146
146
outcomes_consumer = outcomes_consumer ()
147
147
project_id = 42
148
148
project_config = mini_sentry .add_full_project_config (project_id )
@@ -204,10 +204,10 @@ def test_ourlog_multiple_containers_not_allowed(
204
204
def test_ourlog_meta_attributes (
205
205
mini_sentry ,
206
206
relay_with_processing ,
207
- ourlogs_consumer ,
207
+ items_consumer ,
208
208
meta_enabled ,
209
209
):
210
- ourlogs_consumer = ourlogs_consumer ()
210
+ items_consumer = items_consumer ()
211
211
project_id = 42
212
212
project_config = mini_sentry .add_full_project_config (project_id )
213
213
project_config ["config" ]["datascrubbingSettings" ] = {
@@ -240,7 +240,7 @@ def test_ourlog_meta_attributes(
240
240
241
241
relay .send_envelope (project_id , envelope )
242
242
243
- assert ourlogs_consumer . get_ourlog () == {
243
+ assert items_consumer . get_item () == {
244
244
"attributes" : {
245
245
"creditcard" : {"stringValue" : "[creditcard]" },
246
246
"sentry.body" : {"stringValue" : "oops, not again" },
@@ -281,11 +281,11 @@ def test_ourlog_extraction_with_sentry_logs(
281
281
mini_sentry ,
282
282
relay ,
283
283
relay_with_processing ,
284
- ourlogs_consumer ,
284
+ items_consumer ,
285
285
outcomes_consumer ,
286
286
calculated_byte_count ,
287
287
):
288
- ourlogs_consumer = ourlogs_consumer ()
288
+ items_consumer = items_consumer ()
289
289
outcomes_consumer = outcomes_consumer ()
290
290
291
291
project_id = 42
@@ -336,7 +336,7 @@ def test_ourlog_extraction_with_sentry_logs(
336
336
337
337
relay .send_envelope (project_id , envelope )
338
338
339
- assert ourlogs_consumer . get_ourlogs (n = 2 ) == [
339
+ assert items_consumer . get_items (n = 2 ) == [
340
340
{
341
341
"attributes" : {
342
342
"sentry.body" : {"stringValue" : "This is really bad" },
@@ -424,9 +424,9 @@ def test_ourlog_extraction_with_sentry_logs(
424
424
def test_ourlog_extraction_with_sentry_logs_with_missing_fields (
425
425
mini_sentry ,
426
426
relay_with_processing ,
427
- ourlogs_consumer ,
427
+ items_consumer ,
428
428
):
429
- ourlogs_consumer = ourlogs_consumer ()
429
+ items_consumer = items_consumer ()
430
430
project_id = 42
431
431
project_config = mini_sentry .add_full_project_config (project_id )
432
432
project_config ["config" ]["features" ] = [
@@ -446,7 +446,7 @@ def test_ourlog_extraction_with_sentry_logs_with_missing_fields(
446
446
447
447
relay .send_envelope (project_id , envelope )
448
448
449
- assert ourlogs_consumer . get_ourlog () == {
449
+ assert items_consumer . get_item () == {
450
450
"attributes" : {
451
451
"sentry.body" : {"stringValue" : "Example log record 2" },
452
452
"sentry.browser.name" : {"stringValue" : "Python Requests" },
@@ -474,9 +474,9 @@ def test_ourlog_extraction_with_sentry_logs_with_missing_fields(
474
474
def test_ourlog_extraction_is_disabled_without_feature (
475
475
mini_sentry ,
476
476
relay_with_processing ,
477
- ourlogs_consumer ,
477
+ items_consumer ,
478
478
):
479
- ourlogs_consumer = ourlogs_consumer ()
479
+ items_consumer = items_consumer ()
480
480
relay = relay_with_processing (options = TEST_CONFIG )
481
481
project_id = 42
482
482
project_config = mini_sentry .add_full_project_config (project_id )
@@ -485,7 +485,7 @@ def test_ourlog_extraction_is_disabled_without_feature(
485
485
envelope = envelope_with_otel_logs (datetime .now (timezone .utc ))
486
486
relay .send_envelope (project_id , envelope )
487
487
488
- ourlogs_consumer .assert_empty ()
488
+ items_consumer .assert_empty ()
489
489
490
490
491
491
@pytest .mark .parametrize (
@@ -547,12 +547,12 @@ def test_ourlog_extraction_is_disabled_without_feature(
547
547
def test_browser_name_version_extraction (
548
548
mini_sentry ,
549
549
relay_with_processing ,
550
- ourlogs_consumer ,
550
+ items_consumer ,
551
551
user_agent ,
552
552
expected_browser_name ,
553
553
expected_browser_version ,
554
554
):
555
- ourlogs_consumer = ourlogs_consumer ()
555
+ items_consumer = items_consumer ()
556
556
project_id = 42
557
557
project_config = mini_sentry .add_full_project_config (project_id )
558
558
project_config ["config" ]["features" ] = [
@@ -573,7 +573,7 @@ def test_browser_name_version_extraction(
573
573
574
574
relay .send_envelope (project_id , envelope , headers = {"User-Agent" : user_agent })
575
575
576
- assert ourlogs_consumer . get_ourlog () == {
576
+ assert items_consumer . get_item () == {
577
577
"attributes" : {
578
578
"sentry.body" : {"stringValue" : "This is really bad" },
579
579
"sentry.browser.name" : {"stringValue" : expected_browser_name },
0 commit comments