Filter graceful shutdown guard and trigger traces from SQLite logs (#49414)

## What changed

Set the default SQLite log filter to `DEBUG` for `tokio_graceful::guard` and `tokio_graceful::trigger`, dropping their `TRACE` events while retaining debug and higher-level diagnostics.

## Testing

Extend the SQLite sink filter test to verify that guard and trigger traces are dropped, their debug events are retained, and `tokio_graceful::shutdown` trace events remain available.

GitOrigin-RevId: c98495c834db35f3d8799ab4f0a1f7a82a53c8ef
This commit is contained in:
Dmitriy Kovalenko
2026-09-30 00:50:50 +00:00
committed by copyberry
parent eefe0ce1a8
commit 16a7c0f0eb
2 changed files with 22 additions and 0 deletions
+2
View File
@@ -74,6 +74,8 @@ pub fn default_filter() -> Targets {
.with_target("codex_otel.log_only", LevelFilter::OFF)
.with_target("codex_otel.trace_safe", LevelFilter::OFF)
.with_target("rmcp", LevelFilter::INFO)
.with_target("tokio_graceful::guard", LevelFilter::DEBUG)
.with_target("tokio_graceful::trigger", LevelFilter::DEBUG)
.with_target("codex_api::responses_websocket_timing", LevelFilter::OFF)
.with_target("codex_core::post_sampling_token_estimate", LevelFilter::OFF)
// Full model request bodies and streamed response payloads overwhelm the