Skip to content

Commit

Permalink
Fix grpc propagation with XRay propagator
Browse files Browse the repository at this point in the history
  • Loading branch information
dweitzman-codaio authored Dec 13, 2024
1 parent 91c9089 commit 35dbd46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion propagators/propagator-aws-xray/src/AWSXRayPropagator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export class AWSXRayPropagator implements TextMapPropagator {
if (!relevantHeaderKey) {
return INVALID_SPAN_CONTEXT;
}
const traceHeader = getter.get(carrier, relevantHeaderKey);
let traceHeader = getter.get(carrier, relevantHeaderKey);
traceHeader = Array.isArray(traceHeader) ? traceHeader[0] : traceHeader;

if (!traceHeader || typeof traceHeader !== 'string') {
return INVALID_SPAN_CONTEXT;
Expand Down

0 comments on commit 35dbd46

Please sign in to comment.