fix(monitoring): add missing tiktoken dependency to monitoring-api#66
Merged
Hidden-History merged 1 commit intomainfrom Mar 16, 2026
Merged
fix(monitoring): add missing tiktoken dependency to monitoring-api#66Hidden-History merged 1 commit intomainfrom
Hidden-History merged 1 commit intomainfrom
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tiktokenandstructlogtomonitoring/requirements.txtmemorymodule which is copied into the container viaCOPY src /app/srcThe monitoring-api health check fails with
No module named 'tiktoken'because the import chainmain.py -> memory.__init__ -> storage -> chunking -> truncation -> import tiktokentriggers 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
/healthand/metricsendpoints