Skip to content

fix(monitoring): add missing tiktoken dependency to monitoring-api#66

Merged
Hidden-History merged 1 commit intomainfrom
fix/monitoring-api-tiktoken
Mar 16, 2026
Merged

fix(monitoring): add missing tiktoken dependency to monitoring-api#66
Hidden-History merged 1 commit intomainfrom
fix/monitoring-api-tiktoken

Conversation

@Hidden-History
Copy link
Owner

Summary

  • Add tiktoken and structlog to monitoring/requirements.txt
  • These are required by the memory module which is copied into the container via COPY src /app/src

The monitoring-api health check fails with No module named 'tiktoken' because the import chain main.py -> memory.__init__ -> storage -> chunking -> truncation -> import tiktoken triggers an eager import that the container can't satisfy.

This has been causing all E2E Test Suite runs to fail since the monitoring-api was introduced.

Test Plan

  • CI E2E tests pass (monitoring-api health check succeeds)
  • Monitoring API responds to /health and /metrics endpoints

…ments

The monitoring-api container copies src/memory/ (COPY src /app/src) but
monitoring/requirements.txt was missing tiktoken and structlog. The import
chain: main.py → memory.__init__ → storage → chunking → truncation →
import tiktoken causes health_check_failed on every request, blocking
E2E tests from running.

Added tiktoken>=0.5.0,<1.0.0 and structlog>=24.0.0,<26.0.0 to match
the main requirements.txt.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Hidden-History Hidden-History merged commit c62c61b into main Mar 16, 2026
17 checks passed
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