Application performance monitoring
Published
Updated
🍾 🐛
Find bottlenecks and bugs.
Application performance monitoring (APM) traces requests through the PHP code to find slow functions, queries and errors. On fortrabbit, the Blackfire and New Relic extensions can be switched on in the PHP settings.
APM tools trace single requests through the code, to the slow function, query or call to another service. The metrics of fortrabbit show that something got slow, and when. An APM tool shows where in the code.
APM on fortrabbit
Two APM extensions are installed and switched on per environment in the PHP settings:
Other APM tools that need an extension of their own do not run on fortrabbit. Tools that work as a Composer package, such as Sentry, do.
Relation to web analytics
APM measures the code, web analytics the visitors. Some tools, such as Sentry and PostHog, cover parts of both.
Local profiling
PHP SPX is an open source profiler. It needs its own extension, which fortrabbit does not have, so use it in the local development environment.