-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix(cli-v3): forward TRIGGER_WORKER_INSTANCE_NAME into the managed run process env #4213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
brentshulman-silkline
wants to merge
2
commits into
triggerdotdev:main
from
brentshulman-silkline:fix/forward-worker-instance-name-to-run-process
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| "trigger.dev": patch | ||
| --- | ||
|
|
||
| Forward `TRIGGER_WORKER_INSTANCE_NAME` into the managed run process env | ||
|
|
||
| The Kubernetes workload manager already injects `TRIGGER_WORKER_INSTANCE_NAME` | ||
| (= `spec.nodeName`) into the run-controller container via the downward API, but | ||
| the managed run worker is forked with an explicit env allowlist | ||
| (`RunnerEnv.gatherProcessEnv()`) that dropped it. As a result the run process | ||
| could not attach the node as an OpenTelemetry `host.name` resource attribute, so | ||
| spans/logs exported to an off-node OTLP collector had no host (Datadog tags these | ||
| `issue_type:empty_hostname`). This forwards the value so `trigger.config.ts` | ||
| telemetry (or the worker itself) can surface the node/host. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changeset description uses internal jargon instead of user-facing language
The changeset body names internal infrastructure and code paths (
RunnerEnv.gatherProcessEnv(), Kubernetes downward API, Datadog, OTLP collector) (.changeset/forward-worker-instance-name.md:5-14), violating the repo rule that changeset descriptions must be written for users, not maintainers.Impact: Internal implementation details will appear verbatim in public release notes, confusing end users.
Repo rule violation details
AGENTS.md states: "Write the description for users, not maintainers. Both changesets and .server-changes/ notes ship verbatim in user-visible release notes. Lead with what changed for the user - one plain sentence describing behavior, not implementation, and never naming internal tools or infra."
The
.server-changes/README.md:47-48reinforces: "Never name internal tools or infra. Observability stacks, internal services, infra components, monitoring backends, CI surfaces, AWS specifics - none of these belong in user-facing notes."The current changeset body mentions: Kubernetes workload manager, downward API,
RunnerEnv.gatherProcessEnv(), OpenTelemetry, OTLP collector, Datadog,trigger.config.tstelemetry internals. All of these are internal implementation details.Was this helpful? React with 👍 or 👎 to provide feedback.