code-tool / jaeger-client-symfony-bridge
Installs: 353 591
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 5
Forks: 6
Open Issues: 2
Requires
- php: ^7.4|^8.0
- code-tool/jaeger-client-php: ^3.4
- symfony/config: ^4.4|^5.4|^6.0|^7.0
- symfony/console: ^4.4|^5.4|^6.0|^7.0
- symfony/dependency-injection: ^4.4|^5.4|^6.0|^7.0
- symfony/event-dispatcher: ^4.4|^5.4|^6.0|^7.0
- symfony/http-kernel: ^4.4|^5.4|^6.0|^7.0
- symfony/service-contracts: ^2|^3
- symfony/yaml: ^4.4|^5.4|^6.0|^7.0
Requires (Dev)
- vimeo/psalm: ^5.15
- dev-master
- v3.11.0
- v3.10.1
- v3.10.0
- v3.9.0
- v3.8.2
- v3.8.1
- v3.8.0
- v3.7.1
- v3.7.0
- v3.6.1
- v3.6.0
- v3.5.0
- v3.4.1
- v3.4.0
- v3.3.0
- v3.2.1
- v3.2.0
- v3.1.2
- v3.1.1
- v3.1.0
- 3.0.x-dev
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.16.2
- v2.16.1
- v2.16.0
- v2.15.0
- v2.14.0
- v2.13.0
- v2.12.0
- v2.11.1
- v2.11.0
- v2.10.1
- v2.10.0
- v2.9.5
- v2.9.4
- v2.9.3
- v2.9.2
- v2.9.1
- v2.9.0
- v2.8.0
- v2.7.4
- v2.7.3
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.0
- v2.5.1
- v2.5.0
- v2.4.1
- v2.4.0
- v2.3.0
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- 2.0.x-dev
- v2.0.25
- v2.0.24
- v2.0.23
- v2.0.22
- v2.0.21
- v2.0.20
- v2.0.19
- v2.0.18
- v2.0.17
- v2.0.16
- v2.0.15
- v2.0.14
- v2.0.13
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.13.0
- v1.12.0
- v1.11.1
- v1.11.0
- v1.10.1
- v1.10.0
- v1.9.5
- v1.9.4
- v1.9.3
- v1.9.0
- v1.8.0
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.0
- v1.5.1
- v1.5.0
- v1.4.1
- v1.4.0
- v1.3.0
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- 1.0.x-dev
- v1.0.35
- v1.0.34
- v1.0.33
- v1.0.32
- v1.0.31
- v1.0.30
- v1.0.29
- v1.0.28
- v1.0.27
- v1.0.26
- v1.0.25
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-test-priorities
- dev-fix-listeners-order
- dev-128-trace-id
- dev-name-generator
This package is auto-updated.
Last update: 2024-10-21 14:36:13 UTC
README
Getting started
Register JaegerBundle like any other bundle for Symfony 4+
// bundles.php return [ // ... \Jaeger\Symfony\JaegerBundle::class => ['all' => true], // ... ];
Denylist sampling operations
This feature allows to disable sampling for deny-listed operations.
It will be useful when your infrastructure initiates some operations which you are not insterested for tracking in Jaeger.
Operation names used in package configuration refers to first (parent) span operation name (https://www.jaegertracing.io/docs/latest/architecture/#span).
Hint: if you use default name generator (class
\Jaeger\Symfony\Name\Generator\DefaultNameGenerator
), your operation name for HTTP requests will be the same as matched symfony route name.
Example bundle config with denylist feature:
# config/jaeger.yaml jaeger: denylist: operation_names: - 'healthcheck' - 'metrics'
Name generation options
You can configure custom name generators based on regular expression pattern, which will be evaluated for operation name.
Configuration for this feature looks like key-value list, where key - regexp pattern, value - custom name generator DI service id (see details below).
Name generator should implement an Jaeger\Symfony\Name\Generator\NameGeneratorInterface
interface.
As a custom name generator you can specify a full DI service id, or just the suffix if your name generator service is named as jaeger.name.generator.*
.
Keys are considered body of the regular expression pattern, do not put any modifiers (e.g. /i
, /g
) or slashes; route
of the request or name
of the command should match to use alternative generator.
Expressions are checked top to bottom, if no match is found, default generator will be used
Example bundle config with name generation feature:
# config/jaeger.yaml jaeger: name_generator: max_length: 32 command: '^app:report:.+': 'my_service_generator_alias' .* : 'controller' request: 'user_routes_\w+': 'my_service_generator_alias'