Ehab Younes
9974294ca9
feat: report arbitrary workspace agent session types ( #28338 )
...
Report session counts as a dynamic app-name map from the agent, the SSH CLI, and the workspace usage API, so a new IDE flows end to end without a schema, proto, or server change.
- Report through `Stats.session_counts` on Agent API v2.11. Older agents keep reporting through the deprecated count fields.
- Accept arbitrary names from `coder ssh --usage-app` and the workspace usage API. A name the registry does not recognize keeps its identity and is attributed to the `unknown` family.
- Add reconnecting PTY counts to the map without overwriting the counts SSH reported.
- Normalize and merge names before applying the deterministic 64-name cap, ordered by known apps, then count, then name. Overflow sums into `unknown`, and non-positive counts cannot cancel valid activity.
- Strip control characters, treat whitespace-only HTTP app names as absent, and require the exact environment variable prefix when you extract an SSH session type.
- Count overflow entries in `coderd_agentstats_session_counts_overflow_total` and keep raw payloads out of logs.
- Change the usage API's `app_name` to a string, and update the SDK types and API reference.
closes #27410
2026-09-19 00:32:51 +02:00
..
2026-09-17 18:14:08 +02:00
2026-09-17 18:14:08 +02:00
2026-08-26 11:57:56 -06:00
2026-09-17 18:14:08 +02:00
2026-01-08 15:24:11 +04:00
2026-03-12 13:39:24 -06:00
2026-03-11 15:19:56 +02:00
2026-09-18 15:24:15 +10:00
2026-06-02 10:46:40 +00:00
2026-07-20 15:39:21 +02:00
2026-09-18 16:47:16 +02:00
2026-09-11 16:03:44 +00:00
2026-09-18 16:47:16 +02:00
2026-09-18 16:47:16 +02:00
2025-10-27 17:07:25 +01:00
2026-04-27 12:58:26 +01:00
2026-07-09 07:40:42 -07:00
2026-05-13 14:59:33 -05:00
2026-09-01 16:09:02 -07:00
2026-06-02 10:46:40 +00:00
2026-09-18 10:27:26 -06:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-08-26 11:57:56 -06:00
2026-08-26 11:57:56 -06:00
2026-06-03 15:30:37 -04:00
2026-04-27 12:58:26 +01:00
2026-01-08 15:24:11 +04:00
2026-06-22 19:26:34 -06:00
2026-06-22 12:15:27 -06:00
2026-08-26 18:46:34 +02:00
2026-09-08 17:28:46 +00:00
2026-08-21 23:46:27 -06:00
2026-03-05 09:35:57 -08:00
2026-06-03 15:30:37 -04:00
2026-09-19 00:32:51 +02:00
2026-06-26 12:45:53 +01:00
2026-08-26 18:46:34 +02:00
2026-08-24 11:20:25 +01:00
2026-08-25 12:45:02 -07:00
2026-05-15 14:36:54 -07:00
2026-09-18 11:57:06 -07:00
2026-08-04 16:24:14 +10:00
2026-09-18 11:57:06 -07:00
2026-04-29 10:28:27 -07:00
2026-05-15 14:36:54 -07:00
2026-01-08 15:24:11 +04:00
2026-09-18 11:57:06 -07:00
2026-09-11 00:51:04 +02:00
2026-09-14 14:33:36 +01:00
2026-09-14 15:43:16 +01:00
2026-07-07 12:38:37 -07:00
2026-07-07 12:38:37 -07:00
2026-01-08 15:24:11 +04:00
2026-04-27 12:58:26 +01:00
2026-06-03 15:30:37 -04:00
2026-03-02 22:52:39 -05:00
2026-06-03 15:16:42 -04:00
2026-06-04 08:43:51 -06:00
2026-08-05 10:42:13 -07:00
2025-12-03 11:32:59 +02:00
2026-04-21 15:11:50 -05:00
2026-08-31 11:35:59 -04:00
2026-08-31 11:35:59 -04:00
2026-06-03 15:30:37 -04:00
2025-10-30 17:41:08 -06:00
2026-01-08 15:24:11 +04:00
2026-04-27 12:58:26 +01:00
2026-06-03 15:16:42 -04:00
2026-04-16 12:46:52 -04:00
2026-01-08 15:24:11 +04:00
2026-07-28 16:59:33 -07:00
2026-08-26 11:57:56 -06:00
2026-05-05 19:43:08 -06:00
2026-06-11 09:58:16 -06:00
2026-06-11 09:58:16 -06:00
2026-06-03 15:30:37 -04:00
2026-08-24 09:41:21 -05:00
2026-02-05 19:35:20 +11:00
2026-02-06 14:09:39 +11:00
2026-08-24 09:41:21 -05:00
2025-12-03 11:32:59 +02:00
2026-03-25 13:11:08 +11:00
2026-03-04 11:14:52 -07:00
2026-04-24 17:09:17 -04:00
2026-02-26 14:34:30 +01:00
2026-04-24 17:09:17 -04:00
2026-06-03 15:30:37 -04:00
2026-08-26 11:57:56 -06:00
2026-06-25 15:41:09 -06:00
2026-06-05 14:33:15 +03:00
2025-10-06 08:56:43 +00:00
2025-12-03 11:32:59 +02:00
2026-03-03 08:47:34 +00:00
2025-12-03 11:32:59 +02:00
2026-01-08 15:24:11 +04:00
2026-06-03 15:30:37 -04:00
2026-04-27 12:58:26 +01:00
2026-09-07 15:24:33 +02:00
2026-01-08 15:24:11 +04:00
2026-08-26 11:57:56 -06:00
2026-04-27 12:58:26 +01:00
2026-09-09 07:34:51 -04:00
2026-07-08 11:12:53 +02:00
2026-09-17 18:14:08 +02:00
2026-06-03 15:30:37 -04:00
2026-04-27 12:58:26 +01:00
2026-07-28 14:37:29 -07:00
2026-07-28 14:37:29 -07:00
2026-08-26 11:57:56 -06:00
2026-09-09 18:28:57 +01:00
2026-06-05 14:33:13 -05:00
2026-06-02 08:36:01 -06:00
2026-06-16 13:26:04 -07:00
2026-06-23 11:37:33 -05:00
2026-06-23 11:37:33 -05:00
2026-03-04 20:26:03 -05:00
2026-06-03 15:30:37 -04:00
2026-01-08 15:24:11 +04:00
2026-09-18 12:58:06 +00:00
2026-09-19 00:32:51 +02:00
2026-06-23 11:58:00 -05:00
2026-06-23 11:58:00 -05:00
2026-06-03 15:30:37 -04:00
2026-04-27 12:58:26 +01:00
2026-06-03 15:16:42 -04:00
2026-01-08 15:24:11 +04:00
2026-06-03 13:21:45 +00:00
2026-09-19 00:32:51 +02:00
2026-09-19 00:32:51 +02:00
2026-06-03 15:30:37 -04:00
2026-09-02 19:31:01 +00:00
2026-02-23 22:46:17 -06:00
2026-04-27 12:58:26 +01:00
2026-09-02 19:31:01 +00:00
2026-07-16 13:00:32 +03:00
2026-07-16 13:00:32 +03:00
2026-07-16 13:00:32 +03:00
2025-11-28 08:33:50 +02:00
2026-06-17 13:01:57 +02:00
2025-11-28 08:33:50 +02:00
2026-05-27 12:33:39 +02:00
2026-06-17 13:01:57 +02:00
2026-09-17 19:26:18 +02:00
2026-05-14 14:45:20 +02:00
2026-06-17 13:01:57 +02:00
2026-08-06 14:45:38 +10:00
2026-08-26 11:57:56 -06:00
2026-06-03 15:30:37 -04:00
2026-01-08 15:24:11 +04:00
2026-08-06 14:45:38 +10:00
2026-08-26 11:57:56 -06:00
2026-06-02 08:05:26 -04:00
2026-03-23 23:19:23 +02:00
2026-06-03 15:30:37 -04:00
2025-12-03 11:32:59 +02:00
2026-06-03 15:30:37 -04:00
2025-12-03 11:32:59 +02:00
2026-06-03 15:30:37 -04:00
2026-09-08 21:45:43 -06:00
2026-09-08 21:45:43 -06:00
2025-12-15 11:26:41 -06:00
2026-06-03 15:30:37 -04:00
2026-02-19 09:31:12 +11:00
2026-03-06 00:04:09 +00:00
2026-07-14 13:39:58 -04:00
2026-08-26 11:57:56 -06:00
2026-09-02 19:31:01 +00:00
2026-06-03 15:30:37 -04:00
2026-07-28 21:05:50 +10:00
2026-07-28 21:05:50 +10:00
2026-06-03 15:30:37 -04:00
2025-12-03 11:32:59 +02:00
2026-03-19 15:14:00 +00:00
2026-03-18 22:10:04 +00:00
2026-03-18 22:10:04 +00:00
2026-01-08 15:24:11 +04:00
2026-08-21 23:46:27 -06:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-02-12 12:14:56 +01:00
2026-02-12 12:14:56 +01:00
2026-02-12 12:14:56 +01:00
2026-02-12 12:14:56 +01:00
2026-09-19 00:32:51 +02:00
2026-09-19 00:32:51 +02:00
2026-08-05 10:42:13 -07:00
2025-09-26 11:20:25 +01:00