File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
tests/DependencyInjection Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,10 @@ private function registerMessengerListenerConfiguration(ContainerBuilder $contai
165
165
/**
166
166
* @param array<string, mixed> $config
167
167
*/
168
- private function registerTracingConfiguration (ContainerBuilder $ container , $ config ): void
168
+ private function registerTracingConfiguration (ContainerBuilder $ container , array $ config ): void
169
169
{
170
+ $ container ->setParameter ('sentry.tracing.enabled ' , $ config ['enabled ' ]);
171
+
170
172
if (!$ this ->isConfigEnabled ($ container , $ config )) {
171
173
$ container ->removeDefinition (TracingRequestListener::class);
172
174
$ container ->removeDefinition (TracingSubRequestListener::class);
Original file line number Diff line number Diff line change @@ -316,6 +316,7 @@ public function testInstrumentationIsDisabledWhenTracingIsDisabled(): void
316
316
$ this ->assertFalse ($ container ->hasDefinition (TracingDriverMiddleware::class));
317
317
$ this ->assertFalse ($ container ->hasDefinition (ConnectionConfigurator::class));
318
318
$ this ->assertFalse ($ container ->hasDefinition (TwigTracingExtension::class));
319
+ $ this ->assertFalse ($ container ->getParameter ('sentry.tracing.enabled ' ));
319
320
$ this ->assertEmpty ($ container ->getParameter ('sentry.tracing.dbal.connections ' ));
320
321
}
321
322
You can’t perform that action at this time.
0 commit comments