Symfony Performance Monitoring
Errors, logs, and traces for your Symfony applications. Scout's PHP agent automatically instruments Symfony controllers, Doctrine queries, Twig rendering, and queue workers with minimal overhead. Supports Symfony 4.0+ and PHP 7.2 through 8.3.
Errors, Logs, and Traces in One View for Symfony Apps
Scout connects Symfony exceptions to the full request trace and surrounding log lines in a single view. When a controller throws an exception or a worker fails, you see the error, the trace including middleware, Doctrine queries, and Twig rendering, and the surrounding log lines together.
Error Monitoring
Automatic exception capture across Symfony controllers, event listeners, and queue workers. Errors are linked to the request trace with full stack traces and request context attached.
Log Management
Log output is enriched with trace context. See what your Symfony application was doing before, during, and after an issue without switching tools.
App Traces
Transaction tracing with code-level visibility into Symfony controllers, Doctrine SQL queries, Twig template rendering, and external HTTP calls. Detailed backtraces show the exact line of code responsible for slow requests.
N+1 Detection in Doctrine, Automatically
Scout automatically detects N+1 query patterns in Doctrine without configuration. The agent monitors PDO queries within Symfony request handling, queue workers, and console commands, identifies repeated query patterns from lazy-loaded associations, and shows the exact code location and performance impact of each N+1.
What Scout Instruments in Your Symfony App
Scout's PHP agent auto-instruments Symfony at the framework level. Controllers, Doctrine SQL queries, and Twig template rendering are all captured automatically. PDO database queries, Predis and PhpRedis calls, Elasticsearch and MongoDB operations, Memcached lookups, and libcurl HTTP requests are instrumented with no additional configuration. Install the optional native PHP extension via pecl for even deeper instrumentation.
Works with the Symfony frameworks you already use
Scout auto-instruments the frameworks and libraries in your stack. No manual configuration required.
Symfony
- Symfony
- Symfony Console
- Symfony Messenger
Databases
- Doctrine
- PDO
- MongoDB
- Elasticsearch
- Memcached
Templating
- Twig
Caching
- Predis
- PhpRedis
HTTP
- libcurl
Memory Bloat Detection for Symfony
Symfony queue workers and console commands can accumulate memory over time. Scout detects memory bloat at the transaction level, showing which controllers, queue jobs, and code paths are responsible for memory growth.
Query Your Symfony App Data from AI Assistants and the Terminal
Scout offers hosted and local MCP servers with 17 tools, a Go CLI available via Homebrew with TOON format for LLM output, and a public API. Query your Symfony application's errors, traces, Doctrine N+1 insights, and worker performance from Claude Code, Cursor, or the terminal.
MCP Server
Hosted or local MCP server with 17 tools covering apps, endpoints, traces, errors, insights, background jobs, and usage data. Works with Claude Code, Cursor, VS Code Copilot, and any MCP-enabled assistant.
Scout CLI
Go binary available via Homebrew. Query app metrics, endpoint performance, traces, error groups, and insights from the terminal. Outputs human-friendly tables or TOON format for LLM consumption.
Public API
Full programmatic access to your monitoring data for building custom integrations, dashboards, or automation workflows.
Add Scout to Your Symfony App
Get Scout running on your Symfony app in under 3 minutes.
Install the package:
composer require scoutapp/scout-apm-symfony-bundleOptionally install the PHP extension for deeper instrumentation:
sudo pecl install scoutapmConfigure in your .env file and deploy.
Symfony Monitoring FAQ
What is the best monitoring tool for Symfony?
Scout Monitoring provides integrated errors, logs, and traces for Symfony applications. The PHP agent includes automatic Doctrine N+1 detection, error monitoring, log management with trace context, and auto-instrumentation for PDO, Predis, PhpRedis, Elasticsearch, MongoDB, Memcached, and libcurl. Supports Symfony 4.0+ and PHP 7.2 through 8.3.
What is the best APM for Symfony?
Scout is a PHP APM that instruments Symfony at the framework level. It covers controllers, Doctrine SQL queries with N+1 detection, Twig rendering, external service calls, and error monitoring in a single tool. Scout supports Symfony 4.0 and later.
How do I detect N+1 queries in Doctrine?
Scout automatically detects N+1 query patterns in Doctrine without any configuration. The agent monitors PDO queries within Symfony request handling, queue workers, and console commands, identifies repeated query patterns from lazy-loaded associations, and shows the exact code location, the number of excess queries, and the performance impact.
Does Scout support Symfony Messenger?
Yes. Scout instruments Symfony Messenger workers. Each message handler appears as a transaction in Scout with Doctrine query timing, error tracking, and memory bloat analysis.
Does Scout support error monitoring for Symfony?
Yes. Scout captures exceptions across Symfony controllers, event listeners, and queue workers automatically. Each error is linked to the request trace with full stack traces and request context.
What PHP versions does Scout support for Symfony?
Scout's PHP agent supports PHP 7.2 through 8.3, which covers all currently maintained Symfony versions from 4.0 onward.