compose icon indicating copy to clipboard operation
compose copied to clipboard

Optimize tracing for Docker Compose projects in tracing package

Open HajimohammadiNet opened this issue 1 year ago • 0 comments

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, and ServiceOptions.
  • 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.

HajimohammadiNet avatar Oct 16 '24 14:10 HajimohammadiNet