I integrated mercado pago and paypal to magento 2.0 , how to user new relics to monitor these payments ?
I used this query in new relics "SELECT message FROM Log WHERE message like '%CRITICAL: Payment%' and filePath LIKE '%system.log%' SINCE 3 month ago" and create alerts.
It shows below records to indicate the mercado pago has some issue. But I'm not sure if I can use the query above for other payments like paypal or cybersource (use this keyword '%CRITICAL: Payment%' to search in system.log file and create alerts in new relics)
-----------
To monitor Mercado Pago and PayPal payments in Magento 2 using New Relic:
Enable New Relic for Magento 2 – make sure the New Relic PHP agent is installed and configured.
Track custom transactions – wrap payment calls in newrelic_name_transaction() or custom instrumentation to monitor authorize, capture, and refund calls.
Log exceptions – use newrelic_notice_error($exception) to capture failed payments or errors.
Dashboard & alerts – set up dashboards for payment endpoints and configure alerts on failed transactions or response time spikes.
This way, you can monitor exceptions, transaction flow, and performance metrics in real time.