Skip to content

Stop persisting RMCP service traces - #31789

Merged
jif-oai merged 1 commit into
mainfrom
jif/filter-rmcp-persistent-logs
Jul 9, 2026
Merged

Stop persisting RMCP service traces#31789
jif-oai merged 1 commit into
mainfrom
jif/filter-rmcp-persistent-logs

Conversation

@jif-oai

@jif-oai jif-oai commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Why

The SQLite feedback log enables TRACE by default. rmcp::service renders complete MCP service events at TRACE, including large tool catalogs and other protocol payloads. In a busy local sample, this was the largest retained source and individual rows reached about 2 MiB.

These rows can quickly consume the per-thread retention budget, displace smaller diagnostics, and add unnecessary SQLite insert-and-prune work.

What changed

  • Persist rmcp::service at INFO and above in the SQLite feedback log.
  • Keep service initialization, shutdown, warnings, and errors available for feedback.
  • Leave other tracing and OpenTelemetry subscribers unchanged.

This is intentionally target-specific. Broader persistent-log policy changes can remain separate.

Related to #28224.

@jif-oai
jif-oai merged commit acb78a4 into main Jul 9, 2026
35 checks passed
@jif-oai
jif-oai deleted the jif/filter-rmcp-persistent-logs branch July 9, 2026 13:34
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants