| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
8
|
|
|
8
|
|
182857
|
use Object::Pad ':experimental(init_expr)'; |
|
|
8
|
|
|
|
|
9312
|
|
|
|
8
|
|
|
|
|
61
|
|
|
2
|
|
|
|
|
|
|
# ABSTRACT: The result of a sampling decision |
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package OpenTelemetry::SDK::Trace::Sampler::Result; |
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.028'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use constant { |
|
9
|
8
|
|
|
|
|
1909
|
DROP => 0, |
|
10
|
|
|
|
|
|
|
RECORD_ONLY => 1, |
|
11
|
|
|
|
|
|
|
RECORD_AND_SAMPLE => 2, |
|
12
|
8
|
|
|
8
|
|
1563
|
}; |
|
|
8
|
|
|
|
|
16
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
5
|
|
|
5
|
|
1992
|
class OpenTelemetry::SDK::Trace::Sampler::Result :does(OpenTelemetry::Attributes) { |
|
|
5
|
|
|
|
|
269015
|
|
|
|
5
|
|
|
|
|
657
|
|
|
15
|
1
|
|
|
1
|
1
|
131
|
field $trace_state :param :reader; |
|
|
1
|
|
|
|
|
2
|
|
|
16
|
|
|
|
|
|
|
field $decision :param; |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
ADJUST { |
|
19
|
8
|
|
|
8
|
|
2126
|
no warnings qw( uninitialized numeric ); |
|
|
8
|
|
|
|
|
19
|
|
|
|
8
|
|
|
|
|
2980
|
|
|
20
|
|
|
|
|
|
|
$decision = DROP |
|
21
|
|
|
|
|
|
|
unless $decision >= RECORD_ONLY |
|
22
|
|
|
|
|
|
|
&& $decision <= RECORD_AND_SAMPLE; |
|
23
|
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
|
|
25
|
5
|
|
|
5
|
1
|
1371
|
method sampled () { $decision eq RECORD_AND_SAMPLE } |
|
|
5
|
|
|
|
|
12
|
|
|
|
5
|
|
|
|
|
6
|
|
|
|
5
|
|
|
|
|
13
|
|
|
26
|
|
|
|
|
|
|
|
|
27
|
61
|
|
|
61
|
1
|
34727
|
method recording () { $decision ne DROP } |
|
|
61
|
|
|
|
|
267
|
|
|
|
61
|
|
|
|
|
118
|
|
|
|
61
|
|
|
|
|
237
|
|
|
28
|
|
|
|
|
|
|
} |