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

FriendsOfOpenTelemetry / opentelemetry-bundle / 7752973069

02 Feb 2024 07:53AM UTC coverage: 35.071% (-29.5%) from 64.527%
7752973069

Pull #38

github

web-flow
Merge d1463331b into ad4a4f326
Pull Request #38: Refactor services injection

99 of 459 new or added lines in 44 files covered. (21.57%)

314 existing lines in 33 files now uncovered.

740 of 2110 relevant lines covered (35.07%)

2.37 hits per line

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

0.0
/src/OpenTelemetry/Exporter/OtlpExporterFormatEnum.php
1
<?php
2

3
namespace FriendsOfOpenTelemetry\OpenTelemetryBundle\OpenTelemetry\Exporter;
4

5
use OpenTelemetry\Contrib\Otlp\ContentTypes;
6
use OpenTelemetry\Contrib\Otlp\Protocols;
7

8
enum OtlpExporterFormatEnum: string
9
{
10
    case Json = 'json';
11
    case Ndjson = 'ndjson';
12
    case Grpc = 'gprc';
13
    case Protobuf = 'protobuf';
14

15
    public function toContentType(): string
16
    {
UNCOV
17
        return match ($this) {
×
UNCOV
18
            self::Json => ContentTypes::JSON,
×
UNCOV
19
            self::Ndjson => ContentTypes::NDJSON,
×
UNCOV
20
            self::Grpc, self::Protobuf => ContentTypes::PROTOBUF,
×
UNCOV
21
        };
×
22
    }
23

24
    public function toProtocol(): string
25
    {
26
        return match ($this) {
×
27
            self::Json => Protocols::HTTP_JSON,
×
28
            self::Ndjson => Protocols::HTTP_NDJSON,
×
29
            self::Grpc => Protocols::GRPC,
×
30
            self::Protobuf => Protocols::HTTP_PROTOBUF,
×
31
        };
×
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