code-tool/doctrine-jaeger-symfony-bridge

v1.7.0 2022-04-18 08:59 UTC

This package is auto-updated.

Last update: 2024-12-18 15:16:28 UTC


README

Getting started

Register bundle with your kernel:

// config/bundles.php
return [
    // ...
    \Doctrine\DBAL\Jaeger\Symfony\DependencyInjection\JaegerDbalBundle::class => ['all' => true],
    // ...
];

OR

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new \Doctrine\DBAL\Jaeger\Symfony\DependencyInjection\JaegerDbalBundle(),
        ];

        // ...
    }
}

Add wrapper class definition in doctrine configuration

doctrine:
  dbal:
    connections:
      %connection_name%:
        ...
        wrapper_class: 'Doctrine\DBAL\Jaeger\Wrapper\JaegerConnectionWrapper'
        ...