ErrorTag is an error monitoring and observability platform. This package is the client SDK that captures errors from your Laravel application and sends them to the ErrorTag dashboard for analysis, alerting, and team collaboration.
- Automatic Error Capture - Hooks into Laravel's exception handler
- Intelligent Error Grouping - Groups similar errors using fingerprints
- Privacy-First - Sanitizes sensitive data (passwords, tokens, headers)
- Async by Default - Queues errors for background sending
- Rich Context - Captures request, user, and application data
- Highly Configurable - Sample rates, ignored exceptions, and more
- Fully Tested - Comprehensive test coverage with Pest
Install the package via Composer:
composer require error-tag/errortag-laravelPublish the configuration file:
php artisan vendor:publish --tag="errortag-laravel-config"Add your ErrorTag API key to .env:
ERRORTAG_KEY=project_xxxxx
ERRORTAG_ENV=productionOnce installed, ErrorTag automatically captures all unhandled exceptions. Test your setup:
php artisan errortag:test --send-test-error// This exception is automatically captured
throw new Exception('Something went wrong!');use ErrorTag\ErrorTag\Facades\ErrorTag;
try {
processPayment($order);
} catch (Exception $e) {
ErrorTag::captureException($e);
}ErrorTag::context([
'order_id' => $order->id,
'payment_provider' => 'stripe',
]);composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.