line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenTracing::Interface::ScopeManager; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
569792
|
use strict; |
|
3
|
|
|
|
|
30
|
|
|
3
|
|
|
|
|
93
|
|
4
|
3
|
|
|
3
|
|
18
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
129
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.20'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
1410
|
use Role::MethodReturns; |
|
3
|
|
|
|
|
440032
|
|
|
3
|
|
|
|
|
22
|
|
11
|
|
|
|
|
|
|
|
12
|
3
|
|
|
3
|
|
23340
|
use OpenTracing::Types qw/Scope Span/; |
|
3
|
|
|
|
|
4115
|
|
|
3
|
|
|
|
|
32
|
|
13
|
3
|
|
|
3
|
|
1867
|
use Types::Standard qw/Bool Dict Optional/; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
18
|
|
14
|
|
|
|
|
|
|
|
15
|
3
|
|
|
3
|
|
4205
|
use namespace::clean; |
|
3
|
|
|
|
|
19939
|
|
|
3
|
|
|
|
|
35
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
around activate_span => instance_method ( Span $span, @options, ) { |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
( |
21
|
|
|
|
|
|
|
Dict[ |
22
|
|
|
|
|
|
|
finish_span_on_close => Optional[ Bool ], |
23
|
|
|
|
|
|
|
] |
24
|
|
|
|
|
|
|
)->assert_valid( { @options } ); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
returns( Scope, |
27
|
|
|
|
|
|
|
$original->( $instance => ( $span, @options ) ) |
28
|
|
|
|
|
|
|
) |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
}; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
around get_active_scope => instance_method ( ) { |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
returns_maybe( Scope, |
37
|
|
|
|
|
|
|
$original->( $instance => ( ) ) |
38
|
|
|
|
|
|
|
) |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
}; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |