Skip to content
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

X-Ray trace finalization fails when serialized size exceeds 64K #925

Open
bpholt opened this issue Dec 2, 2023 · 1 comment
Open

X-Ray trace finalization fails when serialized size exceeds 64K #925

bpholt opened this issue Dec 2, 2023 · 1 comment

Comments

@bpholt
Copy link
Member

bpholt commented Dec 2, 2023

When serializing a trace using the X-Ray backend, serialized traces larger than 64KB are rejected by the X-Ray daemon and a java.net.SocketException: Message too long is raised from the DatagramSocket, because X-Ray enforces a maximum segment document size of 64KB.

The documentation suggests "send[ing] subsegments separately … to avoid exceeding the maximum segment document size (64 kB)," but we currently only send data if it's the parent segment.

@bpholt
Copy link
Member Author

bpholt commented Dec 2, 2023

I've been playing around with how this could be adjusted but I don't have any brilliant ideas yet. Unfortunately the structure of XRaySpan doesn't lend itself to easily generating arbitrarily large trees for test cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant