line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenTracing::Implementation::NoOp::ScopeManager; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
OpenTracing::Implementation::NoOp::ScopeManager - 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::ScopeManager>, |
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.72.1'; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
3
|
|
|
3
|
|
303302
|
use OpenTracing::Implementation::NoOp::Scope; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
226
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
0
|
|
sub new { bless {} } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub activate_span { |
31
|
0
|
|
|
0
|
0
|
|
OpenTracing::Implementation::NoOp::Scope->new( ) |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
0
|
0
|
|
sub get_active_scope { return } |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
BEGIN { |
39
|
3
|
|
|
3
|
|
19
|
use Role::Tiny::With; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
152
|
|
40
|
|
|
|
|
|
|
with 'OpenTracing::Interface::ScopeManager' |
41
|
3
|
50
|
|
3
|
|
88
|
if $ENV{OPENTRACING_INTERFACE}; |
42
|
|
|
|
|
|
|
} # check at compile time, perl -c will work |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |