Skip to content

fix: bound local telemetry storage - #219

Merged
QueryPlanner merged 1 commit into
mainfrom
codex/bound-telemetry-logs
Nov 14, 2026
Merged

QueryPlanner merged 1 commit into
mainfrom
codex/bound-telemetry-logs

Conversation

@QueryPlanner

Copy link
Copy Markdown
Owner

What

Bound local telemetry and Docker stdout storage while keeping recent records in the dashboard.

Why

The production disk filled while both local telemetry files grew without rotation. OpenObserve retained more than 5.1 million SQLite debug records. The full disk blocked scheduler writes and triggered repeated Telegram messages. #218 fixes the reminder replay.

How

  • Keep one private backup per local file, with a 16 MiB cap per log file and a 128 MiB cap per trace file. Existing oversized files age out on subsequent rotations.
  • Retain the dashboard read limits across the active and backup files. Keep configured OTLP export independent of local rotation.
  • Rotate Docker stdout at three 10 MB files. Default to INFO and suppress routine database and HTTP driver chatter even when Blacki runs at DEBUG.
  • Keep OpenTelemetry export-error messages on stdout so a failing exporter cannot ingest its own errors.

Tests

  • Reproduced unbounded files before the fix. Verified rollover, UTF-8 byte limits, private permissions, dashboard reads, and recovery after a rollover error.
  • Ran Ruff format and lint checks, MyPy, and pytest. 2,892 passed, 1 skipped, 100% coverage.
  • Built MkDocs in strict mode, checked shell syntax, and validated production and development Compose profiles.
  • Build and smoke-test the image in GitHub CI. The local Docker daemon is stopped.

- Rotate private log and trace files at fixed byte limits.
- Read recent dashboard records across the active file and its backup.
- Bound Docker stdout and quiet routine SQLite and HTTP logs.
@QueryPlanner
QueryPlanner merged commit fa1910c into main Nov 14, 2026
3 checks passed
@QueryPlanner
QueryPlanner deleted the codex/bound-telemetry-logs branch November 14, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant