Преглед на файлове

change exportIntervalMillis

Yuki Takei преди 10 месеца
родител
ревизия
71da43cfc2
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      apps/app/src/features/opentelemetry/server/node-sdk-configuration.ts

+ 1 - 0
apps/app/src/features/opentelemetry/server/node-sdk-configuration.ts

@@ -41,6 +41,7 @@ export const generateNodeSDKConfiguration = (opts?: Option): Configuration => {
       traceExporter: new OTLPTraceExporter(),
       metricReader: new PeriodicExportingMetricReader({
         exporter: new OTLPMetricExporter(),
+        exportIntervalMillis: 300000, // 5 minute
       }),
       instrumentations: [getNodeAutoInstrumentations({
         '@opentelemetry/instrumentation-bunyan': {