mindbreak / auto-tracer-bundle
Automatic tracing in Symfony
0.1.1
2021-06-05 21:04 UTC
Requires
- doctrine/dbal: ^3.1
- mindbreak/jaeger-php: ^0.1.0
- opentracing/opentracing: ^1.0
- psr/event-dispatcher: ^1.0
- symfony/config: ^5.3
- symfony/dependency-injection: ^5.3
- symfony/http-foundation: ^5.3
- symfony/http-kernel: ^5.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- vimeo/psalm: ^4.7
README
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