blib/lib/OpenTelemetry/Instrumentation/caller.pm

filter: Statementstmt 100% 11 / 11 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 17 / 17 CC 2 SCAR 4.1
CC
2
Cov
100%
install
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« blib/lib/OpenTelemetry/Instrumentation/namespace.pm ↑ Summary Build »
1 package OpenTelemetry::Instrumentation::caller;
2 # ABSTRACT: OpenTelemetry instrumentation for the current namespace
3  
4 1 our $VERSION = '0.033';
5  
6 1 ▶use v5.38;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use parent 'OpenTelemetry::Instrumentation::namespace';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub install {
11 2 ▶ my $class = shift;
Subroutine install: called CC=2 SCAR=6.9
Pod documented
12 2 my ( $rules, $options ) = $class->parse_options(@_);
13  
14 2 ▶ $rules = [ qr/.*/ => 1 ] unless @$rules;
Branch: 1 branch
BranchTrueFalseTotal
unless @$rules 1 1 2
15  
16 2 $class->wrap_subroutines( scalar caller(2), $rules, $options );
17 }
18  
19 1 1;
« blib/lib/OpenTelemetry/Instrumentation/namespace.pm ↑ Summary Build »