Skip to content

Commit

Permalink
fix: set flushIntervalSeconds to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuGilet authored Mar 4, 2025
1 parent e011ba4 commit fec2e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/monitoring/infrastructure/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class Metrics {
constructor({ config }) {
if (!config.featureToggles.isDirectMetricsEnabled) {
logger.info('Metric initialisation : no reporter => no metrics sent');
metrics.init({ reporter: new metrics.reporters.NullReporter() });
metrics.init({ reporter: new metrics.reporters.NullReporter(), flushIntervalSeconds: 0 });
}

if (config.featureToggles.isDirectMetricsEnabled) {
Expand Down

0 comments on commit fec2e27

Please sign in to comment.