diff --git a/server/otel.js b/server/otel.js index 668a6de..7fde0ac 100644 --- a/server/otel.js +++ b/server/otel.js @@ -27,7 +27,7 @@ const sdk = new NodeSDK({ exportIntervalMillis: 15000, }), logRecordProcessors: [ - new BatchLogRecordProcessor(new OTLPLogExporter({ url: `${endpoint}/v1/logs` })), + new BatchLogRecordProcessor({ exporter: new OTLPLogExporter({ url: `${endpoint}/v1/logs` }) }), ], instrumentations: [ getNodeAutoInstrumentations({