Skip to content

Commit 26167e7

Browse files
authored
fix an issue where VERCEL_OTEL_ENDPOINTS is not set (#157)
* fix an issue where `VERCEL_OTEL_ENDPOINTS` is not set * changeset
1 parent 11e27d2 commit 26167e7

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/eighty-ligers-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vercel/otel": minor
3+
---
4+
5+
Fixes an issue where VERCEL_OTEL_ENDPOINTS is not set

packages/otel/src/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ function parseSpanProcessor(
454454
env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT ||
455455
env.OTEL_EXPORTER_OTLP_ENDPOINT
456456
) {
457-
return new BatchSpanProcessor(parseTraceExporter(env));
457+
processors.push(new BatchSpanProcessor(parseTraceExporter(env)));
458458
}
459459

460460
return processors;

0 commit comments

Comments
 (0)