PHPackages                             hyperia/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. hyperia/laravel-jaeger

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

hyperia/laravel-jaeger
======================

Jaeger wrapper for Laravel

00PHP

Since Oct 27Pushed 2y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9861d8483a334bd54621b1829f2b55620417df08080a0fe29426659eacb9385b?d=identicon)[karster](/maintainers/karster)

---

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)")[![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)")[![0x3337](https://avatars.githubusercontent.com/u/6462138?v=4)](https://github.com/0x3337 "0x3337 (2 commits)")[![karster](https://avatars.githubusercontent.com/u/17579408?v=4)](https://github.com/karster "karster (1 commits)")[![L3o-pold](https://avatars.githubusercontent.com/u/4710495?v=4)](https://github.com/L3o-pold "L3o-pold (1 commits)")[![jurajmalinic](https://avatars.githubusercontent.com/u/59866451?v=4)](https://github.com/jurajmalinic "jurajmalinic (1 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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