Skip to content

Commit 340235b

Browse files
Copilotpelikhan
andauthored
fix: add logging of INPUT_TRACE_ID in action_setup_otlp.cjs
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/165b2769-a20c-4f03-bd15-324e279a0b2c Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent a86b33b commit 340235b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

actions/setup/js/action_setup_otlp.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ async function run() {
4343
// through GitHub Actions expression evaluation is unreliable.
4444
const inputTraceId = (process.env.INPUT_TRACE_ID || "").trim().toLowerCase();
4545
if (inputTraceId) {
46-
console.log(`[otlp] using input trace-id: ${inputTraceId}`);
46+
console.log(`[otlp] INPUT_TRACE_ID=${inputTraceId} (will reuse activation trace)`);
47+
} else {
48+
console.log("[otlp] INPUT_TRACE_ID not set, a new trace ID will be generated");
4749
}
4850

4951
if (!endpoint) {
@@ -54,6 +56,8 @@ async function run() {
5456

5557
const { traceId, spanId } = await sendJobSetupSpan({ startMs, traceId: inputTraceId || undefined });
5658

59+
console.log(`[otlp] resolved trace-id=${traceId}`);
60+
5761
if (endpoint) {
5862
console.log(`[otlp] setup span sent (traceId=${traceId}, spanId=${spanId})`);
5963
}

0 commit comments

Comments
 (0)