Skip to content

Prevent recursive Tokio tracing in telemetry and SQLite logs - #51775

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f545013a2469088d7f9890c1f46bb93eb5446d2d
Oct 7, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f545013a2469088d7f9890c1f46bb93eb5446d2d

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Prevent recursive Tokio tracing in telemetry and SQLite logs

Why

Tokio runtime tracing can cause SQLite log writes to enqueue more writes and exporter activity to generate further OTLP exports.

What changed

  • Exclude tokio and runtime spans from OTLP export alongside h2 spans.
  • Limit tokio:: and runtime:: targets to INFO in the default log filter, and reject their TRACE events directly in the SQLite sink even without an outer filter.
  • Box and pin the session-loop future before spawning it.
  • Reorder tracing and Tokio test attributes, restrict the skills concurrency test's subscriber to the catalog-refresh span, and use the default log filter in the SQLite formatter comparison test.

## Why

Tokio runtime tracing can cause SQLite log writes to enqueue more writes and exporter activity to generate further OTLP exports.

## What changed

- Exclude `tokio` and `runtime` spans from OTLP export alongside `h2` spans.
- Limit `tokio::` and `runtime::` targets to `INFO` in the default log filter, and reject their `TRACE` events directly in the SQLite sink even without an outer filter.
- Box and pin the session-loop future before spawning it.
- Reorder tracing and Tokio test attributes, restrict the skills concurrency test's subscriber to the catalog-refresh span, and use the default log filter in the SQLite formatter comparison test.

GitOrigin-RevId: f545013a2469088d7f9890c1f46bb93eb5446d2d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/f545013a2469088d7f9890c1f46bb93eb5446d2d branch from 8f3e987 to 9dd7988 Compare October 7, 2026 17:28
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-07T17:28:44.151050Z 8f3e987 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 9dd7988 into main Oct 7, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/f545013a2469088d7f9890c1f46bb93eb5446d2d branch October 7, 2026 17:28
@DaYipperBot
DaYipperBot deployed to issue-triage October 7, 2026 17:30 — with Image GitHub Actions Active
@DaYipperBot
DaYipperBot deployed to issue-triage October 7, 2026 17:30 — with Image GitHub Actions Active
@DaYipperBot
DaYipperBot deployed to issue-triage October 7, 2026 17:30 — with Image GitHub Actions Active
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 7, 2026
@ehaftpl
ehaftpl deployed to issue-triage October 7, 2026 17:41 — with Image GitHub Actions Active
@ehaftpl
ehaftpl deployed to issue-triage October 7, 2026 17:41 — with Image GitHub Actions Active
@ehaftpl
ehaftpl deployed to issue-triage October 7, 2026 17:41 — with Image GitHub Actions Active
@vanko82
vanko82 deployed to issue-triage October 7, 2026 17:42 — with Image GitHub Actions Active
@vanko82
vanko82 deployed to issue-triage October 7, 2026 17:42 — with Image GitHub Actions Active
@vanko82
vanko82 deployed to issue-triage October 7, 2026 17:42 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:49 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:49 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:49 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:49 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:49 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:49 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:49 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:49 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:49 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:50 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:50 — with Image GitHub Actions Active
@ElliotDrel
ElliotDrel deployed to issue-triage October 7, 2026 17:50 — with Image GitHub Actions Active
@jflamb
jflamb deployed to issue-triage October 7, 2026 17:50 — with Image GitHub Actions Active
@jflamb
jflamb deployed to issue-triage October 7, 2026 17:50 — with Image GitHub Actions Active
@jflamb
jflamb deployed to issue-triage October 7, 2026 17:50 — with Image GitHub Actions Active
@INNOM-stack
INNOM-stack deployed to issue-triage October 7, 2026 17:55 — with Image GitHub Actions Active
@INNOM-stack
INNOM-stack deployed to issue-triage October 7, 2026 17:55 — with Image GitHub Actions Active
@INNOM-stack
INNOM-stack deployed to issue-triage October 7, 2026 17:55 — with Image GitHub Actions Active
@ian-sid
ian-sid deployed to issue-triage October 7, 2026 17:58 — with Image GitHub Actions Active
@ian-sid
ian-sid deployed to issue-triage October 7, 2026 17:58 — with Image GitHub Actions Active
@ian-sid
ian-sid deployed to issue-triage October 7, 2026 17:58 — with Image GitHub Actions Active
@ian-sid
ian-sid deployed to issue-triage October 7, 2026 18:00 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants