pccomponentes/apm-twig

Elastic APM for Twig

Maintainers

Package info

github.com/PcComponentes/apm-twig

pkg:composer/pccomponentes/apm-twig

Statistics

Installs: 5 508

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.1 2020-06-23 07:17 UTC

This package is auto-updated.

Last update: 2026-02-23 20:07:41 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