| 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
| |||||||||||
| 15 | |||||||||||
| 16 | 2 | $class->wrap_subroutines( scalar caller(2), $rules, $options ); | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 1 | 1; | |||||||||