line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenTracing::Implementation::DataDog::Utils; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
OpenTracing::Implementation::DataDog::Utils - DataDog Utilities |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = 'v0.46.1'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
; |
12
|
|
|
|
|
|
|
|
13
|
14
|
|
|
14
|
|
108
|
use Exporter qw/import/; |
|
14
|
|
|
|
|
45
|
|
|
14
|
|
|
|
|
1373
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our @EXPORT_OK = qw/nano_seconds/; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 EXPORTS OK |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
The following subroutines can be imported into your namespance: |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=cut |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head2 nano_seconds |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
To turn floatingpoint times into number of nano seconds |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=cut |
30
|
|
|
|
|
|
|
|
31
|
28
|
|
|
28
|
1
|
654
|
sub nano_seconds { int( $_[0] * 1_000_000_000 ) } |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 SEE ALSO |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=over |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=item L<OpenTracing::Implementation::DataDog> |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Sending traces to DataDog using Agent. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=back |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHOR |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Theo van Hoesel <tvanhoesel@perceptyx.com> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
'OpenTracing::Implementation::DataDog' |
56
|
|
|
|
|
|
|
is Copyright (C) 2019 .. 2021, Perceptyx Inc |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify it under |
59
|
|
|
|
|
|
|
the terms of the Artistic License 2.0. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This package is distributed in the hope that it will be useful, but it is |
62
|
|
|
|
|
|
|
provided "as is" and without any express or implied warranties. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
For details, see the full text of the license in the file LICENSE. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
1; |