Skip to content

Is there a way to achieve correct segment parent-child relationship with batch utility and aws sdk clients captured with the tracer utility? #4185

Closed Answered by dreamorosi
artkhod asked this question in Q&A
Discussion options

You must be logged in to vote

To follow up on my previous comment, I think I found a workaround that requires a bit of custom implementation but that achieves what you're looking for.

Before using it though, please be aware that this is a proof of concept I made only to demonstrate the overall logic involved to attach AWS SDK operation's metadata to a X-Ray segment. If you decide to adopt it, I'd highly recommend you test it with the whole range of SDK operations you want to trace and make sure it doesn't break your workload - I have only tested this manually with one single operation.

With that out of the way, I went and reverse engineered the way the X-Ray SDK patches AWS SDK clients and I got to a working solution …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dreamorosi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants