fix: show tool and retry fields in otel trace (#575)

* fix: wait longer for web-probe chat submit trace

* fix: show tool and retry fields in otel trace

---------

Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
Lyon
2026-06-21 14:28:47 +08:00
committed by GitHub
parent 342b4685a5
commit 71435b9be4
+24 -4
View File
@@ -1321,9 +1321,14 @@ LIMIT = ${options.limit}
IMPORTANT_ATTRS = [
"traceId", "otel.trace_id", "agentrun.stage", "runId", "commandId",
"sessionId", "turnId", "threadId", "runnerJobId", "failureKind", "willRetry",
"retryAttempt", "retryMax", "retryExhausted", "retryBackoffMs",
"upstreamHttpStatus", "upstreamHost", "providerErrorClass", "errorSummary",
"terminalStatus", "phase", "message", "http.route", "http.status_code",
"http.method", "eventType", "runnerId", "attemptId", "backendProfile",
"sourceCommit", "jobName", "podName", "logPath", "storageKind",
"sourceCommit", "jobName", "podName", "logPath",
"toolName", "type", "itemType", "itemId", "status", "exitCode",
"durationMs", "cwd", "processId", "command", "commandFingerprint",
"outputSummary", "outputBytes", "outputTruncated", "storageKind",
"storagePvcName", "storagePvcPhase", "resumeMode", "rolloutId",
"returnedEvents", "sinceSeq", "afterSeq", "limit", "fromSeq", "toSeq",
"totalEvents", "hasMore", "fullTraceLoaded", "rawEventCount",
@@ -1563,9 +1568,14 @@ DEADLINE = time.time() + 50
IMPORTANT_ATTRS = [
"traceId", "otel.trace_id", "agentrun.stage", "runId", "commandId",
"sessionId", "turnId", "threadId", "runnerJobId", "failureKind", "willRetry",
"retryAttempt", "retryMax", "retryExhausted", "retryBackoffMs",
"upstreamHttpStatus", "upstreamHost", "providerErrorClass", "errorSummary",
"terminalStatus", "phase", "message", "http.route", "http.status_code",
"http.method", "eventType", "runnerId", "attemptId", "backendProfile",
"sourceCommit", "jobName", "podName", "logPath", "storageKind",
"sourceCommit", "jobName", "podName", "logPath",
"toolName", "type", "itemType", "itemId", "status", "exitCode",
"durationMs", "cwd", "processId", "command", "commandFingerprint",
"outputSummary", "outputBytes", "outputTruncated", "storageKind",
"storagePvcName", "storagePvcPhase", "resumeMode", "rolloutId",
"returnedEvents", "sinceSeq", "afterSeq", "limit", "fromSeq", "toSeq",
"totalEvents", "hasMore", "fullTraceLoaded", "rawEventCount",
@@ -1875,9 +1885,14 @@ DEADLINE = time.time() + 50
IMPORTANT_ATTRS = [
"traceId", "otel.trace_id", "agentrun.stage", "runId", "commandId",
"sessionId", "turnId", "threadId", "runnerJobId", "failureKind", "willRetry",
"retryAttempt", "retryMax", "retryExhausted", "retryBackoffMs",
"upstreamHttpStatus", "upstreamHost", "providerErrorClass", "errorSummary",
"terminalStatus", "phase", "message", "http.route", "http.status_code",
"http.method", "eventType", "runnerId", "attemptId", "backendProfile",
"sourceCommit", "jobName", "podName", "logPath", "storageKind",
"sourceCommit", "jobName", "podName", "logPath",
"toolName", "type", "itemType", "itemId", "status", "exitCode",
"durationMs", "cwd", "processId", "command", "commandFingerprint",
"outputSummary", "outputBytes", "outputTruncated", "storageKind",
"storagePvcName", "storagePvcPhase", "resumeMode", "rolloutId",
"returnedEvents", "sinceSeq", "afterSeq", "limit", "fromSeq", "toSeq",
"totalEvents", "hasMore", "fullTraceLoaded", "rawEventCount",
@@ -2077,7 +2092,12 @@ def tiny_span(item):
"http.route", "http.status_code", "http.method", "status",
"terminalStatus", "eventType", "returnedEvents", "sinceSeq",
"fromSeq", "toSeq", "totalEvents", "hasMore", "fullTraceLoaded",
"afterSeq", "rawEventCount", "failureKind",
"afterSeq", "rawEventCount", "failureKind", "willRetry",
"retryAttempt", "retryMax", "retryExhausted", "retryBackoffMs",
"upstreamHttpStatus", "upstreamHost", "providerErrorClass", "errorSummary",
"toolName", "type", "itemType", "itemId", "status", "exitCode",
"durationMs", "cwd", "processId", "command", "commandFingerprint",
"outputSummary", "outputBytes", "outputTruncated",
):
if key in attrs:
keep_attrs[key] = attrs[key]