PHPackages                             tracelytics/laravel-tracelytics - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tracelytics/laravel-tracelytics

ActiveLibrary

tracelytics/laravel-tracelytics
===============================

Official Tracelytics AI Observability &amp; Exception Tracking SDK for Laravel

v1.0.0(today)00MITPHPPHP ^8.2

Since Aug 1Pushed todayCompare

[ Source](https://github.com/usetracelytics/tracelytics-laravel)[ Packagist](https://packagist.org/packages/tracelytics/laravel-tracelytics)[ RSS](/packages/tracelytics-laravel-tracelytics/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Tracelytics SDK for Laravel
===========================

[](#tracelytics-sdk-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/ca4d98c0f700bd7f6c8af465883e155121e3aa39c6f3640d567ef40360673ac8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74726163656c79746963732f74726163656c79746963732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tracelytics/tracelytics-laravel)[![Total Downloads](https://camo.githubusercontent.com/8d51d5edc462ff8e0b135c0c5678024897e15886f1ce58ef09ea00194efaec3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74726163656c79746963732f74726163656c79746963732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tracelytics/tracelytics-laravel)[![License](https://camo.githubusercontent.com/5f0682aa5cfbdbcfa76c20a381581ef3c73d2e95961283c2acb65b2e9ec58f3c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f74726163656c79746963732f74726163656c79746963732d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/tracelytics/tracelytics-laravel/blob/main/LICENSE)

Official Laravel integration package for **Tracelytics** — AI-powered observability, exception tracking, and automated Root Cause Analysis (RCA).

---

⚡ Features
----------

[](#-features)

- 🚀 **Zero Overhead Exception Capturing**: Asynchronous HTTP delivery with non-blocking fail-safe mechanisms.
- 🎯 **Laravel 11+ &amp; 10/9 Support**: First-class support for new `bootstrap/app.php` handlers as well as legacy `app/Exceptions/Handler.php`.
- 🔍 **Rich Context Extraction**: Captures stack trace, request parameters, headers, active environment, and user sessions safely.
- 🛠️ **Artisan Verification Command**: Built-in `php artisan tracelytics:test` command to instantly verify your connection.
- 🤖 **AI RCA Prepared Payload**: Structures stack traces for instant AI-driven automated code fixes.

---

📦 Installation
--------------

[](#-installation)

Install the package via Composer:

```
composer require tracelytics/tracelytics-laravel
```

---

⚙️ Configuration
----------------

[](#️-configuration)

Add your project's **Ingestion API Key** (and optional custom endpoint) to your `.env` file:

```
# Required: Your Tracelytics Project API Key (Settings -> Projects)
TRACELYTICS_API_KEY=pk_live_your_project_key_here

# Required: Tracelytics Ingestion Service API Endpoint
TRACELYTICS_ENDPOINT=http://localhost:8080/v1/events
```

### Publishing Configuration (Optional)

[](#publishing-configuration-optional)

To customize timeouts, environment defaults, or fallback options, publish the config file:

```
php artisan vendor:publish --tag=tracelytics-config
```

This creates `config/tracelytics.php`.

---

🚀 Setup &amp; Registration
--------------------------

[](#-setup--registration)

### For Laravel 11+

[](#for-laravel-11)

Register Tracelytics inside your application's `bootstrap/app.php` file:

```
