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

Add auto instrumentation for CakePHP

Open AA2512 opened this issue 1 year ago • 1 comments

Overview:

The current state of the OpenTelemetry PHP repository lacks dedicated support for auto-instrumentation in CakePHP, a widely used PHP web framework. The absence of native instrumentation for CakePHP hinders the seamless integration of OpenTelemetry for tracing and monitoring purposes.

Expected Behavior:

Upon integration of OpenTelemetry with a CakePHP application, it is expected that the framework's core functionalities, including request handling, database queries, and other key components, should be automatically instrumented and traced. This will enable developers to gain valuable insights into the performance and behavior of CakePHP applications.

Additional Context:

CakePHP is a popular PHP framework known for its simplicity, convention over configuration, and rapid development capabilities. As developers increasingly rely on CakePHP for building web applications, the need for robust tracing and observability becomes paramount. Auto-instrumentation will empower developers to identify and resolve performance bottlenecks efficiently.

Proposal:

Integrate auto-instrumentation for CakePHP core components, covering key areas such as:

  1. Request handling
  2. Database queries (e.g., SQL queries executed through CakePHP's ORM)

References:

CakePHP Official Documentation: https://book.cakephp.org/4/en/

Impact:

The proposed enhancement will provide CakePHP developers with detailed traces and metrics related to core framework operations. This will contribute to a more comprehensive understanding of application performance and aid in the efficient identification and resolution of issues.

AA2512 avatar Feb 16 '24 05:02 AA2512

@brettmc I can take this issue up as I have already started working on the same. Can you assign it to me.

AA2512 avatar Feb 16 '24 05:02 AA2512

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 17 '24 12:03 stale[bot]

Just to prevent this from being closed automatically by the bot, there is some progress on this via https://github.com/open-telemetry/opentelemetry-php-contrib/pull/253

ChrisLightfootWild avatar Apr 13 '24 11:04 ChrisLightfootWild

This should be completed!

bobstrecansky avatar May 15 '24 12:05 bobstrecansky