diff --git a/nodejs/packages/layer/src/wrapper.ts b/nodejs/packages/layer/src/wrapper.ts index 81ff278c43..39c8e82d26 100644 --- a/nodejs/packages/layer/src/wrapper.ts +++ b/nodejs/packages/layer/src/wrapper.ts @@ -412,7 +412,7 @@ async function initializeTracerProvider( } if (exporters.length) { - config.spanProcessors = []; + config.spanProcessors = config.spanProcessors || []; exporters.map(exporter => { if (exporter instanceof ConsoleSpanExporter) { config.spanProcessors?.push(new SimpleSpanProcessor(exporter));