line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
use Mojo::Base 'Sentry::Tracing::Span', -signatures; |
2
|
8
|
|
|
8
|
|
199252
|
|
|
8
|
|
|
|
|
20
|
|
|
8
|
|
|
|
|
53
|
|
3
|
|
|
|
|
|
|
# https://develop.sentry.dev/sdk/unified-api/tracing |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use Mojo::Util 'dumper'; |
6
|
8
|
|
|
8
|
|
1754
|
|
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
2350
|
|
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
|
1254
|
|
|
10
|
|
|
|
|
14
|
|
|
10
|
|
|
|
|
14
|
|
16
|
10
|
|
|
|
|
39
|
return unless $self->sampled; |
17
|
|
|
|
|
|
|
|
18
|
10
|
100
|
|
|
|
69
|
my %transaction = ( |
19
|
|
|
|
|
|
|
contexts => { trace => $self->get_trace_context(), }, |
20
|
9
|
|
|
|
|
74
|
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
|
|
|
|
|
184
|
|
32
|
|
|
|
|
|
|
$self->name($name); |
33
|
|
|
|
|
|
|
} |
34
|
2
|
|
|
2
|
0
|
2718
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
3
|
|
35
|
2
|
|
|
|
|
8
|
1; |