PHPackages                             taisph/laravel-opentracing - 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. taisph/laravel-opentracing

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

taisph/laravel-opentracing
==========================

1.0.0-rc.3(4y ago)1226.4k11[4 issues](https://github.com/taisph/laravel-opentracing/issues)Apache-2.0PHPPHP &gt;=5.6

Since Apr 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/taisph/laravel-opentracing)[ Packagist](https://packagist.org/packages/taisph/laravel-opentracing)[ RSS](/packages/taisph-laravel-opentracing/feed)WikiDiscussions develop Synced 2w ago

READMEChangelogDependencies (9)Versions (6)Used By (0)

OpenTracing for Laravel
=======================

[](#opentracing-for-laravel)

[![Total Downloads](https://camo.githubusercontent.com/5a02ff55da77a65ac2bd98cecc824fbdbfec35fcfb4188994071498dbab8986b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7461697370682f6c61726176656c2d6f70656e74726163696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/taisph/laravel-opentracing)[![Latest Stable Version](https://camo.githubusercontent.com/7fed3540f60859861781f2b4dda81c74d4d4b5ed66bf23b9979dc3f03157f061/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7461697370682f6c61726176656c2d6f70656e74726163696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/taisph/laravel-opentracing)[![StyleCI](https://camo.githubusercontent.com/a125c01a676a1d344abee23d87377ee87758dc347a63e6b206ae25e56fde9f23/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3133393539313534312f736869656c643f7374796c653d666c61742d737175617265266272616e63683d646576656c6f70)](https://github.styleci.io/repos/139591541)[![Build Status](https://camo.githubusercontent.com/e8c6059d72025004657e1080ba4abd78008f8bddd8eb8354805284a52505aa25/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7461697370682f6c61726176656c2d6f70656e74726163696e672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/taisph/laravel-opentracing)[![Coverage Status](https://camo.githubusercontent.com/c09bcf824e71642d48df00d3970aebaee2402d0f33bd128754f9f51f2158be7a/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f7461697370682f6c61726176656c2d6f70656e74726163696e672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/taisph/laravel-opentracing?branch=develop)

Reference implementation of the OpenTracing API for Laravel including a server-less local tracer for application logging purposes.

See [OpenTracing](http://opentracing.io/) for more information.

Supported Clients
-----------------

[](#supported-clients)

Currently supported clients:

- Local: No-op tracer used mainly for adding trace ids to logs.
- Jaeger: open source, end-to-end distributed tracing. See [Jaeger](https://www.jaegertracing.io/) and Jonah George's [Jaeger Client PHP](https://github.com/jonahgeorge/jaeger-client-php).

Note that a patched version of Jaeger Client PHP is currently required to retain PHP 5.6 support. If you need that in your application, add the config below to your `composer.json` file in the `repositories` section.

```
{
    "type": "vcs",
    "url": "https://github.com/taisph/jaeger-client-php"
}
```

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

[](#installation)

Install the latest version using:

```
composer require taisph/laravel-opentracing
```

Copy the default configuration file to your application if you want to change it by running the command below. Note that you have to use `--force` if the file already exists.

```
php artisan vendor:publish --provider="LaravelOpenTracing\TracingServiceProvider"
```

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

[](#basic-usage)

### Example setup

[](#example-setup)

Example `bootstrap/app.php` file:

```
