You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use sqs batch utility with 10 records and Tracer at the same time without losing traces.
Current Behavior
@pcolazurdo discovered an issue when using Batch processing utility when you have multiple exceptions or multiple records, where X-Ray fails silently and doesn't send the trace data via UDP as expected.
Could confirm the issue with a minimal reproduction where the record handler would send back ~100K of data. Changing the streaming_threshold to 0 for the xray_recorder solved the issue.
There is a small performance penalty (96ms vs 93ms @ p90, 62ms vs 58ms @ p50 in my tests) to implement this change. In itself, this is not a big impact, but we need to balance this out with the probability that someone will be impacted by this issue.
What were you trying to accomplish? Traces not appearing when processing multiple records
This is documented here: aws/aws-xray-sdk-python#201
Expected Behavior
Use
sqs batch utility
with 10 records and Tracer at the same time without losing traces.Current Behavior
@pcolazurdo discovered an issue when using Batch processing utility when you have multiple exceptions or multiple records, where X-Ray fails silently and doesn't send the trace data via UDP as expected.
Possible Solution
Send segments as they're complete instead of batching all of them: https://github.com/srprash/aws-xray-sdk-python/blob/9b2704dd534419b3dc2ae6e9b1793e1fc8a405c9/tests/test_recorder.py#L65
Need to experiment whether that has any negative perf impact when enabled
Steps to Reproduce (for bugs)
sam init --location https://github.com/aws-samples/cookiecutter-aws-sam-python
Environment
The error only appears when debugging is enabled.
# paste logs here
The text was updated successfully, but these errors were encountered: