Instrumenting Sentry Performance Monitoring in Yii2 Framework

Hello everyone,

We are currently using Yii 2.0.48 with PHP 7.4 for our application, and we are looking to enhance our performance monitoring capabilities by integrating Sentry. While we have come across integration guides for Laravel and Symfony frameworks, we couldn’t find a specific guide for Yii.

Has anyone successfully integrated Sentry and instrumented performance monitoring in the Yii2 framework? We would greatly appreciate any insights, guidance, or tips you can provide regarding this matter.

Thank you in advance for your help!

Never used sentry but looking at it the code below can be written to error handler

try {
} catch (\Throwable $exception) {

// OR


Let me know if you need specific help