opentelemetry-php icon indicating copy to clipboard operation
opentelemetry-php copied to clipboard

Add auto instrumentation for PSR-6 (Caching Interface) and PSR-16 (Simple Cache)

Open xvilo opened this issue 2 years ago • 2 comments

Overview:

Currently, the OpenTelemetry PHP repository does not have libraries to enable auto-instrumentation for PSR-6 (Caching Interface) and PSR-16 (Simple Cache) standards. Adding support for these PSR standards would be beneficial to the observability of caching systems used in PHP applications

Expected Behavior:

When OpenTelemetry is integrated into a PHP application, it should automatically instrument and trace operations related to caching using PSR-6 and PSR-16 standards.

Additional Context:

The adoption of PSR-6 and PSR-16 is widespread in PHP applications, and caching is a critical aspect of performance optimization. Incorporating auto-instrumentation for these standards will enable developers to gain insights into caching behaviors, identify performance bottlenecks, and troubleshoot issues efficiently.

Proposal:

  • Integrate auto-instrumentation for PSR-6, covering common caching operations such as get, set, delete, etc.
  • Integrate auto-instrumentation for PSR-16, capturing key caching operations.

References:

Impact:

This enhancement will benefit developers by providing detailed traces and metrics related to caching operations, contributing to a more comprehensive understanding of application performance.

xvilo avatar Dec 13 '23 10:12 xvilo

@brettmc Do you know if anyone is working on this issue? Anything I would like to contribute to this issue

weslenteche avatar Feb 20 '24 22:02 weslenteche

I don't think that anybody is working on it - I will assign it to you.

brettmc avatar Feb 21 '24 06:02 brettmc