App Traces with Precision and Versatility
Instantly identify performance bottlenecks with detailed transaction monitoring that reveal the full journey of each request, leading directly to the exact line of source code.
Every transaction traced to the line of code
Scout automatically collects and analyzes transactions across your web endpoints and background jobs. Visual indicators highlight performance hotspots, pinpointing issues down to the specific line of code, author, commit date, and deploy time. Add custom context like user IDs or subscription tiers for deeper filtering.
Summary view
Aggregates all identical method calls and ranks by total cost – perfect for quickly identifying your most expensive operations.
Timeline view
Shows the chronological execution order of every call, letting you see exactly how your code flows during a request – great for identifying issues like N+1 queries or blocking operations that delay other processes.
Find the slow requests that matter
What was the slowest request yesterday? How is the app performing for user X? Which endpoints are generating the bulk of slow requests? The trace explorer answers these in seconds.
Slowest requests
Identify poorly performing requests to focus your optimization efforts where it matters most.
User analysis
Track and analyze application performance across different users to understand their experience.
Problem endpoints
Spot endpoints generating excessive slow requests and impacting overall performance.
Custom filters
Filter transactions using any custom dimension to drill down into specific scenarios.
Visual insights
Explore and analyze trace metrics through interactive histograms that reveal patterns.
Live updates
Watch filtered trace lists update in real-time as you explore different performance dimensions.
Code Backtraces with GitHub Integration
If you've enabled GitHub integration, you can see the line of code, associated SQL or HTTP endpoint, and the author, commit date, and deployment time for the relevant slow code. If GitHub integration isn't enabled, you'll still see a detailed backtrace.
SQL visibility without compromising security
Scout automatically sanitizes and captures SQL queries, so you can track database performance without exposing sensitive data. N+1 problems are annotated inline. Click the "SQL" button next to any call to view complete query details.
Query traces from your AI coding agent
Scout's MCP server gives Claude Code, Cursor, and other AI coding agents direct access to your trace data. Your agent can list endpoint traces, inspect individual traces with full span detail, and see the code path behind a slow request. When it finds the problem, it already has enough context to suggest a fix.
The Scout CLI provides the same access from your terminal via scout traces with JSON and TOON output formats designed for LLM consumption.
Add Scout to Your App
Install the agent, deploy, and see your first traces in about 5 minutes.
Get started in under 3 minutes with our Ruby agent.
- 1
Add the gem to your Gemfile:
gem 'scout_apm' - 2
Install it:
bundle install - 3
Download your customized config file and place it at
config/scout_apm.yml. - 4
Deploy.
Get started in under 3 minutes with our Python agent.
- 1
Install the package:
pip install scout-apm - 2
Add Scout to your framework: Django: add
"scout_apm.django"first inINSTALLED_APPS. Flask:ScoutApm(app). FastAPI:app.add_middleware(ScoutMiddleware). - 3
Set your Scout key and app name, then deploy.
Get started in under 3 minutes with our PHP agent.
- 1
Install the Laravel package:
composer require scoutapp/scout-apm-laravel - 2
Optionally install the PHP extension:
sudo pecl install scoutapm - 3
Set
SCOUT_MONITOR,SCOUT_KEY, andSCOUT_NAMEin.env, then deploy. Using Symfony? Installscoutapp/scout-apm-symfony-bundleinstead.
Get started in under 3 minutes with our Elixir agent.
- 1
Add the dependency to
mix.exs:{:scout_apm, "~> 2.0"} - 2
Download your customized config file to
config/scout_apm.exs. - 3
Add instrumentation in
lib/your_app_web.ex, then deploy.
Get started in under 3 minutes with our Node.js agent.
- 1
Install the package:
npm install @scout_apm/scout-apm - 2
Create
scout.jswith your app name and key, and require it first in your entry point. - 3
Add the middleware. Express:
expressMiddleware()anderrorMiddleware(). NestJS:nestMiddleware()andnestErrorFilter(). - 4
Set
SCOUT_KEYandSCOUT_NAME, then deploy.
Prefer one command? npx @scout_apm/wizard signs you up and configures everything.
App Traces FAQ
What languages does Scout tracing support?
Scout tracing is available for Ruby (Rails, Sinatra, Grape, Sidekiq, Resque, and more), Python (Django, Flask, FastAPI, Celery), Node.js (Express, NestJS, Prisma), PHP (Laravel, Symfony), and Elixir (Phoenix, LiveView, Oban). All languages include automatic instrumentation with code-level visibility.
Can I query traces from Claude Code, Cursor, or other AI coding agents?
Yes. Scout's MCP server includes tools for listing endpoint traces and inspecting individual traces with full span detail. Your AI coding agent can query which endpoints are slowest, pull a specific trace, and see the exact code path and query timing. The Scout CLI provides the same access via scout traces with JSON and TOON output for LLM consumption.
Does Scout detect N+1 queries automatically?
Yes. Scout identifies repeated query patterns within a trace without configuration. It flags the code location, query count, and time impact. This works for ActiveRecord (Rails), Django ORM, Eloquent (Laravel), Ecto (Elixir), and Prisma (Node.js).
How does Scout tracing compare to Datadog or New Relic?
Scout focuses on code-level application traces rather than infrastructure-wide distributed tracing. You see the exact line of code, the author, and the deploy behind every slow request. Datadog and New Relic offer broader infrastructure tracing but with less depth at the application code level. Scout also provides trace data via MCP server and CLI for AI-assisted development workflows.