• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FriendsOfOpenTelemetry / opentelemetry-bundle / 13332388990

14 Feb 2025 03:34PM UTC coverage: 91.295% (+0.1%) from 91.162%
13332388990

push

github

gaelreyrol
feat(Instrumentation/Console): exclude commands from being traced when instrumentation type is auto

26 of 27 new or added lines in 5 files covered. (96.3%)

7 existing lines in 7 files now uncovered.

2192 of 2401 relevant lines covered (91.3%)

33.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/DependencyInjection/Compiler/SetConsoleTracingExcludeCommandsPass.php
1
<?php
2

3
namespace FriendsOfOpenTelemetry\OpenTelemetryBundle\DependencyInjection\Compiler;
4

5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7

8
class SetConsoleTracingExcludeCommandsPass implements CompilerPassInterface
9
{
10
    public function process(ContainerBuilder $container): void
11
    {
12
        if (false === $container->hasParameter('open_telemetry.instrumentation.console.tracing.exclude_commands')) {
36✔
13
            return;
30✔
14
        }
15

16
        if (false === $container->hasDefinition('open_telemetry.instrumentation.console.trace.event_subscriber')) {
6✔
NEW
17
            return;
×
18
        }
19

20
        $excludeCommands = $container->getParameter('open_telemetry.instrumentation.console.tracing.exclude_commands');
6✔
21
        $container->getDefinition('open_telemetry.instrumentation.console.trace.event_subscriber')
6✔
22
            ->addMethodCall('setExcludeCommands', [$excludeCommands]);
6✔
23
    }
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc