philkra/elastic-apm-php-agent
PHP agent for Elastic APM that instruments your application to capture transactions, spans, errors, and performance metrics. Sends telemetry to Elastic APM Server for tracing and monitoring, with support for web and CLI workloads and configurable sampling.
See all configuration options here.
$agent = new \PhilKra\Agent( [ 'appName' => 'demo' ] );
When creating the agent, you can directly inject shared contexts such as user, tags and custom.
$agent = new \PhilKra\Agent( [ 'appName' => 'with-custom-context' ], [
'user' => [
'id' => 12345,
'email' => '[email protected]',
],
'tags' => [
// ... more key-values
],
'custom' => [
// ... more key-values
]
] );
How can I help you explore Laravel packages today?