refactor: extract DistributedTraceMiddleware into its own file
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do?
Extracts the DistributedTraceMiddleware class from the base middleware file into its own dedicated file, along with its corresponding tests.
Related issues
Closes #860 (closed)
Implementation details
- Created new file
ai_gateway/api/middleware/distributed_trace.pyfor the middleware - Moved
DistributedTraceMiddlewareclass to the new file - Created new test file
tests/api/middleware/test_distributed_trace.py - Moved related tests to the new test file
- Updated imports across the codebase
MR acceptance checklist
-
All tests pass -
Code style checks pass
Edited by 🤖 GitLab Bot 🤖