Registry / observability / philkra-elastic-apm-php-agent

philkra-elastic-apm-php-agent

JSON →
library6.5.8phppackagistunverified

A PHP agent for Elastic APM v2 Intake API to monitor application performance.

composer require philkra/elastic-apm-php-agent
INSTALL
IMPORT
SIG · PHILKRA-ELASTIC-AP
P
philkra-elastic-apm-php-agent
observabilityphpv6.5.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Agent
use PhilKra\ElasticApm\Agent;

Initialize the APM agent, start a transaction, and send it.

<?php use PhilKra\ElasticApm\Agent; $agent = new Agent(['appName' => 'my-app', 'serverUrl' => 'http://localhost:8200']); $transaction = $agent->startTransaction('GET /users'); // ... do work ... $transaction->end(); $agent->send();
Debug
Known issues
breakingRequires PHP 7.2+ and the curl extension.
fix
Ensure PHP version >= 7.2 and curl extension is enabled.
affects: >=6.0.0
Upgrade
Version history
6.5.8latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
OpenAI (training)
2
Amazon
1
Resources
philkra-elastic-apm-php-agent — pip install philkra-elastic-apm-php-agent · libregistry