cyberclick-os/apm-symfony-http-kernel

Symfony HttpKernel 的 Elastic APM

0.1.16 2023-12-12 15:26 UTC

README

此库支持对 Symfony HttpKernel 请求的 Span 跟踪。

安装

  1. 通过 composer 安装

    composer require pccomponentes/apm-symfony-http-kernel

使用方法

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

服务容器(Symfony)

PcComponentes\ElasticAPM\Symfony\Component\HttpKernel\EventSubscriber:
  class: PcComponentes\ElasticAPM\Symfony\Component\HttpKernel\EventSubscriber
  autoconfigure: true
  arguments:
    $router: '@router'
    $elasticApmTracer: '@apm.tracer' # \ZoiloMora\ElasticAPM\ElasticApmTracer instance.

许可证

根据 MIT 许可证 许可

阅读 LICENSE 了解更多信息