| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
5
|
|
|
5
|
|
188151
|
use Object::Pad ':experimental(init_expr)'; |
|
|
5
|
|
|
|
|
12774
|
|
|
|
5
|
|
|
|
|
34
|
|
|
2
|
|
|
|
|
|
|
# ABSTRACT: An sampler with that will never sample |
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package OpenTelemetry::SDK::Trace::Sampler::AlwaysOff; |
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.028'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
3149
|
use OpenTelemetry::SDK::Trace::Sampler::Result; |
|
|
5
|
|
|
|
|
14
|
|
|
|
5
|
|
|
|
|
502
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
class OpenTelemetry::SDK::Trace::Sampler::AlwaysOff |
|
11
|
|
|
|
|
|
|
:does(OpenTelemetry::SDK::Trace::Sampler) |
|
12
|
4
|
|
|
4
|
|
1868
|
{ |
|
|
4
|
|
|
|
|
12
|
|
|
|
4
|
|
|
|
|
385
|
|
|
13
|
5
|
|
|
5
|
|
1016
|
use OpenTelemetry::Trace; |
|
|
5
|
|
|
|
|
33045
|
|
|
|
5
|
|
|
|
|
1805
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
3
|
|
|
3
|
1
|
7650
|
method description () { 'AlwaysOffSampler' } |
|
|
3
|
|
|
|
|
15
|
|
|
|
3
|
|
|
|
|
5
|
|
|
|
3
|
|
|
|
|
22
|
|
|
16
|
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
1
|
566
|
method should_sample (%args) { |
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
8
|
|
|
18
|
|
|
|
|
|
|
OpenTelemetry::SDK::Trace::Sampler::Result->new( |
|
19
|
|
|
|
|
|
|
decision => OpenTelemetry::SDK::Trace::Sampler::Result::DROP, |
|
20
|
|
|
|
|
|
|
trace_state => OpenTelemetry::Trace |
|
21
|
1
|
|
|
|
|
8
|
->span_from_context($args{context})->context->trace_state, |
|
22
|
|
|
|
|
|
|
) |
|
23
|
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
} |