fix: expose provider retry diagnostics in otel (#215)
* fix: expose provider retry diagnostics in otel * fix: place retry diagnostics in notification attributes
This commit is contained in:
@@ -1024,6 +1024,14 @@ function emitRunEventOtelSpan(type: RunEvent["type"], payload: JsonRecord, run:
|
||||
threadId: stringJsonValue(payload.threadId),
|
||||
turnId: stringJsonValue(payload.turnId),
|
||||
willRetry: typeof payload.willRetry === "boolean" ? payload.willRetry : null,
|
||||
retryAttempt: numberJsonValue(payload.retryAttempt),
|
||||
retryMax: numberJsonValue(payload.retryMax),
|
||||
retryExhausted: typeof payload.retryExhausted === "boolean" ? payload.retryExhausted : null,
|
||||
retryBackoffMs: numberJsonValue(payload.retryBackoffMs),
|
||||
upstreamHttpStatus: numberJsonValue(payload.upstreamHttpStatus),
|
||||
upstreamHost: stringJsonValue(payload.upstreamHost),
|
||||
providerErrorClass: stringJsonValue(payload.providerErrorClass),
|
||||
errorSummary: boundedJsonString(payload.errorSummary, 300),
|
||||
message: boundedJsonString(payload.message, 300),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user