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

FriendsOfOpenTelemetry / opentelemetry-bundle / 7356841825

29 Dec 2023 12:58PM UTC coverage: 77.27% (+0.6%) from 76.695%
7356841825

push

github

gaelreyrol
test(opentelemetry): cover transports

35 of 37 new or added lines in 14 files covered. (94.59%)

1200 of 1553 relevant lines covered (77.27%)

13.96 hits per line

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

50.0
/src/OpenTelemetry/Exporter/ConsoleExporterEndpoint.php
1
<?php
2

3
namespace FriendsOfOpenTelemetry\OpenTelemetryBundle\OpenTelemetry\Exporter;
4

5
final readonly class ConsoleExporterEndpoint implements ExporterEndpointInterface
6
{
7
    private function __construct(private ExporterDsn $dsn)
8
    {
9
        if ('console' !== $this->dsn->getExporter()) {
28✔
10
            throw new \RuntimeException('Provided DSN exporter is not compatible with this endpoint.');
×
11
        }
12
    }
13

14
    public static function fromDsn(ExporterDsn $dsn): ExporterEndpointInterface
15
    {
16
        return new self($dsn);
28✔
17
    }
18

19
    public function __toString()
20
    {
21
        return $this->dsn->getPath() ?? 'php://stdout';
28✔
22
    }
23

24
    public function getTransport(): ?string
25
    {
26
        return null;
×
27
    }
28

29
    public function getExporter(): string
30
    {
NEW
31
        return $this->dsn->getExporter();
×
32
    }
33
}
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

© 2026 Coveralls, Inc