Skip to content

How to create subsegment for parallel batch processing? #4026

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

You must be logged in to vote

No, you'll have to manually create these subsegments since the AWS X-Ray SDK always creates subsegments as children of the current active segment - this is something we don't control in Powertools for AWS but it's done by the SDK.

For this type of case, I'd suggest to not instrument the AWS SDK client, and manually create the subsegments you need using the pattern described at the link you shared.

We're unlikely to invest any more efforts in this version of Tracer unless there's a bug, and instead are actively looking at moving to an OpenTelemetry-based solution - but for now I don't have an ETA that I can share.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gabrielcolson
Comment options

Answer selected by gabrielcolson
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