Skip to content

Conversation

@majanjua-amzn
Copy link
Contributor

Changes

Changed logic for rule name trace state propagation to ensure in the case that services are in different AWS accounts the root service's applied rule name continues to propagate. This allows for the account to boost effectively if the original AWS account is reached again in a downstream service, e.g. Service A in Acct1 -> Service B in Acct2 -> Service C in Acct1.

Testing

Deployed to demo environment in which all services (A, B, C) are running in an EC2 instance. Created a new sampling rule and restarted services A and C. As the SDK calls GetSamplingRules every 5 minutes, in this 5 minute window service B did not send any statistics to the new sampling rule or to any other but service C was still able to send statistics for boost to service A.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@majanjua-amzn majanjua-amzn self-assigned this Sep 15, 2025
@majanjua-amzn majanjua-amzn added the enhancement New feature or request label Sep 15, 2025
@majanjua-amzn majanjua-amzn requested a review from a team as a code owner September 15, 2025 19:05
@majanjua-amzn majanjua-amzn added X-Ray AWS X-Ray components traces Tracing related issues java Pull requests that update Java code labels Sep 15, 2025
@majanjua-amzn majanjua-amzn merged commit 1eea193 into release/v2.11.x Sep 15, 2025
4 of 8 checks passed
@majanjua-amzn majanjua-amzn deleted the as-2.11 branch September 15, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request java Pull requests that update Java code traces Tracing related issues X-Ray AWS X-Ray components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants