-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Open
Copy link
Labels
Description
Description
Three monitoring and observability improvements for the health service.
1. Track Current File in Indexer (health_service.py:160)
Add tracking of the currently processing file to Indexer for better observability.
Current State
- No visibility into current indexing progress
- Can't tell which file is being processed
Requirements
- Add current_file property to Indexer
- Update during indexing operations
- Expose in health check
- Thread-safe implementation
Benefits
- Better debugging of stuck indexing
- Progress visibility
- User feedback during long operations
2. Add Ping/Health Check to Vector Store Providers (health_service.py:228)
Implement health check methods for all vector store providers.
Current State
- No health check capability
- Can't verify provider connectivity
- Manual testing required
Requirements
- Add
ping()orhealth_check()method - Implement for all vector stores:
- Qdrant
- InMemory
- Future providers
Checks Should Include
- Connection status
- Authentication validity
- Basic operation (lightweight query)
- Response time
3. Add Actual Latency Tracking to Providers (health_service.py:276)
Implement real latency measurement for provider operations.
Current State
- No latency tracking
- Performance issues hard to diagnose
- No baseline metrics
Requirements
- Track operation latencies:
- Embedding generation
- Vector search
- Upsert operations
- Histogram metrics
- Percentiles (p50, p95, p99)
- Per-provider tracking
Benefits
- Performance monitoring
- SLA tracking
- Identify bottlenecks
- Alert on degradation
Source
- Files:
health_service.py:160,health_service.py:228,health_service.py:276 - Branch:
003-our-aim-to
Reactions are currently unavailable