pccomponentes/apm-twig

Elastic APM for Twig

0.1.1 2020-06-23 07:17 UTC

This package is auto-updated.

Last update: 2024-09-23 16:47:05 UTC


README

此库支持 Twig 渲染的 Span 跟踪。

安装

  1. 通过 composer 安装

    composer require pccomponentes/apm-twig

用法

在所有情况下,假定已经创建了一个 ElasticApmTracer 实例。

服务容器(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 }

许可协议

MIT 许可协议下授权

更多信息请参阅 LICENSE