line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenTracing::Tag; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
49
|
|
4
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
82
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.003'; # VERSION |
7
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TEAM'; # AUTHORITY |
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
768
|
use parent qw(OpenTracing::Common); |
|
2
|
|
|
|
|
540
|
|
|
2
|
|
|
|
|
10
|
|
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
72
|
no indirect; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
6
|
|
12
|
2
|
|
|
2
|
|
83
|
use utf8; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
5
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=encoding utf8 |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
OpenTracing::Tag - wrapper object for tags |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 DESCRIPTION |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Most of the time, tags are represented as simple key/value entries in a hashref. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Some tags have specific semantic meaning, so this class acts as a base for supporting |
25
|
|
|
|
|
|
|
future operations on specific tags. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head2 key |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
The tag key, a plain string. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
0
|
1
|
|
sub key { shift->{key} } |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head2 value |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
The tag value, as a plain string. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |
42
|
|
|
|
|
|
|
|
43
|
0
|
|
|
0
|
1
|
|
sub value { shift->{value} } |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |