Hi team,
I am trying to config the elastic ci stack to send tracing data to Xray using OpenTelemetry backend.
I was able to config and send the trace to logging, however, when trying to add xray as another exporter, it seems that the traceId is not in the correct format (i.e. date component is way in the past). For example, one of the trace segement is
{
"name": "agent environment hook",
"id": "f228bdc87426ef9f",
"start_time": 1698107995.2174475,
"service": {
"version": "3.56.0"
},
"trace_id": "1-470965de-abdd7b05e92bab26e2c9c2c0",
"end_time": 1698107995.668894,
"fault": false,
"error": false,
"throttle": false,
"aws": {
"xray": {
"auto_instrumentation": false
}
},
"metadata": {
"default": {
"analytics.event": "true",
"hook.command": "/etc/buildkite-agent/hooks/environment",
"hook.name": "environment",
"hook.type": "agent"
}
},
"parent_id": "ba4b42ec09e4a565",
"type": "subsegment"
}
where the date of the trace_id is 470965de, which is 7 October 2007. As a result, xray api response an error
{
buildkite-agent-collector-1 | ErrorCode: "InvalidTraceId",
buildkite-agent-collector-1 | Id: "f228bdc87426ef9f",
buildkite-agent-collector-1 | Message: "Invalid segment. ErrorCode: InvalidTraceId"
buildkite-agent-collector-1 | }
I wonder if there is something I am missing here, or this could be a bug, could you please help to shed some light, that would be appreciated.
Thank you,
Nam