Skip to content

Conversation

@Syedumer-97
Copy link

Overview

This PR implements a lightweight execution tracing and structured logging system for the CortexON multi-agent workflow system.

Changes

  • Implement unique request tracking with run_id via FastAPI middleware
  • Add step-level tracing for agent actions and tool executions
  • Integrate structured logging with automatic trace metadata injection
  • Support async-safe context propagation using contextvars
  • Add comprehensive test suite and documentation
  • Include example usage and demo scripts

Files Changed

  • Added tracing module with context, middleware, steps, logging, decorators, and config
  • Updated main.py, instructor.py, and orchestrator_agent.py to integrate tracing
  • Added comprehensive tests and examples

See TRACING_IMPLEMENTATION.md for full details.

- Implement unique request tracking with run_id via FastAPI middleware
- Add step-level tracing for agent actions and tool executions
- Integrate structured logging with automatic trace metadata injection
- Support async-safe context propagation using contextvars
- Add comprehensive test suite and documentation
- Include example usage and demo scripts
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