We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a customer calls beginSegmentWithSampling and the decision is made to not sample, a NoOpSegment is inserted into the context:
beginSegmentWithSampling
NoOpSegment
aws-xray-sdk-java/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/AWSXRayRecorder.java
Line 431 in d9d17ec
However, when a customer calls close on that segment, it does not remove it from the context, leaving the stale no-op segment in context:
close
aws-xray-sdk-java/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/entities/NoOpSegment.java
Line 391 in 5bab3e5
This is distinct from SegmentImpl.close(), which does clear it from the context:
SegmentImpl.close()
aws-xray-sdk-java/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/entities/SegmentImpl.java
Line 200 in 5bab3e5
We should consider removing the no-op segment from the context when closing it.
closing
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Backgroumd
When a customer calls
beginSegmentWithSampling
and the decision is made to not sample, aNoOpSegment
is inserted into the context:aws-xray-sdk-java/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/AWSXRayRecorder.java
Line 431 in d9d17ec
However, when a customer calls
close
on that segment, it does not remove it from the context, leaving the stale no-op segment in context:aws-xray-sdk-java/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/entities/NoOpSegment.java
Line 391 in 5bab3e5
This is distinct from
SegmentImpl.close()
, which does clear it from the context:aws-xray-sdk-java/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/entities/SegmentImpl.java
Line 200 in 5bab3e5
Solution
We should consider removing the no-op segment from the context when
closing
it.The text was updated successfully, but these errors were encountered: