소스 검색

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': {