项目作者: PcComponentes

项目描述 :
Elastic APM for Dompdf
高级语言: PHP
项目地址: git://github.com/PcComponentes/apm-dompdf.git
创建时间: 2020-05-28T06:45:55Z
项目社区:https://github.com/PcComponentes/apm-dompdf

开源协议:MIT License

下载


Elastic APM for Dompdf

This library supports Span traces of Dompdf renderings.

Installation

1) Install via composer

  1. ```shell script
  2. composer require pccomponentes/apm-dompdf
  3. ```

Usage

In all cases, an already created instance of ElasticApmTracer is assumed.

Instantiate directly

  1. <?php
  2. declare(strict_types=1);
  3. $domPdf = new PcComponentes\ElasticAPM\DomPdf\DomPdf(
  4. $apmTracer, /** \ZoiloMora\ElasticAPM\ElasticApmTracer instance. */
  5. );

Instantiate with factory

  1. <?php
  2. declare(strict_types=1);
  3. $domPdfFactory = new PcComponentes\ElasticAPM\DomPdf\DomPdfFactory(
  4. $apmTracer, /** \ZoiloMora\ElasticAPM\ElasticApmTracer instance. */
  5. );
  6. $domPdf = $domPdfFactory->create();

License

Licensed under the MIT license

Read LICENSE for more information