mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Tag rollout compression metrics by trigger (#46047)
## Why Compression metrics do not distinguish startup runs from runs requested through `rollout/compress`, making their outcomes indistinguishable by entry point. ## What changed Pass `RolloutCompressionTrigger` from startup and RPC callers through the compression worker. Add a `trigger` tag with `startup` or `rpc` to run, file, scan-error, and temporary-file cleanup metrics, including durations, byte counts, and compression ratios. GitOrigin-RevId: f23d9da791b666a7311f2323f6bead6570067798
This commit is contained in:
1 parent
20f4d12f76
commit
821ad43f9d
8 files changed
+221
-116
No files matched your search
@@ -15,7 +15,10 @@ impl ThreadRequestProcessor {
|
||||
return Err(unsupported_thread_store_operation("rollout/compress"));
|
||||
}
|
||||
|
||||
codex_rollout::spawn_rollout_compression_worker(self.config.codex_home.to_path_buf());
|
||||
codex_rollout::spawn_rollout_compression_worker(
|
||||
self.config.codex_home.to_path_buf(),
|
||||
codex_rollout::RolloutCompressionTrigger::Rpc,
|
||||
);
|
||||
Ok(Some(RolloutCompressResponse {}.into()))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user