Skip to content

Commit 52e114c

Browse files
authored
clarifying comment
1 parent 87f1ffb commit 52e114c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/src/otlp-aws-span-exporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class OTLPAwsSpanExporter extends OTLPProtoTraceExporter {
9393
await super.export(items, resultCallback);
9494
}
9595

96-
// Need to ensure old SigV4 headers do not remain when we inject new SigV4 authorization headers.
96+
// Removes Sigv4 headers from old headers to avoid accidentally copying them to the new headers
9797
private removeSigV4Headers(headers: Record<string, string>) {
9898
const newHeaders: Record<string, string> = {};
9999
const sigV4Headers = ['x-amz-date', 'authorization', 'x-amz-content-sha256', 'x-amz-security-token'];

0 commit comments

Comments
 (0)