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
165165 /**
166166 * @param array<string, mixed> $config
167167 */
168- private function registerTracingConfiguration (ContainerBuilder $ container , $ config ): void
168+ private function registerTracingConfiguration (ContainerBuilder $ container , array $ config ): void
169169 {
170+ $ container ->setParameter ('sentry.tracing.enabled ' , $ config ['enabled ' ]);
171+
170172 if (!$ this ->isConfigEnabled ($ container , $ config )) {
171173 $ container ->removeDefinition (TracingRequestListener::class);
172174 $ container ->removeDefinition (TracingSubRequestListener::class);
Original file line number Diff line number Diff line change @@ -316,6 +316,7 @@ public function testInstrumentationIsDisabledWhenTracingIsDisabled(): void
316316 $ this ->assertFalse ($ container ->hasDefinition (TracingDriverMiddleware::class));
317317 $ this ->assertFalse ($ container ->hasDefinition (ConnectionConfigurator::class));
318318 $ this ->assertFalse ($ container ->hasDefinition (TwigTracingExtension::class));
319+ $ this ->assertFalse ($ container ->getParameter ('sentry.tracing.enabled ' ));
319320 $ this ->assertEmpty ($ container ->getParameter ('sentry.tracing.dbal.connections ' ));
320321 }
321322
You can’t perform that action at this time.
0 commit comments