File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
aws-distro-opentelemetry-node-autoinstrumentation/src/exporter/otlp/aws Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export class OTLPAwsLogExporter extends OTLPProtoLogExporter {
6565 }
6666
6767 const shouldCompress = this . compression && this . compression !== CompressionAlgorithm . NONE ;
68-
68+
6969 if ( shouldCompress ) {
7070 serializedLogs = gzipSync ( serializedLogs ) ;
7171 }
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ export class OTLPAwsSpanExporter extends OTLPProtoTraceExporter {
4444 }
4545
4646 /**
47- * Overrides the upstream implementation of export.
48- * All behaviors are the same except if the endpoint is an XRay OTLP endpoint, we will sign the request with SigV4
47+ * Overrides the upstream implementation of export.
48+ * All behaviors are the same except if the endpoint is an XRay OTLP endpoint, we will sign the request with SigV4
4949 * in headers before sending it to the endpoint.
5050 * To prevent performance degradation from serializing and compressing data twice, we handle serialization and compression
5151 * locally in this exporter and pass the pre-processed data to the upstream export functionality.
@@ -62,7 +62,7 @@ export class OTLPAwsSpanExporter extends OTLPProtoTraceExporter {
6262 }
6363
6464 const shouldCompress = this . compression && this . compression !== CompressionAlgorithm . NONE ;
65-
65+
6666 if ( shouldCompress ) {
6767 serializedSpans = gzipSync ( serializedSpans ) ;
6868 }
You can’t perform that action at this time.
0 commit comments