SDK/Trace/Sampler/AlwaysOff.pm

filter: Statementstmt 80.0% 20 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 2 / 2 totaltotal 81.8% 27 / 33 CC 1 SCAR 1.5
CC
1
Cov
80%
should_sample
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Processor/Simple.pm ↑ Summary SDK/Logs/LogRecord.pm »
1 4 ▶use Object::Pad ':experimental(init_expr)';
Subroutine BEGIN: called CC=1 SCAR=0.0
2 # ABSTRACT: An sampler with that will never sample
3  
4 package OpenTelemetry::SDK::Trace::Sampler::AlwaysOff;
5  
6 4 our $VERSION = '0.102';
7  
8 4 ▶use OpenTelemetry::SDK::Trace::Sampler::Result;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 class OpenTelemetry::SDK::Trace::Sampler::AlwaysOff
11 :does(OpenTelemetry::SDK::Trace::Sampler)
12 3 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
13 4 ▶ use OpenTelemetry::Trace;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 2 ▶ method description () { 'AlwaysOffSampler' }
Subroutine description: called CC=1 SCAR=0.0
Pod documented
16  
17 0 ▶ method should_sample (%args) {
Subroutine should_sample: not called CC=1 SCAR=6.9
Pod documented
18 OpenTelemetry::SDK::Trace::Sampler::Result->new(
19 decision => OpenTelemetry::SDK::Trace::Sampler::Result::DROP,
20 trace_state => OpenTelemetry::Trace
21 0 ->span_from_context($args{context})->context->trace_state,
22 )
23 4 }
24 4 }
« Processor/Simple.pm ↑ Summary SDK/Logs/LogRecord.pm »