238 points · by Trisell · 10y ago · 99 comments
As a starting point, I would recommend reading Google's paper on their project "Dapper." [1] It's essentially the core of most distributed tracing systems. At least those I've encountered.
There's a lot of tooling out there that take their cues from Dapper. I've recently been looking into integrating OpenZipkin[2] with our systems. I see at as a more viable alternative (no tie in!) to Yet Another Propriety Thing in AWS (YAPTA). There's other as well, like AppDash.
Recently there has been a push towards an open-standard for the collection side called OpenTracing[3]. I came across it when investigating LightStep[4]. Ideally that means no vendor lock-in, which of course has lots of knock-on effects.
If you know of any, I'd love to be pointed in the direction of _different_ and not just divergent techniques.
[1]: http://static.googleusercontent.com/media/research.google.co...
[2]: http://zipkin.io
[4]: http://lightstep.com - Impressive team behind this.
(Disclosure: I work on it)
and their follow on work, Pivot Tracing: http://pivottracing.io/
(which got a best paper award at SOSP'15.)
(I work on it)
In practice, the analysis a DAG allows you to perform are way more powerful. So if you're in the process of setting that request ID stuff up, consider doing the tracing way.
I'll be talking about this on the https://twitch.tv/aws stream at 12:30 pacific if you guys want to ask questions / learn more.
(I WORK AT AWS)
I'm probably over thinking it but big bang announcements of multiple products does make me wonder.
Almost from 2 years ago:
https://news.ycombinator.com/item?id=9358843
But gist is, Amazon employees are generally discouraged from contributing to open source at all.
It makes business sense even if it's a shitty thing to do. The stronger an open source project is that provides the core functionality that your managed service provides the easier it is for a competitor to build the same thing. Amazon isn't as cutthroat as Oracle but they're certainly much less OSS friendly than many of their competitors.
That might or might not be a downside to you.
AWS's crustiness is exactly what I would expect from an agglomeration of adversarial teams each looking to minimize their own liability at the expense of everyone else. Given that they're still organized that way, the surprise would be if they turned the trend around, not if it continued.
As to some concerns about diluted focus, service teams operate with great deal of autonomy. From what I have seen, features are driven by teams, and often as a result of conversations with customers.
There are still a lot of talented and passionate people at Amazon who want to execute on other products. The S3 team is still growing 10 years later and they're still doing (IMO) cool stuff. I'm a devangelist though so I don't always get to see the inside of every team (not enough time). I do know that we all drink the customer focused kool-aide and we genuinely believe in it. Sorry if this all sounds like marketing.
To provide a performant and cost-effective experience, X-Ray does not collect data for every request that is sent to an application. Instead, it collects data for a statistically significant number of requests. X-Ray should not be used as an audit or compliance tool because it does not guarantee data completeness.
I imagine this being used for episodic debug cases, where one could turn up the sample rate and pay only for the traces captured/queried during an incident. But you would need to do your monitoring and trending separately.
I wouldn't be surprised if they eventually start integrating this better with CloudWatch for that reason, though it doesn't seem to be doing any of that today.
Disclosure: I work on TraceView (traceview.solarwinds.com) which is distributed tracing based APM product. We're inspired by Google Dapper and x-trace, both mentioned elsewhere in this thread.
I don't see the distinction you're making, as neither seems to record all traces for accurate audit. Am I missing it?
If you're looking specifically for the 100% audit trail case, I'd look at DynaTrace or potentially Instana.
The service works via the SDK's in various languages, that report tracing information to a local daemon that runs on the host, over UDP.
The daemon then batches the data, applies sampling (Which is configurable, all the way to 100% - report everything), and sends it en-masse to AWS.
Edit: See Sampling Rules section here - http://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-nod...
I concur, it was specifically stated that 100% sampling is an option (and is by default?)
> You can use X-Ray with applications written in Java, Node.js, and .NET that are deployed on these services. Support for AWS Lambda is coming soon.
> AWS X-Ray supports tracing for applications that are written in Node.js, Java, and .NET.
Edit: The blog post mentions they will be adding this to the other SDK's.
https://reinvent.awsevents.com/
Google, Apple, Microsoft, and Amazon each dominate the frontpage for several days when their respective developer conferences are ongoing or just completed.
Those products are primarily based on code profiling. For example, at Stackify we automatically profile key methods for dozens of common dependencies and frameworks to understand their usage and performance. Every SQL, NoSQL, caching, queuing providers and many other things. Plus app errors, logs, etc.
So the best I can tell from the AWS blog and docs is the answer is no its not a full APM. It appears to track how long a web request takes and any usage of the AWS services via their SDK. More of a lightweight service mapping of AWS services. So SQL database or HTTP calls probably aren't tracked.
In the future could they expand it? Sure. But for now it seems limited compared to a full blown APM product. Although this could be help for identifying performance problems with AWS services.
Matt - Founder of Stackify
X-Ray seems like a pretty basic service at this point but in my opinion the writing is on the wall for other APM providers. Amazon chose this announcement for a major slot so I expect they'll be investing in the service. As Bezos is often quoted as saying "your margin is my opportunity."
https://azure.microsoft.com/pl-pl/services/application-insig...
If there's no Python support - that shocks me.
The similarity to Dynatrace is that - like the PurePath - X-Ray enables distributed tracing. But the approach is different: whereas Dynatrace instruments your application using an agent^, X-Ray needs you to instrument an application using the provided SDK. Moreover, X-Ray seems to be limited to applications communicating via HTTP(S).
^ in the most cases