Skip to content

Commit d3005df

Browse files
committed
tests: Update Symfony v5.2 snapshots
1 parent b6188bb commit d3005df

5 files changed

+67
-64
lines changed

tests/Integrations/Symfony/V5_2/MessengerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ protected static function getEnvs()
3737
'DD_SERVICE' => 'symfony_messenger_test',
3838
'DD_TRACE_DEBUG' => 'true',
3939
'DD_TRACE_SYMFONY_MESSENGER_MIDDLEWARES' => 'true',
40+
'DD_INSTRUMENTATION_TELEMETRY_ENABLED' => 'false',
4041
'DD_TRACE_PHPREDIS_ENABLED' => 'false' // We are NOT testing the phpredis integration
4142
]);
4243
}
@@ -55,6 +56,7 @@ public function testAsyncSuccess()
5556
'DD_TRACE_REMOVE_AUTOINSTRUMENTATION_ORPHANS' => 'true',
5657
'DD_TRACE_SYMFONY_MESSENGER_MIDDLEWARES' => 'true',
5758
'DD_TRACE_DEBUG' => 'true',
59+
'DD_INSTRUMENTATION_TELEMETRY_ENABLED' => 'false',
5860
], [], ['messenger:consume', 'async', '--limit=1']);
5961

6062
$this->snapshotFromTraces(
@@ -78,6 +80,7 @@ public function testAsyncFailure()
7880
'DD_SERVICE' => 'symfony_messenger_test',
7981
'DD_TRACE_REMOVE_AUTOINSTRUMENTATION_ORPHANS' => 'true',
8082
'DD_TRACE_SYMFONY_MESSENGER_MIDDLEWARES' => 'true',
83+
'DD_INSTRUMENTATION_TELEMETRY_ENABLED' => 'false',
8184
], [], ['messenger:consume', 'async', '--limit=1']);
8285

8386

tests/snapshots/tests.integrations.symfony.v5_2.messenger_test.test_async_failure.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
"resource": "lucky_fail",
66
"trace_id": 0,
77
"span_id": 1,
8-
"parent_id": 17193270540770397716,
8+
"parent_id": 2511709384107453,
99
"type": "web",
1010
"meta": {
1111
"_dd.p.dm": "-0",
12-
"_dd.p.tid": "6696288c00000000",
12+
"_dd.p.tid": "67376f1600000000",
1313
"component": "symfony",
1414
"http.method": "GET",
1515
"http.status_code": "200",
1616
"http.url": "http://localhost/lucky/fail",
17-
"runtime-id": "1705ac20-fbbf-4e9f-b538-5524ce6a6530",
17+
"runtime-id": "88fa2001-f1cd-43a1-b3cc-fea77ce914b8",
1818
"span.kind": "server",
1919
"symfony.route.action": "App\\Controller\\LuckyController@fail",
2020
"symfony.route.name": "lucky_fail"
@@ -120,16 +120,16 @@
120120
"component": "symfonymessenger",
121121
"messaging.destination": "async",
122122
"messaging.destination_kind": "queue",
123-
"messaging.message_id": "2",
123+
"messaging.message_id": "3",
124124
"messaging.symfony.bus": "messenger.bus.default",
125125
"messaging.symfony.message": "App\\Message\\LuckyNumberNotification",
126126
"messaging.symfony.sender": "Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\DoctrineTransport",
127127
"messaging.system": "symfony"
128128
},
129129
"metrics": {
130-
"messaging.symfony.stamps.DDTrace\\Integrations\\SymfonyMessenger\\DDTraceStamp": 1.0,
131130
"messaging.symfony.stamps.Symfony\\Component\\Messenger\\Stamp\\BusNameStamp": 1.0,
132131
"messaging.symfony.stamps.Symfony\\Component\\Messenger\\Stamp\\SentStamp": 1.0,
132+
"messaging.symfony.stamps.Symfony\\Component\\Messenger\\Stamp\\SerializerStamp": 2.0,
133133
"messaging.symfony.stamps.Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp": 1.0
134134
}
135135
},
@@ -251,7 +251,7 @@
251251
"component": "symfonymessenger",
252252
"messaging.destination": "async",
253253
"messaging.destination_kind": "queue",
254-
"messaging.message_id": "2",
254+
"messaging.message_id": "3",
255255
"messaging.operation": "send",
256256
"messaging.symfony.bus": "messenger.bus.default",
257257
"messaging.symfony.message": "App\\Message\\LuckyNumberNotification",
@@ -260,9 +260,9 @@
260260
"span.kind": "producer"
261261
},
262262
"metrics": {
263-
"messaging.symfony.stamps.DDTrace\\Integrations\\SymfonyMessenger\\DDTraceStamp": 1.0,
264263
"messaging.symfony.stamps.Symfony\\Component\\Messenger\\Stamp\\BusNameStamp": 1.0,
265264
"messaging.symfony.stamps.Symfony\\Component\\Messenger\\Stamp\\SentStamp": 1.0,
265+
"messaging.symfony.stamps.Symfony\\Component\\Messenger\\Stamp\\SerializerStamp": 2.0,
266266
"messaging.symfony.stamps.Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp": 1.0
267267
}
268268
},

0 commit comments

Comments
 (0)