I'm trying to write data to the awsxrayreceiver. The data is from the trace segment.
Here are the steps that I did:
- Getting the trace summaries
- Using the trace IDs from the trace summary to do the batch get traces
- Sending the trace segment document by converting it to a
[]byte
But I'm getting some errors when sending data. The UDP port is already accessible.
{"kind": "receiver", "name": "awsxray", "pipeline": "traces", "error": "unable to split incoming data as header and segment, incoming bytes: [88]"}
{"kind": "receiver", "name": "awsxray", "pipeline": "traces", "error": "read from UDP socket: read udp [::]:2000: use of closed network connection"}
Even tried to check if the connection will succeed.
nc -vzu ip_address 2000
Result: Connection to ip_address 2000 port [udp/*] succeeded!
Is there something wrong with what I'm doing?