Error Monitoring

Note: Error monitoring is available for Ruby, Python and PHP agents.

Installation

Enabling Scout’s Error Monitoring works with your existing Scout APM setup. Error monitoring is built into the same libraries that provide APM monitoring.

For a Rails Application

Error monitoring is built into the Scout APM Ruby agent.

AIf you haven't, add the scout_apm gem to your gemfile.

gem 'scout_apm'

BConfigure Scout in your scout_apm.yml configuration file:

common: &defaults

     # ... other Scout APM settings

     errors_enabled: true

CDeploy!

See the following docs for custom error reporting and further configuration options.

For a Python Application

Error monitoring is built into the Scout APM Python agent.

AIf you haven't already, set up Scout APM for Python.

BEnable error monitoring by setting the environment variable:

export SCOUT_ERRORS_ENABLED=true

CDeploy!

See the following docs for custom error reporting and further configuration options.

For a PHP Application

Error monitoring is built into the Scout APM PHP agent.

AInstall the Scout PHP package via Composer:

composer require scoutapp/scout-apm-php

BConfigure and initialize Scout in your application:

use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;
use Scoutapm\Agent;
use Scoutapm\Config;
use Scoutapm\Config\ConfigKey;

/** @var LoggerInterface $psrLoggerImplementation */

$agent = Agent::fromConfig(
    Config::fromArray([
        ConfigKey::APPLICATION_NAME => 'Your application name',
        ConfigKey::APPLICATION_KEY => 'your scout key',
        ConfigKey::MONITORING_ENABLED => true,
        ConfigKey::ERRORS_ENABLED => true, // <-- add this to enable error tracking
        ConfigKey::LOG_LEVEL => LogLevel::ERROR, // <-- optional: reduce logging verbosity
    ]),
    $psrLoggerImplementation
);

CDeploy!

See the following docs for custom error reporting and further configuration options.

Overview

Scout’s Error monitoring provides comprehensive error tracking and triage capabilities designed to help development teams efficiently identify, prioritize, and resolve application issues. By integrating seamlessly with Scout APM, error data is automatically enriched with performance context, making it easier to understand the full impact of errors on your application.

Key features include:

Error monitoring Demo

Error monitoring Home

The Error monitoring home page provides a comprehensive overview of your application’s error landscape. This central dashboard displays error groups - collections of similar errors that have been automatically organized for efficient monitoring.

Error Summary

At the top of the page, you’ll find key metrics for your selected timeframe:

Error Groups

The main interface displays error groups in a sortable table with the following information:

Bulk Actions

The interface supports efficient bulk operations on selected error groups:

Filtering and Views

Use the filtering controls to focus on specific error states:

Additional filters allow you to narrow results by priority, assignment, or other criteria.

Error Details & Triage

Error Detail View

Clicking on any error group takes you to the detailed error view, where you can examine specific error instances and perform triage actions.

Error Context

The error detail page provides comprehensive context for understanding and resolving issues:

Triage Actions

Scout provides three primary triage actions for managing errors:

Resolve

Mark an error group as resolved when the underlying issue has been fixed. Resolved errors are removed from the default view but remain accessible through filtering. If an error occurs after it has been resolved, it will become unresolved and considered active again.

Defer

Temporarily silence an error group until a specified date and time. This is useful for:

To defer an error, hover over the Resolve button and select the defer option, then choose your desired date and time.

Reactivate

Reopen previously resolved errors if issues resurface or were prematurely closed. Errors will be automatically reactivated if a previously resolved error occurs again.

Priority monitoring

Set error priorities to help your team focus on the most critical issues:

Error Exploration

Use the “Explore” button to access a comprehensive list of all individual error occurrences. Scout retains individual error data for 30 days, and aggregate parent groups indefinitely (total counts, first seen at (& sha), last error message, etc).

Critical Endpoints

Scout’s critical endpoint feature automatically elevates the priority of errors occurring on your most important application endpoints.

Marking Critical Endpoints

To designate an endpoint as critical:

  1. Navigate to the Web Endpoints view
  2. Select the specific endpoint you want to mark as critical
  3. Toggle the critical endpoint slider in the top-right corner of the endpoint header
Critical Endpoint

Automatic Priority Assignment

When an endpoint is marked as critical:

Priority Persistence

Important notes about critical endpoint priority monitoring:

Retention and Data monitoring

Scout retains individual errors for 30 days, and aggregate parent groups (total counts, first seen at (& sha), last error message, etc) indefinitely, providing sufficient time for analysis and resolution tracking. This retention period allows teams to:

Team Collaboration

Assignment

Assign error groups to specific team members to clarify ownership and ensure accountability:

Notifications and Alerting

Slack Error Notification

Scout’s notification system keeps teams informed about error activity through multiple channels:

Supported Alert Channels

Scout integrates with popular alerting and communication platforms:

For detailed configuration and setup instructions for each platform, see the Alerting documentation.

FAQ

How are errors grouped together?

Scout automatically groups similar errors based on the error type, location in code, and request components. This intelligent grouping helps reduce noise and allows you to focus on underlying issues rather than individual error instances.

How do notifications work with deferred errors?

When you defer an error, Scout stops sending notifications about new occurrences until the specified date and time. Once the deferral period expires, the error group becomes active again and normal notification rules apply.

What happens if I disable errors on a critical endpoint?

If you remove the critical endpoint designation, only new errors will be affected. Existing errors that were marked as high priority while the endpoint was critical will retain their high priority status.

Does error tracking affect application performance?

Scout’s error tracking is designed to have minimal performance impact. Error capture and reporting happen asynchronously and use efficient data structures to avoid affecting your application’s response times.