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

jjatria / perl-opentelemetry / 6553776671

17 Oct 2023 10:57PM UTC coverage: 73.52% (-18.9%) from 92.443%
6553776671

push

github

jjatria
Add experimental support for testing metrics

2 of 2 new or added lines in 1 file covered. (100.0%)

472 of 642 relevant lines covered (73.52%)

4.18 hits per line

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

42.11
/lib/OpenTelemetry/Propagator/TextMap.pm
1
use Object::Pad;
9✔
2
# ABSTRACT: A context propagator for OpenTelemetry using string key / value pairs
3

4
use experimental 'signatures';
9✔
5

6
package OpenTelemetry::Propagator::TextMap;
7

8
our $VERSION = '0.001';
9

10
sub SETTER {
11
    sub ( $carrier, $key, $value ) { $carrier->{$key} = $value; return }
1✔
12
}
3✔
13

14
sub GETTER {
15
    sub ( $carrier, $key ) { $carrier->{$key} }
3✔
16
}
3✔
17

18
class OpenTelemetry::Propagator::TextMap :does(OpenTelemetry::Propagator) {
6✔
19
    use OpenTelemetry::Context;
9✔
20

21
    method inject (
22
        $carrier,
×
23
        $context = OpenTelemetry::Context->current,
×
24
        $setter  = SETTER
×
25
    ) {
×
26
        return $self;
×
27
    }
28

29
    method extract (
30
        $carrier,
×
31
        $context = OpenTelemetry::Context->current,
×
32
        $getter  = GETTER
×
33
    ) {
×
34
        return $context;
×
35
    }
36

37
    method keys () { }
×
38
}
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