Skip to content

Commit 64862db

Browse files
iFlyinqericallam
andauthored
Update dotEnv.ts to ignore OTEL_EXPORTER_OTLP_ENDPOINT as well (#1307)
* Update dotEnv.ts * Create four-buttons-run.md --------- Co-authored-by: Eric Allam <[email protected]>
1 parent c65d482 commit 64862db

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/four-buttons-run.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Ignore OTEL_EXPORTER_OTLP_ENDPOINT environment variable from `.env` files, to prevent the internal OTEL_EXPORTER_OTLP_ENDPOINT being overwritten with a user-supplied value.

packages/cli-v3/src/utilities/dotEnv.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export function resolveDotEnvVars(cwd?: string, envFile?: string) {
2121
// remove TRIGGER_API_URL and TRIGGER_SECRET_KEY, since those should be coming from the worker
2222
delete result.TRIGGER_API_URL;
2323
delete result.TRIGGER_SECRET_KEY;
24+
delete result.OTEL_EXPORTER_OTLP_ENDPOINT;
2425

2526
return result;
2627
}

0 commit comments

Comments
 (0)