SDK/Trace/Span/Processor/Simple.pm

filter: Statementstmt 80.0% 16 / 20 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 2 / 2 totaltotal 82.1% 23 / 28 CC 2 SCAR 3.5
CC
2
Cov
82%
on_end
2.0
on_start
1.5
BEGIN
1.0
CRAP 1.4
« SDK/Trace/Span/Processor/Batch.pm ↑ Summary SDK/Logs/LogRecord/Processor/Batch.pm »
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
BranchTrueFalseTotal
unless $span->context->trace_flags->sampled 1 1 2
16 1 $self->process( $span->snapshot );
17 2 }
18 2 }
« SDK/Trace/Span/Processor/Batch.pm ↑ Summary SDK/Logs/LogRecord/Processor/Batch.pm »