Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lambda] Do not propagate trace header if dummy subsegment #404

Merged
merged 1 commit into from
May 28, 2024

Conversation

majanjua-amzn
Copy link
Contributor

Make it so that if the current entity is a dummy subsegment, we do not propagate the trace header from this. Instead, rely on AWS SDK to propagate the trace header in the environment. This makes it so that the trace ID of the context is appropriately propagated instead of an empty/default trace ID.

Description of changes:

  • Update any additions of the trace header that rely on subsegments to check for no op subsegments
  • Update tests accordingly

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 requested a review from a team as a code owner May 28, 2024 18:43
Copy link
Contributor

@wangzlei wangzlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wangzlei wangzlei merged commit d1ff46f into aws:master May 28, 2024
6 checks passed
majanjua-amzn added a commit to majanjua-amzn/aws-xray-sdk-java that referenced this pull request Jul 12, 2024
wangzlei pushed a commit that referenced this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants