pccomponentes/apm-twig

Elastic APM for Twig

0.1.1 2020-06-23 07:17 UTC

This package is auto-updated.

Last update: 2024-10-23 16:57:33 UTC


README

This library supports Span traces of Twig renderings.

Installation

  1. 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