Просмотр исходного кода

update default settings for otel

Yuki Takei 1 год назад
Родитель
Сommit
c7f7649e29

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