pccomponentes/apm-dompdf

Elastic APM for Dompdf

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 0

Open Issues: 0

pkg:composer/pccomponentes/apm-dompdf

0.1.1 2020-06-23 07:10 UTC

This package is auto-updated.

Last update: 2025-09-23 19:17:30 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