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

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.

Symfony Trace Timeline
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.

Query Analysis

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.

Symfony N+1 Detection
Auto-Instrumentation

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.

Symfony Auto-Instrumentation
Supported Frameworks

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 Profiling

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.

Symfony Memory Bloat Detection
AI Native

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.

AI Native Monitoring
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.

Get Started in Minutes

Add Scout to Your Symfony App

Get Scout running on your Symfony app in under 3 minutes.

1

Install the package:

composer require scoutapp/scout-apm-symfony-bundle
2

Optionally install the PHP extension for deeper instrumentation:

sudo pecl install scoutapm
3

Configure in your .env file and deploy.

FAQ

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.

Ready to Optimize Your App?

Join engineering teams who trust Scout Monitoring for hassle-free performance monitoring. With our 3-step setup, powerful tooling, and responsive support, you can quickly identify and fix performance issues before they impact your users.

Start Monitoring for Free