fix(http): send a request id and carry the server correlation id to failures (03-03)
V3 read the response x-correlation-id and dropped it, and untraced requests sent no id, so a support reference could not be matched to a server log. Each logical execution now sends one x-correlation-id; failures carry the echoed value as requestId and diagnostics record it as correlation_id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9894a70f04
commit
c5da3cf001
@@ -246,6 +246,10 @@ export function createHttpObservationProjector(
|
||||
...safeAttributes,
|
||||
operation: observation.diagnosticsOperation,
|
||||
outcome: observation.outcome,
|
||||
// 03-03. Request-scoped: diagnostics may carry it, telemetry never.
|
||||
...(observation.correlationId === undefined
|
||||
? {}
|
||||
: { correlation_id: observation.correlationId }),
|
||||
},
|
||||
});
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user