| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Paws::XRay; |
|
2
|
1
|
|
|
1
|
|
1858
|
use Moose; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
|
|
sub service { 'xray' } |
|
4
|
|
|
|
|
|
|
sub version { '2016-04-12' } |
|
5
|
|
|
|
|
|
|
sub flattened_arrays { 0 } |
|
6
|
|
|
|
|
|
|
has max_attempts => (is => 'ro', isa => 'Int', default => 5); |
|
7
|
|
|
|
|
|
|
has retry => (is => 'ro', isa => 'HashRef', default => sub { |
|
8
|
|
|
|
|
|
|
{ base => 'rand', type => 'exponential', growth_factor => 2 } |
|
9
|
|
|
|
|
|
|
}); |
|
10
|
|
|
|
|
|
|
has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ |
|
11
|
|
|
|
|
|
|
] }); |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller', 'Paws::Net::RestJsonResponse'; |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub BatchGetTraces { |
|
17
|
|
|
|
|
|
|
my $self = shift; |
|
18
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::XRay::BatchGetTraces', @_); |
|
19
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
|
20
|
|
|
|
|
|
|
} |
|
21
|
|
|
|
|
|
|
sub GetServiceGraph { |
|
22
|
|
|
|
|
|
|
my $self = shift; |
|
23
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::XRay::GetServiceGraph', @_); |
|
24
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
sub GetTraceGraph { |
|
27
|
|
|
|
|
|
|
my $self = shift; |
|
28
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::XRay::GetTraceGraph', @_); |
|
29
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
|
30
|
|
|
|
|
|
|
} |
|
31
|
|
|
|
|
|
|
sub GetTraceSummaries { |
|
32
|
|
|
|
|
|
|
my $self = shift; |
|
33
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::XRay::GetTraceSummaries', @_); |
|
34
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
|
35
|
|
|
|
|
|
|
} |
|
36
|
|
|
|
|
|
|
sub PutTelemetryRecords { |
|
37
|
|
|
|
|
|
|
my $self = shift; |
|
38
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::XRay::PutTelemetryRecords', @_); |
|
39
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
|
40
|
|
|
|
|
|
|
} |
|
41
|
|
|
|
|
|
|
sub PutTraceSegments { |
|
42
|
|
|
|
|
|
|
my $self = shift; |
|
43
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::XRay::PutTraceSegments', @_); |
|
44
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
|
45
|
|
|
|
|
|
|
} |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub operations { qw/BatchGetTraces GetServiceGraph GetTraceGraph GetTraceSummaries PutTelemetryRecords PutTraceSegments / } |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
### main pod documentation begin ### |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 NAME |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Paws::XRay - Perl Interface to AWS AWS X-Ray |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
use Paws; |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
my $obj = Paws->service('XRay'); |
|
64
|
|
|
|
|
|
|
my $res = $obj->Method( |
|
65
|
|
|
|
|
|
|
Arg1 => $val1, |
|
66
|
|
|
|
|
|
|
Arg2 => [ 'V1', 'V2' ], |
|
67
|
|
|
|
|
|
|
# if Arg3 is an object, the HashRef will be used as arguments to the constructor |
|
68
|
|
|
|
|
|
|
# of the arguments type |
|
69
|
|
|
|
|
|
|
Arg3 => { Att1 => 'Val1' }, |
|
70
|
|
|
|
|
|
|
# if Arg4 is an array of objects, the HashRefs will be passed as arguments to |
|
71
|
|
|
|
|
|
|
# the constructor of the arguments type |
|
72
|
|
|
|
|
|
|
Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], |
|
73
|
|
|
|
|
|
|
); |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
AWS X-Ray provides APIs for managing debug traces and retrieving |
|
78
|
|
|
|
|
|
|
service maps and other data created by processing those traces. |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 METHODS |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 BatchGetTraces(TraceIds => ArrayRef[Str|Undef], [NextToken => Str]) |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::XRay::BatchGetTraces> |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Returns: a L<Paws::XRay::BatchGetTracesResult> instance |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Retrieves a list of traces specified by ID. Each trace is a collection |
|
89
|
|
|
|
|
|
|
of segment documents that originates from a single request. Use |
|
90
|
|
|
|
|
|
|
C<GetTraceSummaries> to get a list of trace IDs. |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 GetServiceGraph(EndTime => Str, StartTime => Str, [NextToken => Str]) |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::XRay::GetServiceGraph> |
|
96
|
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Returns: a L<Paws::XRay::GetServiceGraphResult> instance |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Retrieves a document that describes services that process incoming |
|
100
|
|
|
|
|
|
|
requests, and downstream services that they call as a result. Root |
|
101
|
|
|
|
|
|
|
services process incoming requests and make calls to downstream |
|
102
|
|
|
|
|
|
|
services. Root services are applications that use the AWS X-Ray SDK. |
|
103
|
|
|
|
|
|
|
Downstream services can be other applications, AWS resources, HTTP web |
|
104
|
|
|
|
|
|
|
APIs, or SQL databases. |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head2 GetTraceGraph(TraceIds => ArrayRef[Str|Undef], [NextToken => Str]) |
|
108
|
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::XRay::GetTraceGraph> |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Returns: a L<Paws::XRay::GetTraceGraphResult> instance |
|
112
|
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
Retrieves a service graph for one or more specific trace IDs. |
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head2 GetTraceSummaries(EndTime => Str, StartTime => Str, [FilterExpression => Str, NextToken => Str, Sampling => Bool]) |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::XRay::GetTraceSummaries> |
|
119
|
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Returns: a L<Paws::XRay::GetTraceSummariesResult> instance |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
Retrieves IDs and metadata for traces available for a specified time |
|
123
|
|
|
|
|
|
|
frame using an optional filter. To get the full traces, pass the trace |
|
124
|
|
|
|
|
|
|
IDs to C<BatchGetTraces>. |
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
A filter expression can target traced requests that hit specific |
|
127
|
|
|
|
|
|
|
service nodes or edges, have errors, or come from a known user. For |
|
128
|
|
|
|
|
|
|
example, the following filter expression targets traces that pass |
|
129
|
|
|
|
|
|
|
through C<api.example.com>: |
|
130
|
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
C<service("api.example.com")> |
|
132
|
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
This filter expression finds traces that have an annotation named |
|
134
|
|
|
|
|
|
|
C<account> with the value C<12345>: |
|
135
|
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
C<annotation.account = "12345"> |
|
137
|
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
For a full list of indexed fields and keywords that you can use in |
|
139
|
|
|
|
|
|
|
filter expressions, see Using Filter Expressions in the I<AWS X-Ray |
|
140
|
|
|
|
|
|
|
Developer Guide>. |
|
141
|
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=head2 PutTelemetryRecords(TelemetryRecords => ArrayRef[L<Paws::XRay::TelemetryRecord>], [EC2InstanceId => Str, Hostname => Str, ResourceARN => Str]) |
|
144
|
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::XRay::PutTelemetryRecords> |
|
146
|
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
Returns: a L<Paws::XRay::PutTelemetryRecordsResult> instance |
|
148
|
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
Used by the AWS X-Ray daemon to upload telemetry. |
|
150
|
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=head2 PutTraceSegments(TraceSegmentDocuments => ArrayRef[Str|Undef]) |
|
153
|
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::XRay::PutTraceSegments> |
|
155
|
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
Returns: a L<Paws::XRay::PutTraceSegmentsResult> instance |
|
157
|
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
Uploads segment documents to AWS X-Ray. The X-Ray SDK generates segment |
|
159
|
|
|
|
|
|
|
documents and sends them to the X-Ray daemon, which uploads them in |
|
160
|
|
|
|
|
|
|
batches. A segment document can be a completed segment, an in-progress |
|
161
|
|
|
|
|
|
|
segment, or an array of subsegments. |
|
162
|
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
Segments must include the following fields. For the full segment |
|
164
|
|
|
|
|
|
|
document schema, see AWS X-Ray Segment Documents in the I<AWS X-Ray |
|
165
|
|
|
|
|
|
|
Developer Guide>. |
|
166
|
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
B<Required Segment Document Fields> |
|
168
|
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
=over |
|
170
|
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=item * |
|
172
|
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
C<name> - The name of the service that handled the request. |
|
174
|
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=item * |
|
176
|
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
C<id> - A 64-bit identifier for the segment, unique among segments in |
|
178
|
|
|
|
|
|
|
the same trace, in 16 hexadecimal digits. |
|
179
|
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=item * |
|
181
|
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
C<trace_id> - A unique identifier that connects all segments and |
|
183
|
|
|
|
|
|
|
subsegments originating from a single client request. |
|
184
|
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
=item * |
|
186
|
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
C<start_time> - Time the segment or subsegment was created, in floating |
|
188
|
|
|
|
|
|
|
point seconds in epoch time, accurate to milliseconds. For example, |
|
189
|
|
|
|
|
|
|
C<1480615200.010> or C<1.480615200010E9>. |
|
190
|
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
=item * |
|
192
|
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
C<end_time> - Time the segment or subsegment was closed. For example, |
|
194
|
|
|
|
|
|
|
C<1480615200.090> or C<1.480615200090E9>. Specify either an C<end_time> |
|
195
|
|
|
|
|
|
|
or C<in_progress>. |
|
196
|
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
=item * |
|
198
|
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
C<in_progress> - Set to C<true> instead of specifying an C<end_time> to |
|
200
|
|
|
|
|
|
|
record that a segment has been started, but is not complete. Send an in |
|
201
|
|
|
|
|
|
|
progress segment when your application receives a request that will |
|
202
|
|
|
|
|
|
|
take a long time to serve, to trace the fact that the request was |
|
203
|
|
|
|
|
|
|
received. When the response is sent, send the complete segment to |
|
204
|
|
|
|
|
|
|
overwrite the in-progress segment. |
|
205
|
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
=back |
|
207
|
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
A C<trace_id> consists of three numbers separated by hyphens. For |
|
209
|
|
|
|
|
|
|
example, 1-58406520-a006649127e371903a2de979. This includes: |
|
210
|
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
B<Trace ID Format> |
|
212
|
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
=over |
|
214
|
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
=item * |
|
216
|
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
The version number, i.e. C<1>. |
|
218
|
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
=item * |
|
220
|
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
The time of the original request, in Unix epoch time, in 8 hexadecimal |
|
222
|
|
|
|
|
|
|
digits. For example, 10:00AM December 2nd, 2016 PST in epoch time is |
|
223
|
|
|
|
|
|
|
C<1480615200> seconds, or C<58406520> in hexadecimal. |
|
224
|
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
=item * |
|
226
|
|
|
|
|
|
|
|
|
227
|
|
|
|
|
|
|
A 96-bit identifier for the trace, globally unique, in 24 hexadecimal |
|
228
|
|
|
|
|
|
|
digits. |
|
229
|
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
=back |
|
231
|
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
=head1 PAGINATORS |
|
237
|
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
Paginator methods are helpers that repetively call methods that return partial results |
|
239
|
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
244
|
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
This service class forms part of L<Paws> |
|
246
|
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
|
248
|
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
|
250
|
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
|
252
|
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
=cut |
|
254
|
|
|
|
|
|
|
|