aws/aws-xray-sdk-ruby

UDP Packet size limit

bigplants opened this issue · 1 comments

Hi,

I faced the bellow warning in Xray SDK log:

W, [2019-07-01T03:04:35.414605 #22440]  WARN -- : failed to send payload due to Message too long - send(2)

My segment entry is over 65507bytes that is UDP payload size limit.

Do you have any solutions like splitting or cutting segment?

@bigplants Apologies for the late response. Yes the UDP limit is 64 kb so you are hitting that threshold. One way to get around this is by reducing the default threshold in the streamer to below 50 and see if that works. This will increase the frequency of the payload to be sent more often.

You can refer to this code here.

Meanwhile can you describe your use case? Are you trying to add additional payload to your segment ?