This library supports Span traces of Twig renderings.
-
Install via composer
composer require pccomponentes/apm-twig
In all cases, an already created instance of ElasticApmTracer is assumed.
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 }
Licensed under the MIT license
Read LICENSE for more information