Interface/Tracer.pm

filter: Statementstmt 100% 50 / 50 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 14 / 14 Podpod n/a totaltotal 100% 64 / 64 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Interface/SpanContext.pm ↑ Summary Types.pm »
1 package OpenTracing::Interface::Tracer;
2  
3  
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7  
8 3 our $VERSION = 'v0.202.0';
9  
10  
11 3 ▶use Role::Declare -lax; # so missing named parameters default to undef
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 3 ▶use OpenTracing::Types qw/ContextReference Scope ScopeManager Span SpanContext/;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 3 ▶use Types::Standard qw/ArrayRef Bool Dict HashRef Maybe Object Str/;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 3 ▶use Types::Common::Numeric qw/PositiveOrZeroNum/;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 3 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 3 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21  
22  
23 instance_method get_scope_manager(
24 3 ▶) :Return(ScopeManager) {}
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26  
27  
28 instance_method get_active_span(
29 3 ▶) :ReturnMaybe(Span) {}
Subroutine BEGIN: called CC=1 SCAR=0.0
30  
31  
32  
33 instance_method start_active_span(
34 Str $operation_name,
35 Maybe[ Span | SpanContext ] :$child_of,
36 Maybe[ ArrayRef[ContextReference] ] :$references,
37 Maybe[ HashRef[Str] ] :$tags,
38 Maybe[ PositiveOrZeroNum ] :$start_time,
39 Maybe[ Bool ] :$ignore_active_span,
40 Maybe[ Bool ] :$finish_span_on_close,
41 ) :Return(Scope) {
42 croak "'child_of' and 'references' are mutual exclusive options"
43 if defined $child_of && defined $references;
44 3 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
45  
46  
47  
48 instance_method start_span(
49 Str $operation_name,
50 Maybe[ Span | SpanContext ] :$child_of,
51 Maybe[ ArrayRef[ContextReference] ] :$references,
52 Maybe[ HashRef[Str] ] :$tags,
53 Maybe[ PositiveOrZeroNum ] :$start_time,
54 Maybe[ Bool ] :$ignore_active_span,
55 ) :Return(Span) {
56 croak "'child_of' and 'references' are mutual exclusive options"
57 if defined $child_of && defined $references;
58 3 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
59  
60  
61  
62 instance_method inject_context(
63 Str $carrier_format,
64 Object $carrier,
65 SpanContext $span_context
66 3 ▶) :Return(Object) {}
Subroutine BEGIN: called CC=1 SCAR=0.0
67  
68  
69  
70 instance_method extract_context(
71 Str $carrier_format,
72 Object $carrier
73 3 ▶) :ReturnMaybe(SpanContext) {}
Subroutine BEGIN: called CC=1 SCAR=0.0
74  
75  
76  
77 3 1;
« Interface/SpanContext.pm ↑ Summary Types.pm »