René's URL Explorer Experiment


Title: feat(supervisor): add prometheus metric for outbound http requests by nicktrn · Pull Request #4350 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(supervisor): add prometheus metric for outbound http requests by nicktrn · Pull Request #4350 · triggerdotdev/trigger.dev

X Title: feat(supervisor): add prometheus metric for outbound http requests by nicktrn · Pull Request #4350 · triggerdotdev/trigger.dev

Description: Adds Prometheus metrics so the supervisor's outbound HTTP calls are observable - including client-side failures that previously only surfaced as a log line. supervisor_outbound_request_total{name, method, status, outcome} - counts every outbound request. outcome separates a transport failure (network_error), an HTTP error response (http_error), a response that failed schema validation (invalid_response), and success (ok). supervisor_outbound_request_duration_seconds{name, outcome} - latency histogram. Leaner labels than the counter (no status) to avoid bucket×label cardinality; buckets match the existing dequeue-latency histogram since these calls share the same retrying HTTP client and long-poll envelope. Coverage: The warm-start request (a one-off fetch) - instrumented inline; the response status code is now also included in the failure log (it was previously dropped). All worker API client calls (SupervisorHttpClient: dequeue, run attempt start/complete, heartbeats, snapshots, continue, suspend, debug-log, connect) - routed through a single instrumented request() helper that reports via an optional onHttpRequestComplete callback on the client, which the supervisor wires into the counter + histogram. Low cardinality by design: name is a static per-endpoint label (e.g. dequeue, start_run_attempt), never the interpolated URL - so no run/snapshot IDs land in labels, mirroring the templated route labels on the inbound HTTP server. Registered on the existing metrics registry, exposed on /metrics with no new wiring. Internal-only change (no package release needed), so the changelog note is a single .server-changes entry.

Open Graph Description: Adds Prometheus metrics so the supervisor's outbound HTTP calls are observable - including client-side failures that previously only surfaced as a log line. supervisor_outbound_request_total{n...

X Description: Adds Prometheus metrics so the supervisor's outbound HTTP calls are observable - including client-side failures that previously only surfaced as a log line. supervisor_outbound_request_tot...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/4350

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f18edc04-78a6-cd96-8f3b-807ca9632dfa
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB318:3B8E25:38F9:4888:6AFAF8A8
html-safe-nonce9dba6423476f087f96fa9b8b700538e09a1d25df7fe7485e3edb0a9a925cfe3a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzE4OjNCOEUyNTozOEY5OjQ4ODg6NkFGQUY4QTgiLCJ2aXNpdG9yX2lkIjoiMTg5ODc4NzI1Nzg5Njg1OTgxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8aec37a283d978293dfefc2900331d0524ba5e7928bea749bba64ddc3b40418c
hovercard-subject-tagpull_request:4117921015
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/4350/files
twitter:imagehttps://avatars.githubusercontent.com/u/55853254?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/55853254?s=400&v=4
og:image:altAdds Prometheus metrics so the supervisor's outbound HTTP calls are observable - including client-side failures that previously only surfaced as a log line. supervisor_outbound_request_total{n...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None54f7a6886649661c85eee945cca0773566bfb4065370e0429b7c8f7204184650
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecf8450eb633ec589502c42ff6f4072e40db65da3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4350/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4350%2Ffiles
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%2Fpull%2F4350%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4350/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4350/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4350/files
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 requests67 (67)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
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
nicktrnhttps://github.com/nicktrn
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feat/supervisor-outbound-request-metricshttps://github.com/triggerdotdev/trigger.dev/tree/feat/supervisor-outbound-request-metrics
Conversation 12 https://github.com/triggerdotdev/trigger.dev/pull/4350
Commits 4 https://github.com/triggerdotdev/trigger.dev/pull/4350/commits
Checks 53 https://github.com/triggerdotdev/trigger.dev/pull/4350/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4350/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4350/files
feat(supervisor): add prometheus metric for outbound http requests https://github.com/triggerdotdev/trigger.dev/pull/4350/files#top
Show all changes 4 commits https://github.com/triggerdotdev/trigger.dev/pull/4350/files
fec93a0 feat(supervisor): add prometheus metric for outbound http requests nicktrn Jul 23, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4350/commits/fec93a064b48e96b0831d842e6f0a619038c8a83
5218d3d feat(supervisor): instrument outbound worker api client requests nicktrn Jul 23, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4350/commits/5218d3d88f478fcb668fdf77f49cb3af833a42ac
afd1b1e fix(supervisor): distinguish invalid response outcome and drop unneed… nicktrn Jul 23, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4350/commits/afd1b1e14eaeb108a56851ad5db1e3ab93e4cfae
1beda66 feat(supervisor): add duration histogram for outbound requests nicktrn Jul 23, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4350/commits/1beda66538bd2cea29af528973c98196265512dc
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4350/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4350/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4350/files
supervisor-outbound-request-metrics.md https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-acb28d53a02f558a20a433b166f7ae529e6eff24dc7c61bda30f74ec5da03c4a
index.ts https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
http.ts https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
types.ts https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-436ade7846294295224d4ea7f3f0e598c9e91a5effb397ea044ebecd8caadbe6
.server-changes/supervisor-outbound-request-metrics.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-acb28d53a02f558a20a433b166f7ae529e6eff24dc7c61bda30f74ec5da03c4a
View file https://github.com/triggerdotdev/trigger.dev/blob/1beda66538bd2cea29af528973c98196265512dc/.server-changes/supervisor-outbound-request-metrics.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4350/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4350/files
apps/supervisor/src/index.tshttps://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
View file https://github.com/triggerdotdev/trigger.dev/blob/1beda66538bd2cea29af528973c98196265512dc/apps/supervisor/src/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4350/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-4e018b51c5717e291f73926c9144e6426f6916aa6630b7fd807b672a79bf911a
packages/core/src/v3/runEngineWorker/supervisor/http.tshttps://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
View file https://github.com/triggerdotdev/trigger.dev/blob/1beda66538bd2cea29af528973c98196265512dc/packages/core/src/v3/runEngineWorker/supervisor/http.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4350/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-90184871e6fb3e6686e824f335eb9098e918105620d34649764ac917edb3813d
packages/core/src/v3/runEngineWorker/supervisor/types.tshttps://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-436ade7846294295224d4ea7f3f0e598c9e91a5effb397ea044ebecd8caadbe6
View file https://github.com/triggerdotdev/trigger.dev/blob/1beda66538bd2cea29af528973c98196265512dc/packages/core/src/v3/runEngineWorker/supervisor/types.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4350/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4350/files#diff-436ade7846294295224d4ea7f3f0e598c9e91a5effb397ea044ebecd8caadbe6
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4350/files
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.