compose
compose copied to clipboard
Optimize tracing for Docker Compose projects in tracing package
Description
Description
The current tracing implementation for Docker Compose projects can be optimized for better performance. The goal of this enhancement is to reduce memory allocations, improve slice handling, and simplify code where possible. This will result in faster execution and cleaner, more maintainable code.
Proposed Changes
- Pre-allocate slices in
SpanOptions,ProjectOptions, andServiceOptions. - Simplify utility functions like
keys()and refactor time-related attributes. - Improve metadata collection and tracing instrumentation for Docker Compose projects.
Benefits
- Improved performance in tracing operations.
- Reduced memory usage.
- Cleaner and more maintainable code.