René's URL Explorer Experiment


Title: feat: add chat lifecycle stage tracing, turn accounting, and Grafana dashboard by jscottmiller · Pull Request #28741 · coder/coder · GitHub

Open Graph Title: feat: add chat lifecycle stage tracing, turn accounting, and Grafana dashboard by jscottmiller · Pull Request #28741 · coder/coder

X Title: feat: add chat lifecycle stage tracing, turn accounting, and Grafana dashboard by jscottmiller · Pull Request #28741 · coder/coder

Description: Secure environments for developers and their agents - feat: add chat lifecycle stage tracing, turn accounting, and Grafana dashboard by jscottmiller · Pull Request #28741 · coder/coder

Open Graph Description: Instruments chatd with OpenTelemetry spans and Prometheus histograms covering the full lifecycle of an Agents chat turn, adds per-turn accounting that partitions each turn's wall time into disj...

X Description: Instruments chatd with OpenTelemetry spans and Prometheus histograms covering the full lifecycle of an Agents chat turn, adds per-turn accounting that partitions each turn's wall time into ...

Opengraph URL: https://github.com/coder/coder/pull/28741

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:48b27411-57e0-735e-4941-22da886f3f5f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9A7C:17FB7:13901AE:18BDADF:6B015EE3
html-safe-nonce57bf66e33dd41b0260dff06dbd1366e4c1eb1e0d9e043abb6f475b4ad543ae0f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTdDOjE3RkI3OjEzOTAxQUU6MThCREFERjo2QjAxNUVFMyIsInZpc2l0b3JfaWQiOiI4NTk4Mzg0MjY3NjQwMjY2NDY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac913edcbbbb36d38583cc8eef36a1497df8bd0b22dbaec7347b4b8b905cf0b628
hovercard-subject-tagpull_request:4381260421
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/coder/28741/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7cf23a4636bd3725c55d04322515e13451226c18af07b186f1c30b28ff2880c5/coder/coder/pull/28741
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7cf23a4636bd3725c55d04322515e13451226c18af07b186f1c30b28ff2880c5/coder/coder/pull/28741
og:image:altInstruments chatd with OpenTelemetry spans and Prometheus histograms covering the full lifecycle of an Agents chat turn, adds per-turn accounting that partitions each turn's wall time into disj...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejscottmiller
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/coder/coder/pull/28741#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F28741
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%2Fcoder%2Fcoder%2Fpull%2F28741
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/28741
Reloadhttps://github.com/coder/coder/pull/28741
Reloadhttps://github.com/coder/coder/pull/28741
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
jscottmillerhttps://github.com/jscottmiller
mainhttps://github.com/coder/coder/tree/main
scott/x/chatd-lifecycle-observabilityhttps://github.com/coder/coder/tree/scott/x/chatd-lifecycle-observability
Conversationhttps://github.com/coder/coder/pull/28741
Commits19 (19)https://github.com/coder/coder/pull/28741/commits
Checkshttps://github.com/coder/coder/pull/28741/checks
Files changedhttps://github.com/coder/coder/pull/28741/files
feat: add chat lifecycle stage tracing, turn accounting, and Grafana dashboardhttps://github.com/coder/coder/pull/28741#top
jscottmillerhttps://github.com/jscottmiller
mainhttps://github.com/coder/coder/tree/main
scott/x/chatd-lifecycle-observabilityhttps://github.com/coder/coder/tree/scott/x/chatd-lifecycle-observability
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
Aug 28, 2026https://github.com/coder/coder/pull/28741#issue-5274092202
Please reload this pagehttps://github.com/coder/coder/pull/28741
@jscottmillerhttps://github.com/jscottmiller
Please reload this pagehttps://github.com/coder/coder/pull/28741
feat: add chat lifecycle stage tracing, metrics, and Grafana dashboardhttps://github.com/coder/coder/pull/28741/commits/4fe2f02fb4f1708d537cc78559903aa996363c1d
4fe2f02https://github.com/coder/coder/pull/28741/commits/4fe2f02fb4f1708d537cc78559903aa996363c1d
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
experimental https://github.com/coder/coder/issues?q=state%3Aopen%20label%3Aexperimental
Aug 28, 2026https://github.com/coder/coder/pull/28741#event-30141593023
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 28, 2026https://github.com/coder/coder/pull/28741#issuecomment-5447636954
Please reload this pagehttps://github.com/coder/coder/pull/28741
docs/admin/integrations/prometheus.mdhttps://coder.com/docs/@scott%2Fx%2Fchatd-lifecycle-observability/admin/integrations/prometheus
Please reload this pagehttps://github.com/coder/coder/pull/28741
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
jscottmillerhttps://github.com/jscottmiller
Aug 28, 2026https://github.com/coder/coder/pull/28741#event-30141600715
September 1, 2026 15:50https://github.com/coder/coder/pull/28741#commits-pushed-32d1e57
fix: derive stage scope from context marker and correct histogram edg…https://github.com/coder/coder/pull/28741/commits/32d1e57f6d7a816df7c7f8a772cdd5f96f3f05ac
32d1e57https://github.com/coder/coder/pull/28741/commits/32d1e57f6d7a816df7c7f8a772cdd5f96f3f05ac
feat: add chat_kind label to chat lifecycle stage metricshttps://github.com/coder/coder/pull/28741/commits/7abe4c1b04c1512e0d239a4d485a906c25faa8e5
7abe4c1https://github.com/coder/coder/pull/28741/commits/7abe4c1b04c1512e0d239a4d485a906c25faa8e5
feat: add turn-end accounting for chat lifecycle stageshttps://github.com/coder/coder/pull/28741/commits/807871aef555582a647be0228eaa897a4b7c442e
807871ahttps://github.com/coder/coder/pull/28741/commits/807871aef555582a647be0228eaa897a4b7c442e
feat: organize chat lifecycle dashboard by stage tree levelhttps://github.com/coder/coder/pull/28741/commits/f12789006b27adb27b76f6c33d1a91728e4a8698
f127890https://github.com/coder/coder/pull/28741/commits/f12789006b27adb27b76f6c33d1a91728e4a8698
fix(examples/monitoring): render the stage profile hierarchy as a tablehttps://github.com/coder/coder/pull/28741/commits/fdd7a1af3b251755d1a5bec9a244ec471e4e01a1
fdd7a1ahttps://github.com/coder/coder/pull/28741/commits/fdd7a1af3b251755d1a5bec9a244ec471e4e01a1
fix(examples/monitoring): place Level 0 legends below the graphshttps://github.com/coder/coder/pull/28741/commits/39fd91993a326ea09b44e16e6a821c71da73b649
39fd919https://github.com/coder/coder/pull/28741/commits/39fd91993a326ea09b44e16e6a821c71da73b649
feat(examples/monitoring): show occurrence counts in the stage profil…https://github.com/coder/coder/pull/28741/commits/ae6bfc5e8e7fd9a56f1a2fbf368b61bedb641fd5
ae6bfc5https://github.com/coder/coder/pull/28741/commits/ae6bfc5e8e7fd9a56f1a2fbf368b61bedb641fd5
fix(examples/monitoring): scale hierarchy duration bars to the durati…https://github.com/coder/coder/pull/28741/commits/b84f274e698972a35878cb357eb2d54034715133
b84f274https://github.com/coder/coder/pull/28741/commits/b84f274e698972a35878cb357eb2d54034715133
fix(examples/monitoring): stack the hierarchy table below the flamegraphhttps://github.com/coder/coder/pull/28741/commits/d4c1795e282263ef13008203ad793d612568bfb8
d4c1795https://github.com/coder/coder/pull/28741/commits/d4c1795e282263ef13008203ad793d612568bfb8
fix(examples/monitoring): remove the turn rate and stage sample rate …https://github.com/coder/coder/pull/28741/commits/5de842ad179b091ae1c914c62340d4d42d30c835
5de842ahttps://github.com/coder/coder/pull/28741/commits/5de842ad179b091ae1c914c62340d4d42d30c835
fix(examples/monitoring): show the flamegraph without its built-in tablehttps://github.com/coder/coder/pull/28741/commits/da81bb03ae7798fa45d7cf69e9ee5035a96fb71c
da81bb0https://github.com/coder/coder/pull/28741/commits/da81bb03ae7798fa45d7cf69e9ee5035a96fb71c
fix(examples/monitoring): place the hierarchy table before the flameg…https://github.com/coder/coder/pull/28741/commits/5cc93adeb5af198d6e86d510e5777d70da17452b
5cc93adhttps://github.com/coder/coder/pull/28741/commits/5cc93adeb5af198d6e86d510e5777d70da17452b
fix(coderd/x/chatd): close the chat turn span after its finishing ste…https://github.com/coder/coder/pull/28741/commits/0f706bc2a2f2d5b84d3a2ba3db58b7c4f6e35d8a
0f706bchttps://github.com/coder/coder/pull/28741/commits/0f706bc2a2f2d5b84d3a2ba3db58b7c4f6e35d8a
fix(coderd/x/chatd/chatloop): keep background stages out of the turn …https://github.com/coder/coder/pull/28741/commits/b284f7e2d8294a57ca835b7f95dce1e5fc2c741d
b284f7ehttps://github.com/coder/coder/pull/28741/commits/b284f7e2d8294a57ca835b7f95dce1e5fc2c741d
fix(coderd/x/chatd): keep capacity_wait out of the turn partition and…https://github.com/coder/coder/pull/28741/commits/7dbd9b46e6ddb220be22bb9b821cdfc070876f47
7dbd9b4https://github.com/coder/coder/pull/28741/commits/7dbd9b46e6ddb220be22bb9b821cdfc070876f47
fix(coderd/x/chatd/chatloop): count stage anomalies and recalibrate s…https://github.com/coder/coder/pull/28741/commits/7651d953b8db6f1bb838701d8dc841db26a873eb
7651d95https://github.com/coder/coder/pull/28741/commits/7651d953b8db6f1bb838701d8dc841db26a873eb
fix(coderd/x/chatd): take the promotion time from the stage tracer clockhttps://github.com/coder/coder/pull/28741/commits/dd5ba02f8943d2f237dbcdf95372ad52451d6d30
dd5ba02https://github.com/coder/coder/pull/28741/commits/dd5ba02f8943d2f237dbcdf95372ad52451d6d30
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
Sep 3, 2026https://github.com/coder/coder/pull/28741#event-30521300876
chore(coderd/x/chatd): trim lifecycle stage comments to local behaviorhttps://github.com/coder/coder/pull/28741/commits/abffa575d290c7fe7285b62d56c075cd6352f7d1
abffa57https://github.com/coder/coder/pull/28741/commits/abffa575d290c7fe7285b62d56c075cd6352f7d1
refactor(coderd/x/chatd): extract runGenerationStep from StartGeneration #28968 https://github.com/coder/coder/pull/28968
feat: add chatd lifecycle stage tracer #28969 https://github.com/coder/coder/pull/28969
feat(coderd/x/chatd/chatloop): emit stream and time_to_first_token stages #28970 https://github.com/coder/coder/pull/28970
feat: trace chatd provider attempts with model and effort #28971 https://github.com/coder/coder/pull/28971
feat(coderd/x/chatd): open a chat_turn span per prompt #28972 https://github.com/coder/coder/pull/28972
feat(coderd/x/chatd): record capacity wait as a lifecycle stage #28973 https://github.com/coder/coder/pull/28973
feat: account chatd turn time by stage and category #28974 https://github.com/coder/coder/pull/28974
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
Sep 4, 2026 https://github.com/coder/coder/pull/28741#ref-pullrequest-5344032275
docs(examples/monitoring): add chatd lifecycle Grafana dashboard #28975 https://github.com/coder/coder/pull/28975
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
Sep 15, 2026https://github.com/coder/coder/pull/28741#issuecomment-5685022202
Please reload this pagehttps://github.com/coder/coder/pull/28741
https://github.com/jscottmiller
jscottmillerhttps://github.com/jscottmiller
Sep 15, 2026https://github.com/coder/coder/pull/28741#event-31192029837
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 15, 2026https://github.com/coder/coder/pull/28741#event-31192039850
https://github.co/hiddenchars
https://github.com/coder/coder/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F28741
Please reload this pagehttps://github.com/coder/coder/pull/28741
https://github.com/jscottmiller
jscottmiller https://github.com/jscottmiller
experimental https://github.com/coder/coder/issues?q=state%3Aopen%20label%3Aexperimental
Please reload this pagehttps://github.com/coder/coder/pull/28741
https://github.com/jscottmiller
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.