line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
use Mojo::Base -base, -signatures; |
2
|
4
|
|
|
4
|
|
25
|
|
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
26
|
|
3
|
|
|
|
|
|
|
use Mojo::JSON qw(encode_json); |
4
|
4
|
|
|
4
|
|
914
|
|
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
1247
|
|
5
|
|
|
|
|
|
|
has event_id => undef; |
6
|
|
|
|
|
|
|
has headers => sub ($self) { { event_id => $self->event_id } }; |
7
|
|
|
|
|
|
|
has body => sub { {} }; |
8
|
|
|
|
|
|
|
has sample_rates => sub { [{ id => "client_rate", rate => "1" }] }; # FIXME |
9
|
|
|
|
|
|
|
has type => 'transaction'; |
10
|
|
|
|
|
|
|
has item_headers => |
11
|
|
|
|
|
|
|
sub ($self) { { type => $self->type, sample_rates => $self->sample_rates } }; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my @lines = ($self->headers, $self->item_headers, $self->body); |
14
|
8
|
|
|
8
|
0
|
13
|
return join("\n", map { encode_json($_) } @lines); |
|
8
|
|
|
|
|
11
|
|
|
8
|
|
|
|
|
10
|
|
15
|
8
|
|
|
|
|
22
|
} |
16
|
8
|
|
|
|
|
44
|
|
|
24
|
|
|
|
|
1202
|
|
17
|
|
|
|
|
|
|
1; |