PHPackages                             inbox/opentracing-bundle-doctrine-dbal - 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. [Database &amp; ORM](/categories/database)
4. /
5. inbox/opentracing-bundle-doctrine-dbal

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

inbox/opentracing-bundle-doctrine-dbal
======================================

Symfony Opentracing bundle extension for Doctrine DBAL and ORM

v1.2.3.2(12mo ago)001MITPHPPHP ^8.0

Since Mar 13Pushed 12mo agoCompare

[ Source](https://github.com/INBOKSS/OpentracingBundle-Doctrine-DBAL)[ Packagist](https://packagist.org/packages/inbox/opentracing-bundle-doctrine-dbal)[ RSS](/packages/inbox-opentracing-bundle-doctrine-dbal/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (15)Versions (20)Used By (0)

auxmoney OpentracingBundle - Doctrine DBAL
==========================================

[](#auxmoney-opentracingbundle---doctrine-dbal)

[![test](https://github.com/auxmoney/OpentracingBundle-Doctrine-DBAL/workflows/test/badge.svg)](https://github.com/auxmoney/OpentracingBundle-Doctrine-DBAL/actions?query=workflow%3Atest)[![GitHub release (latest SemVer)](https://camo.githubusercontent.com/0dae704cc20cfa9e92458e399cec6a918848b3b74456536efc25f62aa0e7023c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d446f637472696e652d4442414c)](https://github.com/auxmoney/OpentracingBundle-Doctrine-DBAL/releases/latest)[![Codacy Badge](https://camo.githubusercontent.com/cda3d3d3856170b56b0f07b1a42e8a54cafb87337cb3d1b1b89533e47db46fa3/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3563636161653364393463663431633638616438646538336464636263613161)](https://camo.githubusercontent.com/cda3d3d3856170b56b0f07b1a42e8a54cafb87337cb3d1b1b89533e47db46fa3/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3563636161653364393463663431633638616438646538336464636263613161)[![Code Climate maintainability](https://camo.githubusercontent.com/fd6ddc8ae1ceae40192487da1fd76dc4918974991abf26ef86ea8860cc353a21/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d446f637472696e652d4442414c)](https://camo.githubusercontent.com/fd6ddc8ae1ceae40192487da1fd76dc4918974991abf26ef86ea8860cc353a21/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d446f637472696e652d4442414c)[![Scrutinizer code quality (GitHub/Bitbucket)](https://camo.githubusercontent.com/390a951ddcaabb4872fe2dfa332880d19e5325b324600819a54ec8798ee6732b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d446f637472696e652d4442414c)](https://camo.githubusercontent.com/390a951ddcaabb4872fe2dfa332880d19e5325b324600819a54ec8798ee6732b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d446f637472696e652d4442414c)[![GitHub](https://camo.githubusercontent.com/2af6b352c86733fcdb22cd8bda75fd08f1314ba5f51c625fa22bbd892a1dcf99/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d446f637472696e652d4442414c)](https://camo.githubusercontent.com/2af6b352c86733fcdb22cd8bda75fd08f1314ba5f51c625fa22bbd892a1dcf99/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6175786d6f6e65792f4f70656e74726163696e6742756e646c652d446f637472696e652d4442414c)

This bundle adds automatic spanning for Doctrine DBAL connections to the [OpentracingBundle](https://github.com/auxmoney/OpentracingBundle-core).

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-doctrine-dbal
```

### 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\OpentracingDoctrineDBALBundle\OpentracingDoctrineDBALBundle();
```

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

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

[](#configuration)

You can optionally configure environment variables, however, the default configuration will run fine out of the box for most DBAL based applications. If you cannot change environment variables in your project, you can alternatively overwrite the container parameters directly.

environment variablecontainer parametertypedefaultdescriptionAUXMONEY\_OPENTRACING\_DOCTRINE\_FULL\_STATEMENTauxmoney\_opentracing.doctrine.tag\_full\_statement`string``true`whether to add a tag with the full SQL statement to the spanAUXMONEY\_OPENTRACING\_DOCTRINE\_PARAMETERSauxmoney\_opentracing.doctrine.tag\_parameters`string``true`whether to add a tag with the statement parameters to the spanAUXMONEY\_OPENTRACING\_DOCTRINE\_ROW\_COUNTauxmoney\_opentracing.doctrine.tag\_row\_count`string``false`whether to add a tag with the affected / returned rows to the span; see [limitations section](#limitations)AUXMONEY\_OPENTRACING\_DOCTRINE\_USERauxmoney\_opentracing.doctrine.tag\_user`string``false`whether to add a tag with the connection username to the spanHint: you can use `true`, `on`, `yes` or `1` to enable an environment variable.

Usage
-----

[](#usage)

When querying databases using Doctrine DBAL (or higher level packages like Doctrine ORM), spans reflecting these queries are automatically generated and added to the trace. The generated tags can contain:

tag namecontainsdb.statementthe executed statementdb.parametersthe parameters of the executed statement, if presentdb.row\_countaffected / returned rows of the executed statement; see [limitations section](#limitations)db.userthe username of the decorated DBAL connectionLimitations
-----------

[](#limitations)

- `db.row_count`: the correctness of this value depends heavily on the implementation of the `Doctrine\DBAL\Driver\Statement` of the driver for the database. For example, if you are using a PDO driver, keep in mind: "For most databases, PDOStatement::rowCount() does not return the number of rows affected by a SELECT statement.". See [the official PHP documentation](https://www.php.net/manual/en/pdostatement.rowcount.php) for more information on this particular topic. If you are getting different results than expected, consult the documentation for the used driver.

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

36

—

LowBetter than 82% of packages

Maintenance50

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

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

Recently: every ~257 days

Total

19

Last Release

361d ago

Major Versions

v0.3.3 → v1.0.02021-11-17

PHP version history (4 changes)v0.1.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/27d181e94772bccefd4043cbedf2b8a5c1e5429f316ae6868cee0aee073608a1?d=identicon)[juris.malinens](/maintainers/juris.malinens)

---

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 (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![jmalinens](https://avatars.githubusercontent.com/u/569039?v=4)](https://github.com/jmalinens "jmalinens (3 commits)")[![buzmakova](https://avatars.githubusercontent.com/u/2510396?v=4)](https://github.com/buzmakova "buzmakova (1 commits)")[![filisko](https://avatars.githubusercontent.com/u/8798694?v=4)](https://github.com/filisko "filisko (1 commits)")

---

Tags

symfonyormdoctrinedbalSymfony Bundleopentracingdistributed-tracingauxmoneyopentracing-bundle

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/inbox-opentracing-bundle-doctrine-dbal/health.svg)

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

###  Alternatives

[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[auxmoney/opentracing-bundle-core

Symfony Opentracing bundle to easily enable distributed tracing

25904.4k9](/packages/auxmoney-opentracing-bundle-core)[nemo64/dbal-rds-data

rds-data driver for doctrine dbal

2713.2k](/packages/nemo64-dbal-rds-data)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

813.1k](/packages/ahmed-bhs-doctrine-doctor)[vasek-purchart/doctrine-date-time-immutable-types-bundle

Bundle integration of Doctrine DateTimeImmutable types for Symfony

1085.6k](/packages/vasek-purchart-doctrine-date-time-immutable-types-bundle)

PHPackages © 2026

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