| 1 | 3 | ▶ | use Object::Pad ':experimental(init_expr)'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | # ABSTRACT: A basic OpenTelemetry span processor | ||||||||||
| 3 | |||||||||||
| 4 | package OpenTelemetry::SDK::Trace::Span::Processor::Simple; | ||||||||||
| 5 | |||||||||||
| 6 | 2 | our $VERSION = '0.101'; | |||||||||
| 7 | |||||||||||
| 8 | class OpenTelemetry::SDK::Trace::Span::Processor::Simple | ||||||||||
| 9 | :isa(OpenTelemetry::Processor::Simple) | ||||||||||
| 10 | :does(OpenTelemetry::Trace::Span::Processor) | ||||||||||
| 11 | 2 | ▶ | { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 0 | ▶ | method on_start ( $span, $context ) { } | ||||||||
|
Subroutine
on_start: not called CC=1 SCAR=4.1
Pod
documented
| |||||||||||
| 13 | |||||||||||
| 14 | 2 | ▶ | method on_end ($span) { | ||||||||
|
Subroutine
on_end: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 15 | 2 | ▶ | return unless $span->context->trace_flags->sampled; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 1 | $self->process( $span->snapshot ); | |||||||||
| 17 | 2 | } | |||||||||
| 18 | 2 | } | |||||||||