| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package OpenTelemetry::Instrumentation::caller; |
|
2
|
|
|
|
|
|
|
# ABSTRACT: OpenTelemetry instrumentation for the current namespace |
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.033'; |
|
5
|
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
611546
|
use v5.38; |
|
|
1
|
|
|
|
|
4
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
17
|
use parent 'OpenTelemetry::Instrumentation::namespace'; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
10
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub install { |
|
11
|
2
|
|
|
2
|
1
|
40114
|
my $class = shift; |
|
12
|
2
|
|
|
|
|
23
|
my ( $rules, $options ) = $class->parse_options(@_); |
|
13
|
|
|
|
|
|
|
|
|
14
|
2
|
100
|
|
|
|
14
|
$rules = [ qr/.*/ => 1 ] unless @$rules; |
|
15
|
|
|
|
|
|
|
|
|
16
|
2
|
|
|
|
|
21
|
$class->wrap_subroutines( scalar caller(2), $rules, $options ); |
|
17
|
|
|
|
|
|
|
} |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |