fujiwara / aws-xray Goto Github PK
View Code? Open in Web Editor NEWAWS X-Ray tracing library for Perl5
License: Other
AWS X-Ray tracing library for Perl5
License: Other
AWS X-Ray segment names "can contain Unicode letters, numbers, and whitespace, and the following symbols: _, ., :, /, %, &, #, =, +, , -, @" ("Segment Fields", in "Segment Documents"
capture() does not presently enforce this restriction, causing segments with names that do not follow the rule to be rejected by AWS. I suggest that capture() should die
when it receives an invalid segment name.
When we use capture()
inside a Lambda function, the $AWS::XRay::SEGMENT_ID
is set with the correct segment ID (code).
But when a new segment is created, if that variable is present and set, the subsegment namespace is always set to remote
(code).
This causes the Trace histogram in the console to look "weird", as if our capture()
calls were remote calls, which most of them were not.
I think it is important to distinguish between capture()
for remote calls and just plain segments that we want to time and trace properly.
I'm not sure how to go about it, but I think that either making trace()
different from capture()
and not setting namespace to remote when trace()
is used, or adding a new subsegment()
call, one of them should work.
Opinions?
AWS X-Ray segment names "can contain Unicode letters, numbers, and whitespace, and the following symbols: _, ., :, /, %, &, #, =, +, , -, @" ("Segment Fields", in "Segment Documents"
capture() does not presently enforce this restriction, causing segments with names that do not follow the rule to be rejected by AWS. I suggest that capture() should die
when it receives an invalid segment name.
On some of my smoker systems the test is failing:
# Failed test at t/09_plugin.t line 25.
# Structures begin differing at:
# $got->{ec2}{instance_id} = '967348'
# $expected->{ec2}{instance_id} = ''
# Looks like you failed 1 test of 2.
t/09_plugin.t ..........
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.