line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenTracing::Process; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
20
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
93
|
|
4
|
3
|
|
|
3
|
|
13
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
125
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.003'; # VERSION |
7
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TEAM'; # AUTHORITY |
8
|
|
|
|
|
|
|
|
9
|
3
|
|
|
3
|
|
415
|
use parent qw(OpenTracing::Common); |
|
3
|
|
|
|
|
297
|
|
|
3
|
|
|
|
|
26
|
|
10
|
|
|
|
|
|
|
|
11
|
3
|
|
|
3
|
|
126
|
no indirect; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
12
|
|
12
|
3
|
|
|
3
|
|
150
|
use utf8; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
17
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=encoding utf8 |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
OpenTracing::Process - information about a single process |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 DESCRIPTION |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Each batch of spans is linked to a process. This can either be a Unix-style process or a more abstract "service" |
23
|
|
|
|
|
|
|
concept. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=cut |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 METHODS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head2 name |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
The process name. Freeform text string. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
0
|
0
|
1
|
|
sub name { shift->{name} //= "$0" } |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head2 tags |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Arrayref of tags relating to the process. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |
42
|
|
|
|
|
|
|
|
43
|
0
|
|
|
0
|
1
|
|
sub tags { shift->{tags} } |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 tag_list |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
List of tags for this process. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=cut |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub tag_list { |
52
|
0
|
|
0
|
0
|
1
|
|
(shift->{tags} //= [])->@* |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
sub tag : method { |
56
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
57
|
0
|
|
|
|
|
|
@{$self->{tags}}{keys %args} = values %args; |
|
0
|
|
|
|
|
|
|
58
|
0
|
|
|
|
|
|
return $self; |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__END__ |