-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
When I tried to use this argument with a traceparent set, overwrite the parent span ID with zeros but it sent them as a string somehow.
Script in question:
END_TIME=$(date +%s.%N)
otel-cli span \
--name "cron-deploy" \
--start "$START_TIME" \
--end "$END_TIME" \
--force-trace-id "$OTEL_CLI_FORCE_TRACE_ID" \
--force-span-id "$ROOT_SPAN_ID" \
--tp-ignore-env \
--attrs "script=run-update.sh,status=$FINAL_STATUS,script_used=$SCRIPT_USED"I fixed it by just removing the traceparent header all the way.
END_TIME=$(date +%s.%N)
unset TRACEPARENT
otel-cli span \
--name "cron-deploy" \
--start "$START_TIME" \
--end "$END_TIME" \
--force-trace-id "$OTEL_CLI_FORCE_TRACE_ID" \
--force-span-id "$ROOT_SPAN_ID" \
--attrs "script=run-update.sh,status=$FINAL_STATUS,script_used=$SCRIPT_USED"Metadata
Metadata
Assignees
Labels
No labels