Skip to content

Commit

Permalink
fix: Populate OpenTelemetry compression parameter (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrybell authored Jul 11, 2024
1 parent 4248b1a commit d91fe50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/autoscaler-common/counters_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,11 @@ async function initMetrics() {
logger.info(
`Counters mode: ${exporterMode} OTEL collector: ${process.env.OTEL_COLLECTOR_URL}`,
);
exporter = new OTLPMetricExporter({url: process.env.OTEL_COLLECTOR_URL});
exporter = new OTLPMetricExporter({
url: process.env.OTEL_COLLECTOR_URL,
// @ts-ignore -- CompressionAlgorithm.NONE (='none') is not exported.
compression: 'none',
});
} else {
exporterMode = ExporterMode.GCM_ONLY_FLUSHING;
logger.info(`Counters mode: ${exporterMode} using GCP monitoring`);
Expand Down

0 comments on commit d91fe50

Please sign in to comment.