mindbreak/auto-tracer-bundle

Automatic tracing in Symfony

0.1.1 2021-06-05 21:04 UTC

This package is auto-updated.

Last update: 2024-04-06 18:18:49 UTC


README

https://shepherd.dev/github/MinDBreaK/AutoTracerBundle

This bundle aims at tracing automatically requests & events in a Symfony application.

Requirements

  • PHP 8
  • Symfony 5
  • Doctrine (Will be made optional later)
  • Jaeger

Installation

You will need to change your minimum-stability.

composer require mindbreak/auto-tracer-bundle

Then, enable the bundle in bundles.php

return [
    //...
    Mindbreak\SymfonyAutoTracer\SymfonyAutoTracerBundle::class => ['all' => true],
];

Create the config/packages/mindbreak_auto_tracer.yaml

mindbreak_auto_tracer:
    serverName: api-server #The server name that should appear in Jaeger. Usually your app name
    agentHostPort: jaeger:5775 # Or "%env(JAEGER_HOST)%" and declare the env var
    
    doctrine:
        traceArgs: true # If you want to log args, but will hit a bit perfs