-
Notifications
You must be signed in to change notification settings - Fork 144
"failed to send data to X-Ray daemon." -> "Message too long" #201
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
Comments
Hi tobiasmcnulty, I'd suggest using the streaming threshold in the recorder first. The idea is that subsegments can be batched and sent independently of their segment, as long as they're complete. This can help alleviate the UDP size limit when working with large segment documents. We have similar logic on Lambda, where we force every subsegment to send when complete So, I'd expect something like the following to work...
Let me know if this helps at all. Thanks! |
@awssandra It looks as if the streaming_threshold won't be used unless it's truthy:
So I wouldn't think setting it to 0 would have any effect. Would setting it to 1 or -1 be almost as good? This might be a bug - maybe it should be checking if streaming_threshold is not None. (I work with @tobiasmcnulty.) |
Hi dpoirier, That looks like a bug to me - zero should be an acceptable value (I am most knowledgeable of the Node SDK so here is the setting logic there). Setting to "1" should work in a very similar fashion. Sorry for the issue, |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in next 7 days. Thank you for your contributions. |
We've enabled the
record_full_document
parameter for the pymongo patch method (https://github.com/aws/aws-xray-sdk-python/blob/master/aws_xray_sdk/ext/pymongo/patch.py#L12-L14) and are seeing the below exception when attempting to record a large query/response from mongo.Would it be possible to update the UDP emitter to truncate the data or split it up so we can see at least some of it in the console?
Many thanks!
The text was updated successfully, but these errors were encountered: