René's URL Explorer Experiment


Title: Kubernetes: run telemetry has empty host — TRIGGER_WORKER_INSTANCE_NAME (spec.nodeName) not forwarded into the run process · Issue #4214 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: Kubernetes: run telemetry has empty host — TRIGGER_WORKER_INSTANCE_NAME (spec.nodeName) not forwarded into the run process · Issue #4214 · triggerdotdev/trigger.dev

X Title: Kubernetes: run telemetry has empty host — TRIGGER_WORKER_INSTANCE_NAME (spec.nodeName) not forwarded into the run process · Issue #4214 · triggerdotdev/trigger.dev

Description: Summary On self-hosted Kubernetes, task-run spans and logs exported over OTLP to an off-node collector (e.g. a centralized OpenTelemetry/Datadog Agent) arrive with no host. Datadog tags every such span issue_type:empty_hostname. There is...

Open Graph Description: Summary On self-hosted Kubernetes, task-run spans and logs exported over OTLP to an off-node collector (e.g. a centralized OpenTelemetry/Datadog Agent) arrive with no host. Datadog tags every such ...

X Description: Summary On self-hosted Kubernetes, task-run spans and logs exported over OTLP to an off-node collector (e.g. a centralized OpenTelemetry/Datadog Agent) arrive with no host. Datadog tags every such ...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/4214

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Kubernetes: run telemetry has empty host — TRIGGER_WORKER_INSTANCE_NAME (spec.nodeName) not forwarded into the run process","articleBody":"## Summary\n\nOn self-hosted **Kubernetes**, task-run spans and logs exported over OTLP to an **off-node** collector (e.g. a centralized OpenTelemetry/Datadog Agent) arrive with **no host**. Datadog tags every such span `issue_type:empty_hostname`. There is currently no supported way for a user's `trigger.config.ts` telemetry `resource` to recover the node, because the node identity never reaches the run process — even though the supervisor already puts it on the pod.\n\n## Root cause\n\nThe Kubernetes workload manager already injects the node name into the **run-controller container** via the downward API — `apps/supervisor/src/workloadManager/kubernetes.ts`:\n\n```ts\n{\n  name: \"TRIGGER_WORKER_INSTANCE_NAME\",\n  valueFrom: { fieldRef: { fieldPath: \"spec.nodeName\" } },\n},\n```\n\nBut the actual task-run worker is `fork()`ed with an **explicit, replaced env** (not the container's `process.env`):\n\n- `packages/cli-v3/src/entryPoints/managed/taskRunProcessProvider.ts` → `buildProcessEnvironment()` builds the child env as `{ ...taskRunEnv, ...this.env.gatherProcessEnv(), TRIGGER_MACHINE_ID, HEARTBEAT_INTERVAL_MS }`.\n- `packages/cli-v3/src/executions/taskRunProcess.ts` → `fork(..., { env: fullEnv })` where `fullEnv = { ...$env, OTEL_IMPORT_HOOK_INCLUDES, NODE_OPTIONS, PATH, TRIGGER_PROCESS_FORK_START_TIME, TRIGGER_WARM_START, TRIGGERDOTDEV }`.\n- `packages/cli-v3/src/entryPoints/managed/env.ts` → `RunnerEnv.gatherProcessEnv()` returns a **fixed allowlist**: `NODE_ENV, NODE_EXTRA_CA_CERTS, OTEL_EXPORTER_OTLP_ENDPOINT, TRIGGER_OTEL_EXPORTER_OTLP_ENDPOINT, UV_USE_IO_URING`.\n\nSo in the run process, `process.env.TRIGGER_WORKER_INSTANCE_NAME` (and `HOSTNAME`) are **undefined**. The node name exists on the pod but is dropped before it can be attached to the OTel resource built from `config.telemetry.resource`.\n\nFor comparison, the **Docker** workload manager already forwards it to the runner (`apps/supervisor/src/workloadManager/docker.ts`): `` `TRIGGER_WORKER_INSTANCE_NAME=${env.TRIGGER_WORKER_INSTANCE_NAME}` `` — so k8s is the inconsistent path here.\n\n## Requested change (one line)\n\nForward `TRIGGER_WORKER_INSTANCE_NAME` from the run process env allowlist. It is already in the `Env` schema and has a getter (`get TRIGGER_WORKER_INSTANCE_NAME()`), so this is additive and safe (the existing `undefined` filter drops it when unset).\n\n**File:** `packages/cli-v3/src/entryPoints/managed/env.ts`, method `RunnerEnv.gatherProcessEnv()`\n\n```diff\n     const $env = {\n       NODE_ENV: this.NODE_ENV,\n       NODE_EXTRA_CA_CERTS: this.NODE_EXTRA_CA_CERTS,\n       OTEL_EXPORTER_OTLP_ENDPOINT: this.OTEL_EXPORTER_OTLP_ENDPOINT,\n       TRIGGER_OTEL_EXPORTER_OTLP_ENDPOINT: this.OTEL_EXPORTER_OTLP_ENDPOINT,\n       UV_USE_IO_URING: this.UV_USE_IO_URING,\n+      // Node the run is executing on (spec.nodeName on k8s). Forwarding it lets\n+      // trigger.config.ts telemetry set an OTel host.name so run traces/logs\n+      // exported to an off-node collector are attributed to a host.\n+      TRIGGER_WORKER_INSTANCE_NAME: this.TRIGGER_WORKER_INSTANCE_NAME,\n     };\n```\n\nWith that, a user can map it in `trigger.config.ts`:\n\n```ts\nconst nodeName = process.env.TRIGGER_WORKER_INSTANCE_NAME; // = spec.nodeName on k8s\nexport default defineConfig({\n  telemetry: {\n    resource: resourceFromAttributes(\n      nodeName ? { \"host.name\": nodeName, \"k8s.node.name\": nodeName } : {}\n    ),\n    // ...\n  },\n});\n```\n\nwhich clears `empty_hostname` and attributes each run to its actual node.\n\n## Scope / risk\n\n- Additive: forwards one already-present, non-secret identity variable.\n- No behavior change when unset (existing `undefined` filter).\n- Aligns the k8s workload manager with the Docker one, which already forwards it.\n\n## Notes\n\nI have the exact change (plus a changeset) staged on a branch and am happy to open the PR once vouched — filing this as an issue first per the contributor policy. Reference branch/diff: PR #4213 (auto-closed by the unvouched-author check).\n","author":{"url":"https://github.com/brentshulman-silkline","@type":"Person","name":"brentshulman-silkline"},"datePublished":"2026-07-09T17:40:38Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/4214"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0fff1e61-4505-2dc1-a748-64924f0d04fc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB516:137FBB:4A56F5E:639DAF9:6AFAE23F
html-safe-noncee7e8262a9a32e4fa521c51e7bae68f5051c0f636c1fe9fac0c0c1dac44d57ef7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTE2OjEzN0ZCQjo0QTU2RjVFOjYzOURBRjk6NkFGQUUyM0YiLCJ2aXNpdG9yX2lkIjoiMzc2OTAwNTIyMDQ3NDU3NzQ3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacddd304422ee64c9a9158294f4bcf6f8c0fff50652dfe781817d1936f6ef398ad
hovercard-subject-tagissue:4848544211
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/4214/issue_layout
twitter:imagehttps://opengraph.githubassets.com/102aa59efefdef9ecf1568cfe46889521bd9d74b89a22457c0a36cb88d2ab2f7/triggerdotdev/trigger.dev/issues/4214
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/102aa59efefdef9ecf1568cfe46889521bd9d74b89a22457c0a36cb88d2ab2f7/triggerdotdev/trigger.dev/issues/4214
og:image:altSummary On self-hosted Kubernetes, task-run spans and logs exported over OTLP to an off-node collector (e.g. a centralized OpenTelemetry/Datadog Agent) arrive with no host. Datadog tags every such ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrentshulman-silkline
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a7ae932999cc6d511008dbf980ff9efad2a31f7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/4214#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F4214
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F4214
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4214
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4214
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4214
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests66 (66)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4214
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4214
Kubernetes: run telemetry has empty host — TRIGGER_WORKER_INSTANCE_NAME (spec.nodeName) not forwarded into the run processhttps://github.com/triggerdotdev/trigger.dev/issues/4214#top
https://github.com/brentshulman-silkline
brentshulman-silklinehttps://github.com/brentshulman-silkline
on Jul 9, 2026https://github.com/triggerdotdev/trigger.dev/issues/4214#issue-4848544211
#4213https://github.com/triggerdotdev/trigger.dev/pull/4213
https://github.com/Srinivasan8888
Srinivasan8888https://github.com/Srinivasan8888
on Aug 31, 2026https://github.com/triggerdotdev/trigger.dev/issues/4214#issuecomment-5474451151
#4845https://github.com/triggerdotdev/trigger.dev/issues/4845
https://github.com/brentshulman-silkline
brentshulman-silklinehttps://github.com/brentshulman-silkline
on Oct 29, 2026https://github.com/triggerdotdev/trigger.dev/issues/4214#issuecomment-6510648887
conductor.build Apphttps://conductor.build/
#4213https://github.com/triggerdotdev/trigger.dev/pull/4213
#4847https://github.com/triggerdotdev/trigger.dev/pull/4847
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4214
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4214
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.