line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
use Mojo::Base 'Sentry::Tracing::Span', -signatures; |
2
|
7
|
|
|
7
|
|
211727
|
|
|
7
|
|
|
|
|
19
|
|
|
7
|
|
|
|
|
36
|
|
3
|
|
|
|
|
|
|
# https://develop.sentry.dev/sdk/unified-api/tracing |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use Mojo::Util 'dumper'; |
6
|
7
|
|
|
7
|
|
1397
|
|
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
1959
|
|
7
|
|
|
|
|
|
|
has _hub => undef; |
8
|
|
|
|
|
|
|
has sampled => undef; |
9
|
|
|
|
|
|
|
has context => undef; |
10
|
|
|
|
|
|
|
has name => '<unlabeled transaction>'; |
11
|
|
|
|
|
|
|
has spans => sub { [] }; |
12
|
|
|
|
|
|
|
has transaction => sub ($self) {$self}; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$self->SUPER::finish(); |
15
|
10
|
|
|
10
|
0
|
1247
|
|
|
10
|
|
|
|
|
11
|
|
|
10
|
|
|
|
|
18
|
|
16
|
10
|
|
|
|
|
43
|
return unless $self->sampled; |
17
|
|
|
|
|
|
|
|
18
|
10
|
100
|
|
|
|
59
|
my %transaction = ( |
19
|
|
|
|
|
|
|
contexts => { trace => $self->get_trace_context(), }, |
20
|
9
|
|
|
|
|
59
|
spans => $self->spans, |
21
|
|
|
|
|
|
|
start_timestamp => $self->start_timestamp, |
22
|
|
|
|
|
|
|
tags => $self->tags, |
23
|
|
|
|
|
|
|
timestamp => $self->timestamp, |
24
|
|
|
|
|
|
|
transaction => $self->name, |
25
|
|
|
|
|
|
|
request => $self->request, |
26
|
|
|
|
|
|
|
type => 'transaction', |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
$self->_hub->capture_event(\%transaction); |
30
|
|
|
|
|
|
|
} |
31
|
9
|
|
|
|
|
174
|
|
32
|
|
|
|
|
|
|
$self->name($name); |
33
|
|
|
|
|
|
|
} |
34
|
2
|
|
|
2
|
0
|
2830
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
3
|
|
35
|
2
|
|
|
|
|
10
|
1; |