Skip to content

Commit 5e61282

Browse files
committed
symfony http.route: use existing hook instead
1 parent 2edad0a commit 5e61282

File tree

28 files changed

+60
-45
lines changed

28 files changed

+60
-45
lines changed

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,6 @@ TEST_WEB_81 := \
913913
test_web_nette_30 \
914914
test_web_slim_312 \
915915
test_web_slim_4 \
916-
test_web_symfony_52 \
917916
test_web_wordpress_59 \
918917
test_web_wordpress_61 \
919918
test_web_custom \
@@ -973,7 +972,6 @@ TEST_WEB_82 := \
973972
test_web_nette_30 \
974973
test_web_slim_312 \
975974
test_web_slim_4 \
976-
test_web_symfony_52 \
977975
test_web_symfony_62 \
978976
test_web_symfony_70 \
979977
test_web_wordpress_59 \
@@ -1031,7 +1029,6 @@ TEST_WEB_83 := \
10311029
test_web_nette_30 \
10321030
test_web_slim_312 \
10331031
test_web_slim_4 \
1034-
test_web_symfony_52 \
10351032
test_web_symfony_62 \
10361033
test_web_symfony_70 \
10371034
test_web_wordpress_59 \

src/DDTrace/Integrations/Symfony/SymfonyIntegration.php

Lines changed: 34 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
use DDTrace\Type;
1111
use DDTrace\Util\Normalizer;
1212
use Symfony\Component\HttpFoundation\Request;
13-
use Symfony\Component\HttpKernel\Event\ControllerEvent;
1413
use Symfony\Component\HttpKernel\KernelEvents;
15-
use Symfony\Component\Routing\Route;
1614

1715
class SymfonyIntegration extends Integration
1816
{
@@ -24,6 +22,8 @@ class SymfonyIntegration extends Integration
2422
/** @var string */
2523
public $frameworkPrefix = SymfonyIntegration::NAME;
2624

25+
public $kernel;
26+
2727
/**
2828
* {@inheritdoc}
2929
*/
@@ -309,42 +309,6 @@ function ($This, $scope, $args) use ($integration) {
309309
}
310310
);
311311

312-
\DDTrace\trace_method(
313-
'Symfony\Component\EventDispatcher\EventDispatcher',
314-
'dispatch',
315-
function (SpanData $span, $args) {
316-
$event = $args[0];
317-
318-
if (!($event instanceof ControllerEvent)) {
319-
return;
320-
}
321-
322-
$request = $event->getRequest();
323-
$controller = $event->getController()[0];
324-
325-
if (!property_exists($controller, 'container')) {
326-
return;
327-
}
328-
329-
$rc = new \ReflectionClass(get_class($controller));
330-
$container = $rc->getProperty('container');
331-
$container->setAccessible(true);
332-
$container = $container->getValue($controller);
333-
334-
$router = $container->get('router');
335-
$routeName = $request->attributes->get('_route');
336-
337-
$routeCollection = $router->getRouteCollection();
338-
/** @var Route $route */
339-
$route = $routeCollection->get($routeName);
340-
if (!isset($route)) {
341-
return;
342-
}
343-
$root_span = \DDTrace\root_span();
344-
$root_span->meta[Tag::HTTP_ROUTE] = $route->getPath();
345-
}
346-
);
347-
348312
$this->loadSymfony($this);
349313

350314
return Integration::LOADED;
@@ -393,6 +357,24 @@ function (SpanData $span) use ($class, $methodname) {
393357
);
394358
*/
395359

360+
\DDTrace\hook_method(
361+
'Symfony\Component\HttpKernel\Kernel',
362+
'getHttpKernel',
363+
null,
364+
function ($object) use ($integration) {
365+
$integration->kernel = $object;
366+
}
367+
);
368+
369+
\DDTrace\hook_method(
370+
'Drupal\Core\DrupalKernel',
371+
'getHttpKernel',
372+
null,
373+
function ($object) use ($integration) {
374+
$integration->kernel = $object;
375+
}
376+
);
377+
396378
\DDTrace\hook_method(
397379
'Symfony\Component\HttpKernel\HttpKernel',
398380
'__construct',
@@ -436,12 +418,22 @@ function_exists('datadog\appsec\push_address')) {
436418
\datadog\appsec\push_address("server.request.path_params", $parameters);
437419
}
438420

439-
$route = $request->get('_route');
440-
if (null !== $route && null !== $request) {
421+
$route_name = $request->get('_route');
422+
if (null !== $route_name && null !== $request) {
441423
if (dd_trace_env_config("DD_HTTP_SERVER_ROUTE_BASED_NAMING")) {
442-
$rootSpan->resource = $route;
424+
$rootSpan->resource = $route_name;
425+
}
426+
$rootSpan->meta['symfony.route.name'] = $route_name;
427+
428+
if ($integration->kernel !== null) {
429+
$container = $integration->kernel->getContainer();
430+
$router = $container->get('router');
431+
$routeCollection = $router->getRouteCollection();
432+
$route = $routeCollection->get($route_name);
433+
if (isset($route)) {
434+
$rootSpan->meta[Tag::HTTP_ROUTE] = $route->getPath();
435+
}
443436
}
444-
$rootSpan->meta['symfony.route.name'] = $route;
445437
}
446438
}
447439
);

tests/snapshots/tests.integrations.drupal.v10_1.common_scenarios_test.test_scenario_get_with_exception.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"error.stack": "#0 [internal function]: Drupal\\datadog\\Controller\\DatadogController->error()\n#1 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()\n#2 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/core/lib/Drupal/Core/Render/Renderer.php(592): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#3 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\\Core\\Render\\Renderer->executeInRenderContext()\n#4 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()\n#5 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#6 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#7 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#8 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\\Core\\StackMiddleware\\Session->handle()\n#9 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle()\n#10 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle()\n#11 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle()\n#12 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\\Core\\StackMiddleware\\StackedHttpKernel->handle()\n#13 /home/circleci/app/tests/Frameworks/Drupal/Version_10_1/index.php(19): Drupal\\Core\\DrupalKernel->handle()\n#14 {main}",
1616
"error.type": "Exception",
1717
"http.method": "GET",
18+
"http.route": "/error",
1819
"http.status_code": "500",
1920
"http.url": "http://localhost/error?key=value&<redacted>",
2021
"runtime-id": "9909a648-1886-44d2-b341-b1ddc0f62f34",

tests/snapshots/tests.integrations.drupal.v10_1.common_scenarios_test.test_scenario_get_with_view.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"_dd.p.dm": "-0",
1212
"component": "drupal",
1313
"http.method": "GET",
14+
"http.route": "/simple_view",
1415
"http.status_code": "200",
1516
"http.url": "http://localhost/simple_view",
1617
"runtime-id": "cecb7d5b-eb5a-49f8-8374-29dce2d6fce6",

tests/snapshots/tests.integrations.drupal.v8_9.common_scenarios_test.test_scenario_get_with_exception.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"error.stack": "#0 [internal function]: Drupal\\datadog\\Controller\\DatadogController->error()\n#1 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()\n#2 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#3 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\\Core\\Render\\Renderer->executeInRenderContext()\n#4 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()\n#5 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#6 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#7 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#8 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\\Core\\StackMiddleware\\Session->handle()\n#9 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle()\n#10 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle()\n#11 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle()\n#12 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\\StackedHttpKernel->handle()\n#13 /home/circleci/app/tests/Frameworks/Drupal/Version_8_9/index.php(19): Drupal\\Core\\DrupalKernel->handle()\n#14 {main}",
1616
"error.type": "Exception",
1717
"http.method": "GET",
18+
"http.route": "/error",
1819
"http.status_code": "500",
1920
"http.url": "http://localhost/error?key=value&<redacted>",
2021
"runtime-id": "692423cd-81b3-449e-a67e-43150df99f74",

tests/snapshots/tests.integrations.drupal.v8_9.common_scenarios_test.test_scenario_get_with_view.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"_dd.p.dm": "-0",
1212
"component": "drupal",
1313
"http.method": "GET",
14+
"http.route": "/simple_view",
1415
"http.status_code": "200",
1516
"http.url": "http://localhost/simple_view",
1617
"runtime-id": "692423cd-81b3-449e-a67e-43150df99f74",

tests/snapshots/tests.integrations.drupal.v9_5.common_scenarios_test.test_scenario_get_with_exception.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"error.stack": "#0 [internal function]: Drupal\\datadog\\Controller\\DatadogController->error()\n#1 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()\n#2 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#3 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\\Core\\Render\\Renderer->executeInRenderContext()\n#4 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()\n#5 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#6 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#7 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#8 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\\Core\\StackMiddleware\\Session->handle()\n#9 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle()\n#10 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle()\n#11 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle()\n#12 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\\StackedHttpKernel->handle()\n#13 /home/circleci/app/tests/Frameworks/Drupal/Version_9_5/index.php(19): Drupal\\Core\\DrupalKernel->handle()\n#14 {main}",
1616
"error.type": "Exception",
1717
"http.method": "GET",
18+
"http.route": "/error",
1819
"http.status_code": "500",
1920
"http.url": "http://localhost/error?key=value&<redacted>",
2021
"runtime-id": "3afe4427-fcda-4ade-bdc5-572a8c5f8b12",

tests/snapshots/tests.integrations.drupal.v9_5.common_scenarios_test.test_scenario_get_with_view.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"_dd.p.dm": "-0",
1212
"component": "drupal",
1313
"http.method": "GET",
14+
"http.route": "/simple_view",
1415
"http.status_code": "200",
1516
"http.url": "http://localhost/simple_view",
1617
"runtime-id": "7a7b1e1f-04e8-41dc-82bd-81f24ef6e0a4",

tests/snapshots/tests.integrations.symfony.v2_3.common_scenarios_test.test_scenario_get_return_string.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "6661b34000000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/simple",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/app.php/simple?key=value&<redacted>",
1718
"runtime-id": "93535b2f-0ff1-4add-8907-53304703f545",

tests/snapshots/tests.integrations.symfony.v2_3.common_scenarios_test.test_scenario_get_with_exception.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"error.type": "Exception",
1818
"http.method": "GET",
1919
"http.status_code": "500",
20+
"http.route": "/error",
2021
"http.url": "http://localhost/app.php/error?key=value&<redacted>",
2122
"runtime-id": "93535b2f-0ff1-4add-8907-53304703f545",
2223
"span.kind": "server",

tests/snapshots/tests.integrations.symfony.v2_3.common_scenarios_test.test_scenario_get_with_view.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "6661bc6500000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/simple_view",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/app.php/simple_view?key=value&<redacted>",
1718
"runtime-id": "05d2d546-7cb6-4e46-bc10-0ff5602cdf9d",

tests/snapshots/tests.integrations.symfony.v2_3.route_name_test.test_resource_to_uri_mapping.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "6661b35800000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/app.php?key=value&<redacted>",
1718
"runtime-id": "7ddbbd63-c083-4257-a7f5-44101e551ef1",

tests/snapshots/tests.integrations.symfony.v2_8.common_scenarios_test.test_scenario_get_return_string.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "6660700300000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/simple",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/app.php/simple?key=value&<redacted>",
1718
"runtime-id": "4374c14f-def1-4b62-97c0-598f46322850",

tests/snapshots/tests.integrations.symfony.v2_8.common_scenarios_test.test_scenario_get_with_exception.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"error.stack": "#0 /home/circleci/app/tests/Frameworks/Symfony/Version_2_8/app/bootstrap.php.cache(3275): AppBundle\\Controller\\CommonScenariosController->errorAction()\n#1 /home/circleci/app/tests/Frameworks/Symfony/Version_2_8/app/bootstrap.php.cache(3234): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#2 /home/circleci/app/tests/Frameworks/Symfony/Version_2_8/app/bootstrap.php.cache(3388): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#3 /home/circleci/app/tests/Frameworks/Symfony/Version_2_8/app/bootstrap.php.cache(2594): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle()\n#4 /home/circleci/app/tests/Frameworks/Symfony/Version_2_8/web/app.php(15): Symfony\\Component\\HttpKernel\\Kernel->handle()\n#5 {main}",
1717
"error.type": "Exception",
1818
"http.method": "GET",
19+
"http.route": "/error",
1920
"http.status_code": "500",
2021
"http.url": "http://localhost/app.php/error?key=value&<redacted>",
2122
"runtime-id": "4374c14f-def1-4b62-97c0-598f46322850",

tests/snapshots/tests.integrations.symfony.v2_8.common_scenarios_test.test_scenario_get_with_view.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "6660709f00000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/simple_view",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/app.php/simple_view?key=value&<redacted>",
1718
"runtime-id": "a908b910-f481-44e7-bf7b-8d48954a4639",

tests/snapshots/tests.integrations.symfony.v2_8.route_name_test.test_resource_to_uri_mapping.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "6660aaff00000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/app.php?key=value&<redacted>",
1718
"runtime-id": "4b578cb2-1f1d-441e-aacb-a4aaff240713",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "6737718e00000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/lucky/fail",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/lucky/fail",
1718
"runtime-id": "d7b13848-ab88-43bb-853d-29cf4386f11e",

tests/snapshots/tests.integrations.symfony.v4_4.messenger_test.test_async_success.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "6737717e00000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/lucky/number",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/lucky/number",
1718
"runtime-id": "d7b13848-ab88-43bb-853d-29cf4386f11e",

tests/snapshots/tests.integrations.symfony.v4_4.messenger_test.test_async_with_tracer_disabled_on_consume.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "673771a400000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/lucky/number",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/lucky/number",
1718
"runtime-id": "d7b13848-ab88-43bb-853d-29cf4386f11e",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "67376f1600000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/lucky/fail",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/lucky/fail",
1718
"runtime-id": "88fa2001-f1cd-43a1-b3cc-fea77ce914b8",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "67376ef700000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/lucky/number",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/lucky/number",
1718
"runtime-id": "88fa2001-f1cd-43a1-b3cc-fea77ce914b8",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "6737620400000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/lucky/number",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/lucky/number",
1718
"runtime-id": "11678ecc-7ed1-443c-9c2a-7d803090723e",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "67376acd00000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/lucky/fail",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/lucky/fail",
1718
"runtime-id": "ec06d36e-1a6e-48f5-a627-c724d35f765b",

tests/snapshots/tests.integrations.symfony.v6_2.messenger_test.test_async_success.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "6737688900000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/lucky/number",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/lucky/number",
1718
"runtime-id": "5fe9f332-5cdf-4438-a2c1-35f9245e4015",

tests/snapshots/tests.integrations.symfony.v6_2.messenger_test.test_async_with_tracer_disabled_on_consume.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "6737607d00000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/lucky/number",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/lucky/number",
1718
"runtime-id": "f05a51bb-8120-4e60-8705-ccc45d60b1c3",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"_dd.p.tid": "67376d6700000000",
1313
"component": "symfony",
1414
"http.method": "GET",
15+
"http.route": "/lucky/fail",
1516
"http.status_code": "200",
1617
"http.url": "http://localhost/lucky/fail",
1718
"runtime-id": "34c72fce-60c5-4a66-b562-44064d3104ba",

0 commit comments

Comments
 (0)