Elixir Performance Monitoring
Errors, logs, and traces for your Elixir and Phoenix applications. Scout's Elixir agent 2.0 automatically instruments your code, captures errors via telemetry, and connects log context to traces with minimal overhead. Supports Elixir 1.14+, Phoenix 1.6+, and Ecto 3.x.
Errors, Logs, and Traces in One View for Elixir Apps
Scout combines error monitoring, log management, and transaction tracing into a single view for your Phoenix application. When an exception fires in a controller, LiveView, or Oban job, you see the error, the request trace, and the surrounding log context together. No tab switching, no correlation by timestamp.
Error Monitoring
Telemetry-driven error capture via PhoenixErrorTelemetry that attaches to Phoenix and LiveView error events automatically. No changes to your controllers or LiveView modules required.
Log Management
Log output is enriched with trace context and forwarded alongside performance data. See what your application was doing before, during, and after an issue without switching tools.
App Traces
Transaction tracing with code-level visibility into Phoenix request handling, LiveView mount/handle_event/handle_params, Ecto queries, and Oban job execution. Detailed backtraces show the exact code location.
N+1 Detection and Query Analysis for Ecto
Scout automatically detects N+1 query patterns in Ecto without configuration. The agent monitors database queries within Phoenix request handling, LiveView callbacks, and Oban background processes, identifying repeated query patterns and showing the code location and performance impact of each N+1.
LiveView, Finch, Tesla, and Oban Out of the Box
Scout's Elixir agent 2.0 auto-instruments the libraries your Phoenix application already uses. LiveView instrumentation covers mount, handle_event, and handle_params with timing for each phase. Finch, Req, and Tesla HTTP clients are instrumented automatically, and Oban background jobs appear with per-job timing and queue metrics. All instrumentation is telemetry-based. No manual instrumentation code required.
Elixir libraries and frameworks auto-instrumented by Scout
- Phoenix
- Ecto
- LiveView
- Oban
- Finch
- Req
- Tesla
- EEx
- HEEx
Memory Bloat Detection for the BEAM
BEAM processes can accumulate memory over time, especially in long-running GenServers, LiveView processes, and Oban workers. Scout detects memory bloat at the application level, showing which code paths and processes are responsible for memory growth. This goes beyond host-level metrics by telling you what is causing the increase, not just that it is happening.
Query Your Elixir App Data from AI Assistants and the Terminal
Scout offers hosted and local MCP servers with 17 tools, a Go CLI via Homebrew with TOON format, and a public API. Query your Phoenix application's errors, traces, Ecto N+1 insights, and Oban job performance from your AI coding assistant 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 Elixir App
Get started in under 3 minutes with our easy to install Elixir agent.
Add to your mix.exs:
{:scout_apm, "~> 2.0"}Download your customized config to config/scout_apm.exs.
Add instrumentation to lib/your_app_web.ex and deploy.
Elixir Monitoring FAQ
What is the best application monitoring tool for Elixir and Phoenix?
Scout provides integrated errors, logs, and traces for Elixir and Phoenix applications. The Elixir agent 2.0 includes telemetry-driven error capture via PhoenixErrorTelemetry, log management with trace context enrichment, automatic LiveView instrumentation, Ecto N+1 detection, and auto-instrumentation for Finch, Req, Tesla, and Oban. Scout is built for development teams that want all their monitoring signals in one place without enterprise complexity.
What is the best APM for Elixir?
Scout is a purpose-built APM for Elixir that goes beyond basic metrics. The agent auto-instruments Phoenix controllers, views, and templates (EEx, Exs, HEEx), Ecto 3.x queries with N+1 detection, LiveView mount/handle_event/handle_params, Oban background jobs, and HTTP clients including Finch, Req, and Tesla. Error monitoring, log management, and tracing are unified in a single view.
Does Scout support Phoenix LiveView monitoring?
Yes. Scout's Elixir agent automatically instruments LiveView mount, handle_event, and handle_params callbacks with timing for each phase. This gives you visibility into where time is spent in your real-time UI without adding any instrumentation code to your LiveView modules.
Does Scout detect N+1 queries in Ecto?
Yes. Scout automatically detects N+1 query patterns in Ecto 3.x without configuration. The agent monitors database queries within Phoenix request handling, LiveView callbacks, and Oban background processes, identifying repeated query patterns and showing the code location and performance impact of each N+1.
Does Scout support error monitoring for Elixir?
Yes. Error monitoring in the Elixir agent 2.0 is telemetry-driven via PhoenixErrorTelemetry. It attaches to Phoenix and LiveView error events automatically, with no changes to your controllers or LiveView modules required. When an error fires, you see the error, the request trace, and surrounding logs together in one view.
Does Scout monitor Oban background jobs?
Yes. Scout auto-instruments Oban background jobs with execution timing, queue metrics, and error tracking. Each Oban job appears as its own transaction in Scout with full trace detail, including any Ecto queries, HTTP calls via Finch or Tesla, and errors that occur during execution. No wrapper modules or manual spans needed.
Can I use my AI coding assistant with Scout for Elixir apps?
Yes. Scout offers hosted and local MCP servers with 17 tools that work with Claude Code, Cursor, VS Code Copilot, and any MCP-enabled assistant. The Scout CLI, available via Homebrew, gives you terminal access to the same data and outputs in TOON format for LLM consumption. You can query your Phoenix application's errors, traces, Ecto N+1 insights, and Oban job performance directly from your editor or terminal. There is also a public API for custom integrations.