Skip to content

Commit d26044a

Browse files
authored
fix: retain configured span processors (#1940)
1 parent 6c6c5a2 commit d26044a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodejs/packages/layer/src/wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ async function initializeTracerProvider(
412412
}
413413

414414
if (exporters.length) {
415-
config.spanProcessors = [];
415+
config.spanProcessors = config.spanProcessors || [];
416416
exporters.map(exporter => {
417417
if (exporter instanceof ConsoleSpanExporter) {
418418
config.spanProcessors?.push(new SimpleSpanProcessor(exporter));

0 commit comments

Comments
 (0)