PHPackages                             auxmoney/opentracing-bundle-monolog - 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. auxmoney/opentracing-bundle-monolog

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

auxmoney/opentracing-bundle-monolog
===================================

Symfony Opentracing bundle extension for Monolog

v1.2.3(3y ago)3810.7k↓43.8%1[2 PRs](https://github.com/auxmoney/OpentracingBundle-Monolog/pulls)MITPHPPHP ^8.0

Since Jan 16Pushed 1y ago5 watchersCompare

[ Source](https://github.com/auxmoney/OpentracingBundle-Monolog)[ Packagist](https://packagist.org/packages/auxmoney/opentracing-bundle-monolog)[ RSS](/packages/auxmoney-opentracing-bundle-monolog/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (17)Used By (0)

auxmoney OpentracingBundle - Monolog
====================================

[](#auxmoney-opentracingbundle---monolog)

[![test](https://github.com/auxmoney/OpentracingBundle-Monolog/workflows/test/badge.svg)](https://github.com/auxmoney/OpentracingBundle-Monolog/actions?query=workflow%3Atest)[![GitHub release (latest SemVer)](https://camo.githubusercontent.com/c4c5e3f5793304bad03c8f164f66f94174acfe189376cdaf1d22b0d15916625f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d4d6f6e6f6c6f67)](https://github.com/auxmoney/OpentracingBundle-Monolog/releases/latest)[![Codacy Badge](https://camo.githubusercontent.com/42b86d3eae341c97eca85b4fa673e76ffb68747fab2ce7e019401b189d6d1d31/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6661306336356437323334363461656261663636626335323234343565306538)](https://camo.githubusercontent.com/42b86d3eae341c97eca85b4fa673e76ffb68747fab2ce7e019401b189d6d1d31/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6661306336356437323334363461656261663636626335323234343565306538)[![Code Climate maintainability](https://camo.githubusercontent.com/414874ec693da65c8032b7a3deae6d9f7d621e4eb4a76b3d0ad8a7cda8606acb/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d4d6f6e6f6c6f67)](https://camo.githubusercontent.com/414874ec693da65c8032b7a3deae6d9f7d621e4eb4a76b3d0ad8a7cda8606acb/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d4d6f6e6f6c6f67)[![Scrutinizer code quality (GitHub/Bitbucket)](https://camo.githubusercontent.com/e305715cf4c13974edea00bfb0098adea32577917ab623528bb478c3fa1a6e91/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d4d6f6e6f6c6f67)](https://camo.githubusercontent.com/e305715cf4c13974edea00bfb0098adea32577917ab623528bb478c3fa1a6e91/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d4d6f6e6f6c6f67)[![GitHub](https://camo.githubusercontent.com/adf5a5cbd1124044f7a81e6dac39c7eca80f7ec5717faff3476e53119ed73524/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d4d6f6e6f6c6f67)](https://camo.githubusercontent.com/adf5a5cbd1124044f7a81e6dac39c7eca80f7ec5717faff3476e53119ed73524/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d4d6f6e6f6c6f67)

This bundle adds a monolog processor to the [OpentracingBundle](https://github.com/auxmoney/OpentracingBundle-core) to automatically enrich log contexts with the current span context.

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

[](#installation)

### Prerequisites

[](#prerequisites)

This bundle is only an additional plugin and should not be installed independently. See [its documentation](https://github.com/auxmoney/OpentracingBundle-core#installation) for more information on installing the OpentracingBundle first.

### Require dependencies

[](#require-dependencies)

After you have installed the OpentracingBundle:

- require the dependencies:

```
    composer req auxmoney/opentracing-bundle-monolog
```

### Enable the bundle

[](#enable-the-bundle)

If you are using [Symfony Flex](https://github.com/symfony/flex), you are all set!

If you are not using it, you need to manually enable the bundle:

- add bundle to your application:

```
    # Symfony 3: AppKernel.php
    $bundles[] = new Auxmoney\OpentracingMonologBundle\OpentracingMonologBundle();
```

```
    # Symfony 4+: bundles.php
    Auxmoney\OpentracingMonologBundle\OpentracingMonologBundle::class => ['all' => true],
```

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

[](#configuration)

No configuration is necessary, the Monolog bundle extension will automatically load the provided `Processor` by tag.

Usage
-----

[](#usage)

Whenever a message is logged, the content is extended with extra information of the span context.

```
    [2020-01-10 11:38:03] php.INFO: .... {"exception":"[object] (ErrorException(code: 0) ...."} {"opentracing-context":"{\"UBER-TRACE-ID\":\"15e880402e1a194715e880402e19a3e0:15e880402e19a3e0:0:1\"}"}

```

Development
-----------

[](#development)

Be sure to run

```
    composer run-script quality
```

every time before you push code changes. The tools run by this script are also run in the CI pipeline.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 62.2% 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 ~100 days

Recently: every ~125 days

Total

13

Last Release

1113d ago

Major Versions

v0.4.5 → v1.0.02021-11-17

PHP version history (4 changes)v0.3.0PHP ^7.1.33

v1.0.0PHP ^7.3.27

v1.1.0PHP ^7.4|^8.0

v1.2.3PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/58fb41ad66c6b45096cad21d54aa1aacabcb9eedc8974664e1e6776327662816?d=identicon)[cawolf](/maintainers/cawolf)

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

---

Top Contributors

[![cawolf](https://avatars.githubusercontent.com/u/1932623?v=4)](https://github.com/cawolf "cawolf (23 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![auxTomala](https://avatars.githubusercontent.com/u/221138940?v=4)](https://github.com/auxTomala "auxTomala (1 commits)")[![filisko](https://avatars.githubusercontent.com/u/8798694?v=4)](https://github.com/filisko "filisko (1 commits)")

---

Tags

auxmoneydistributed-tracingmonologopentracingopentracing-bundlesymfonysymfony-bundlesymfonymonologSymfony Bundleopentracingdistributed-tracingauxmoneyopentracing-bundle

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/auxmoney-opentracing-bundle-monolog/health.svg)

```
[![Health](https://phpackages.com/badges/auxmoney-opentracing-bundle-monolog/health.svg)](https://phpackages.com/packages/auxmoney-opentracing-bundle-monolog)
```

###  Alternatives

[auxmoney/opentracing-bundle-core

Symfony Opentracing bundle to easily enable distributed tracing

25904.4k9](/packages/auxmoney-opentracing-bundle-core)[macpaw/sentry-monolog-adapter

Sentry monolog logging bundle

25232.9k](/packages/macpaw-sentry-monolog-adapter)

PHPackages © 2026

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