Skip to content

PcComponentes/apm-dompdf

Repository files navigation

Elastic APM for Dompdf

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