Skip to content

Commit 9601183

Browse files
committed
Reassign exporterName with lowercased and trimmed value
1 parent f2af371 commit 9601183

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
@@ -372,7 +372,7 @@ function getExportersFromEnv(): SpanExporter[] | null {
372372
]);
373373
const exporters: SpanExporter[] = [];
374374
process.env.OTEL_TRACES_EXPORTER.split(',').map(exporterName => {
375-
exporterName.toLowerCase().trim();
375+
exporterName = exporterName.toLowerCase().trim();
376376
const exporter = stringToExporter.get(exporterName);
377377
if (exporter) {
378378
exporters.push(exporter());

0 commit comments

Comments
 (0)