1 Answer
- Newest
- Most votes
- Most comments
0
Hello,
For context, this is happening because the daemon is not running in your dev environment and so the SDK cannot contact it to retrieve centralized sampling rules. Disabling the SDK a known feature request that we have in our backlog, we hope to add support for an environment variable that can disable the SDK soon: https://github.com/aws/aws-xray-sdk-java/issues/178
As a workaround, you could have your own development environment variable and set the sampling strategy to a no-op strategy using it:
AWSXRayRecorderBuilder builder = AWSXRayRecorderBuilder.standard();
if (inDevEnvironment) {
builder.withSamplingStrategy(new NoSamplingStrategy());
}
answered 4 years ago
Relevant content
- asked 2 years ago
- asked 5 months ago
- asked 6 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago