line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenTracing::Implementation::NoOp::SpanContext; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
OpenTracing::Implementation::NoOp::SpanContext - NoOp, so code won't break! |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 DESCRIPTION |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Objects of this class implement the required methods of the |
10
|
|
|
|
|
|
|
L<OpenTracing::Interface::SpanContext>, |
11
|
|
|
|
|
|
|
to be compliant during testing and allow applications to continue working |
12
|
|
|
|
|
|
|
without having to catch exceptions all the time. |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
None of the methods will do anything useful. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our $VERSION = 'v0.71.1'; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
0
|
|
sub with_baggage_item { __PACKAGE__->new( ) } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
0
|
|
sub with_baggage_items { __PACKAGE__->new( ) } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
0
|
|
sub get_baggage_item { undef } |
27
|
0
|
|
|
0
|
0
|
|
sub get_baggage_items { return ( ) } |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
0
|
|
sub new { bless {} } |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
BEGIN { |
35
|
7
|
|
|
7
|
|
301420
|
use Role::Tiny::With; |
|
7
|
|
|
|
|
36713
|
|
|
7
|
|
|
|
|
424
|
|
36
|
|
|
|
|
|
|
with 'OpenTracing::Interface::SpanContext' |
37
|
7
|
50
|
|
7
|
|
225
|
if $ENV{OPENTRACING_INTERFACE}; |
38
|
|
|
|
|
|
|
} # check at compile time, perl -c will work |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |