فهرست منبع

update default settings for otel

Yuki Takei 1 سال پیش
والد
کامیت
c7f7649e29
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 0
      apps/app/.env.production
  2. 0 1
      apps/app/src/features/opentelemetry/server/node-sdk-configuration.ts

+ 4 - 0
apps/app/.env.production

@@ -4,3 +4,7 @@
 ##
 FORMAT_NODE_LOG=false
 MIGRATIONS_DIR=dist/migrations/
+
+# OpenTelemetry Configuration
+OTEL_TRACES_SAMPLER_ARG=0.1
+

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

@@ -29,7 +29,6 @@ export const generateNodeSDKConfiguration = (serviceInstanceId?: string): Config
       traceExporter: new OTLPTraceExporter(),
       metricReader: new PeriodicExportingMetricReader({
         exporter: new OTLPMetricExporter(),
-        exportIntervalMillis: 10000,
       }),
       instrumentations: [getNodeAutoInstrumentations({
         '@opentelemetry/instrumentation-bunyan': {