SDK/Trace/Sampler/AlwaysOff.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 33 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« SDK/Trace/Sampler.pm ↑ Summary SDK/Trace/Span/Readable.pm »
1 5 ▶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 5 our $VERSION = '0.101';
7  
8 5 ▶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 5 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
13 5 ▶ use OpenTelemetry::Trace;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶ method description () { 'AlwaysOffSampler' }
Subroutine description: called CC=1 SCAR=0.0
Pod documented
16  
17 1 ▶ method should_sample (%args) {
Subroutine should_sample: called CC=1 SCAR=0.0
Pod documented
18 OpenTelemetry::SDK::Trace::Sampler::Result->new(
19 decision => OpenTelemetry::SDK::Trace::Sampler::Result::DROP,
20 trace_state => OpenTelemetry::Trace
21 1 ->span_from_context($args{context})->context->trace_state,
22 )
23 5 }
24 5 }
« SDK/Trace/Sampler.pm ↑ Summary SDK/Trace/Span/Readable.pm »