pccomponentes / apm-twig
Elastic APM for Twig
Installs: 4 194
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Requires
- php: ^7.4
- twig/twig: ^3.0
- zoilomora/elastic-apm-agent-php: ^0.1
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-23 16:57:33 UTC
README
This library supports Span traces of Twig renderings.
Installation
-
Install via composer
composer require pccomponentes/apm-twig
Usage
In all cases, an already created instance of ElasticApmTracer is assumed.
Service Container (Symfony)
twig.extension.apm: class: PcComponentes\ElasticAPM\Twig\Extension\ApmExtension arguments: $profile: '@twig.profile' $elasticApmTracer: '@apm.tracer' # \ZoiloMora\ElasticAPM\ElasticApmTracer instance. public: false tags: - { name: twig.extension }
License
Licensed under the MIT license
Read LICENSE for more information