Skip to content

Conversation

@ckrough
Copy link
Owner

@ckrough ckrough commented Jan 10, 2026

Summary

  • Add OpenTelemetry tracing to key operations in the RAG pipeline
  • Create src/infrastructure/observability/ module with setup, tracing utilities, and structlog processor
  • Instrument LLM, embeddings, vectordb, cache, and RAG service operations
  • Add configuration via OTEL_ENABLED, OTEL_EXPORTER, OTEL_ENDPOINT env vars

Test plan

  • 14 unit tests for observability module pass
  • ruff format/check passes
  • bandit security scan passes
  • mypy passes (pre-existing stub issues only)
  • Manual verification with console exporter: OTEL_EXPORTER=console uvicorn src.main:app

Closes retriever-cd6

Add OpenTelemetry tracing to key operations:
- Create src/infrastructure/observability/ module with setup, tracing utilities
- Instrument RAG pipeline (ask, retrieve), LLM, embeddings, vectordb, cache
- Add structlog processor for trace/span ID injection into logs
- Configure via OTEL_ENABLED, OTEL_EXPORTER, OTEL_ENDPOINT env vars

Closes retriever-cd6
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.

2 participants