Skip to content

Commit dcd100b

Browse files
chore: add changeset for TRIGGER_WORKER_INSTANCE_NAME env forward
1 parent a4de2d0 commit dcd100b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Forward `TRIGGER_WORKER_INSTANCE_NAME` into the managed run process env
6+
7+
The Kubernetes workload manager already injects `TRIGGER_WORKER_INSTANCE_NAME`
8+
(= `spec.nodeName`) into the run-controller container via the downward API, but
9+
the managed run worker is forked with an explicit env allowlist
10+
(`RunnerEnv.gatherProcessEnv()`) that dropped it. As a result the run process
11+
could not attach the node as an OpenTelemetry `host.name` resource attribute, so
12+
spans/logs exported to an off-node OTLP collector had no host (Datadog tags these
13+
`issue_type:empty_hostname`). This forwards the value so `trigger.config.ts`
14+
telemetry (or the worker itself) can surface the node/host.

0 commit comments

Comments
 (0)