PHPackages                             bekand/telescope-request-track - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. bekand/telescope-request-track

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

bekand/telescope-request-track
==============================

Automatically attach request identifiers to Laravel JSON responses and Telescope request entries.

v1.0.2(7mo ago)413MITPHPPHP ^8.1

Since Sep 30Pushed 7mo agoCompare

[ Source](https://github.com/anduen-beqiri/telescope-request-track)[ Packagist](https://packagist.org/packages/bekand/telescope-request-track)[ RSS](/packages/bekand-telescope-request-track/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Telescope request tracker
=========================

[](#telescope-request-tracker)

Automatically attach a Telescope-compatible request identifier to every JSON response and propagate it via headers.

Installation
------------

[](#installation)

```
composer require bekand/telescope-request-track
```

The package registers itself automatically thanks to Laravel's package auto-discovery.

Configuration
-------------

[](#configuration)

Publish the configuration to customise header names, JSON keys, or disable the middleware globally.

```
php artisan vendor:publish --tag=telescope-track-config
```

Available options (see `config/telescope-track.php`):

- `enabled` (bool): Toggle the middleware globally (default `true`).
- `show_in_json` (bool): Control whether the request ID is appended to JSON payloads (default `true`).
- `key` (string): JSON key added to responses (default `request_id`).
- `header` (string): Header used for propagation (default `X-Request-Id`).
- `routes` (array): Middleware groups that should receive the request ID middleware (default `['api', 'web']`).
- `except` (array): URI patterns (same semantics as `$request->is()`) that should not receive a request ID.

Usage
-----

[](#usage)

The middleware is prepended globally, so every JSON response automatically gains a request identifier. Responses that already define the configured JSON key are respected.

If a response body is a JSON list, it's wrapped into a structure like:

```
{
  "data": [1, 2, 3],
  "request_id": "..."
}
```

### Skipping specific routes

[](#skipping-specific-routes)

Wrap routes with the provided `SkipRequestId` middleware to bypass augmentation:

```
use BekAnd\TelescopeRequestTrack\Middleware\SkipRequestId;

Route::get('/health', function () {
    return response()->json(['status' => 'ok']);
})->middleware(SkipRequestId::class);
```

### Telescope integration

[](#telescope-integration)

When `laravel/telescope` is installed, the package tags request entries with the request identifier so you can filter them easily:

```
request-id:

```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

Released under the MIT License.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance64

Regular maintenance activity

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

222d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b20316d68e145f9f947dce0dacd1914dc3effe1a7d620e90dd8c4bef37fcf3d?d=identicon)[BekAnd](/maintainers/BekAnd)

---

Top Contributors

[![anduen-beqiri](https://avatars.githubusercontent.com/u/99914623?v=4)](https://github.com/anduen-beqiri "anduen-beqiri (10 commits)")

---

Tags

debugginglaravellaravel-packagelaravel-telescopelaravel-telescope-packageopen-sourcephptracking-apirequestmiddlewarelaraveltelescoperequest id

### Embed Badge

![Health badge](/badges/bekand-telescope-request-track/health.svg)

```
[![Health](https://phpackages.com/badges/bekand-telescope-request-track/health.svg)](https://phpackages.com/packages/bekand-telescope-request-track)
```

###  Alternatives

[fruitcake/laravel-telescope-toolbar

Toolbar for Laravel Telescope based on Symfony Web Profiler

8041.6M3](/packages/fruitcake-laravel-telescope-toolbar)[bmatovu/laravel-xml

Laravel XML Support

91270.4k](/packages/bmatovu-laravel-xml)[mad-web/nova-telescope-link

Smart Link for Laravel Nova to Telescope Debug Assistant.

38195.2k](/packages/mad-web-nova-telescope-link)[tucker-eric/laravel-xml-middleware

A Laravel Middleware to accept XML requests

181.2M](/packages/tucker-eric-laravel-xml-middleware)[illuminatech/multipart-middleware

'multipart/form-data' parser middleware for Laravel

34268.8k](/packages/illuminatech-multipart-middleware)[yusukezzz/slim-debugbar

4213.5k](/packages/yusukezzz-slim-debugbar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
