pccomponentes/apm-dompdf

Elastic APM for Dompdf

0.1.1 2020-06-23 07:10 UTC

This package is auto-updated.

Last update: 2024-10-23 17:29:18 UTC


README

This library supports Span traces of Dompdf renderings.

Installation

  1. Install via composer

    composer require pccomponentes/apm-dompdf

Usage

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

Instantiate directly

<?php
declare(strict_types=1);

$domPdf = new PcComponentes\ElasticAPM\DomPdf\DomPdf(
    $apmTracer, /** \ZoiloMora\ElasticAPM\ElasticApmTracer instance. */
);

Instantiate with factory

<?php
declare(strict_types=1);

$domPdfFactory = new PcComponentes\ElasticAPM\DomPdf\DomPdfFactory(
    $apmTracer, /** \ZoiloMora\ElasticAPM\ElasticApmTracer instance. */
);

$domPdf = $domPdfFactory->create();

License

Licensed under the MIT license

Read LICENSE for more information