PHPackages                             chocofamilyme/laravel-jaeger - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. chocofamilyme/laravel-jaeger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

chocofamilyme/laravel-jaeger
============================

Jaeger wrapper for Laravel

3.0.0(2y ago)1839.3k↓42.9%11[2 PRs](https://github.com/chocofamilyme/laravel-jaeger/pulls)1MITPHPPHP ^8.0

Since Jun 3Pushed 1y ago4 watchersCompare

[ Source](https://github.com/chocofamilyme/laravel-jaeger)[ Packagist](https://packagist.org/packages/chocofamilyme/laravel-jaeger)[ RSS](/packages/chocofamilyme-laravel-jaeger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (21)Used By (1)

Laravel Jaeger wrapper
======================

[](#laravel-jaeger-wrapper)

Requirements
------------

[](#requirements)

- PHP ^8.0
- Laravel ^9.0

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

[](#installation)

You can install the package via composer:

```
composer require chocofamilyme/laravel-jaeger
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Chocofamilyme\LaravelJaeger\LaravelJaegerServiceProvider" --tag="config"
```

Basic Usage
-----------

[](#basic-usage)

1. You need to inject `\Chocofamilyme\LaravelJaeger\Jaeger` class by DI
2. Start new span by command

```
    $jaeger->start('Some operation', [
        'tag1' => 'test',
        'tag2' => 'test'
    ]);
```

3. do some stuff
4. (optional) stop span

```
    $jaeger->stop('Some operation', [
        'tag3' => 'test',
    ]);
```

All unstopped spans will be automatically stopped when application is terminated

### Controlling the rate of traces

[](#controlling-the-rate-of-traces)

In the configuration file you may modify *JAEGER\_SAMPLE\_RATE* variable to configure the rate. The variable accepts values from 0 to 1.

For example, if you set 0.1 then only 10% of all traces is displayed. Set 1 to output them all.

Listeners
---------

[](#listeners)

There are 4 available listeners, they are disabled by default, you can turn on or write your own implementation for this listeners in config file

```
'listeners' => [
    'http' => [
        'enabled' => env('JAEGER_HTTP_LISTENER_ENABLED', false),
        'handler' => \Chocofamilyme\LaravelJaeger\JaegerMiddleware::class,
    ],
    'console' => [
        'enabled' => env('JAEGER_CONSOLE_LISTENER_ENABLED', false),
        'handler' => \Chocofamilyme\LaravelJaeger\Listeners\CommandListener::class,
    ],
    'query' => [
        'enabled' => env('JAEGER_QUERY_LISTENER_ENABLED', false),
        'handler' => \Chocofamilyme\LaravelJaeger\Listeners\QueryListener::class,
    ],
    'job' => [
        'enabled' => env('JAEGER_JOB_LISTENER_ENABLED', false),
        'handler' => \Chocofamilyme\LaravelJaeger\Listeners\JobListener::class,
    ],
]
```

- Http - Start new span for every http request
- Console - Start new span for every running artisan console commands
- Query - Start new span for every executed database query
- Job - Start new span for every dispatched queue job

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Read changelog [here](/changelog.md)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~67 days

Recently: every ~107 days

Total

12

Last Release

1062d ago

Major Versions

0.2.0 → 1.0.02022-04-13

1.0.1 → v2.x-dev2022-06-09

2.0.1 → 3.0.02023-06-16

PHP version history (2 changes)0.1.0PHP ^7.4|^8.0

1.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42729426?v=4)[Chocofamily](/maintainers/chocofamilyme)[@chocofamilyme](https://github.com/chocofamilyme)

---

Top Contributors

[![AidynMakhataev](https://avatars.githubusercontent.com/u/19181566?v=4)](https://github.com/AidynMakhataev "AidynMakhataev (13 commits)")[![btn441](https://avatars.githubusercontent.com/u/14887400?v=4)](https://github.com/btn441 "btn441 (6 commits)")[![vsvp21](https://avatars.githubusercontent.com/u/29223155?v=4)](https://github.com/vsvp21 "vsvp21 (4 commits)")[![dias-zhanabayev](https://avatars.githubusercontent.com/u/46632797?v=4)](https://github.com/dias-zhanabayev "dias-zhanabayev (3 commits)")[![0x3337](https://avatars.githubusercontent.com/u/6462138?v=4)](https://github.com/0x3337 "0x3337 (2 commits)")[![DieZeeL](https://avatars.githubusercontent.com/u/49496565?v=4)](https://github.com/DieZeeL "DieZeeL (2 commits)")[![akaWaster](https://avatars.githubusercontent.com/u/58727543?v=4)](https://github.com/akaWaster "akaWaster (2 commits)")[![L3o-pold](https://avatars.githubusercontent.com/u/4710495?v=4)](https://github.com/L3o-pold "L3o-pold (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/chocofamilyme-laravel-jaeger/health.svg)

```
[![Health](https://phpackages.com/badges/chocofamilyme-laravel-jaeger/health.svg)](https://phpackages.com/packages/chocofamilyme-laravel-jaeger)
```

###  Alternatives

[overtrue/laravel-query-logger

A dev tool to log all queries for laravel application.

413307.5k6](/packages/overtrue-laravel-query-logger)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)

PHPackages © 2026

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