Skip to content

Provide auto tracing capabilities in plain PHP with Opentracing and Jaeger

License

Notifications You must be signed in to change notification settings

MinDBreaK/AutoTracerBundle

Repository files navigation

AutoTracerBundle

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

About

Provide auto tracing capabilities in plain PHP with Opentracing and Jaeger

Topics

Resources

License

Stars

Watchers

Forks

Languages