PHPackages                             tracekit/php-apm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. tracekit/php-apm

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

tracekit/php-apm
================

TraceKit APM for PHP - Framework-agnostic distributed tracing and code monitoring

1.2.2(1mo ago)1181MITPHPPHP ^8.1

Since Nov 8Pushed 1mo agoCompare

[ Source](https://github.com/Tracekit-Dev/php-apm)[ Packagist](https://packagist.org/packages/tracekit/php-apm)[ RSS](/packages/tracekit-php-apm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (10)Versions (12)Used By (1)

TraceKit APM for PHP
====================

[](#tracekit-apm-for-php)

Framework-agnostic distributed tracing and performance monitoring for any PHP application.

[![Packagist Version](https://camo.githubusercontent.com/149c14269b5cd28ec55fc5082d40564a861a4b1ca74fb9a98d4ed454bc787c24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74726163656b69742f7068702d61706d2e737667)](https://packagist.org/packages/tracekit/php-apm)[![Downloads](https://camo.githubusercontent.com/2ea057a474085ff3ea34c0b5be04c932e07cac47678bea3bc66b7bb86fca8129/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f74726163656b69742f7068702d61706d2e737667)](https://packagist.org/packages/tracekit/php-apm)[![License](https://camo.githubusercontent.com/3c49b1090e06c0e7a404b03d19195df0de68bbece207af37445b81fa7b5d95cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f74726163656b69742f7068702d61706d2e737667)](https://packagist.org/packages/tracekit/php-apm)

Features
--------

[](#features)

- **Framework Agnostic** - Works with any PHP application (vanilla PHP, Symfony, Slim, etc.)
- **OpenTelemetry Standard** - Built on OpenTelemetry for industry-standard tracing
- **Automatic Context Propagation** - Child spans automatically inherit from parent
- **Manual Instrumentation** - Full control over what and how you trace
- **HTTP Request Tracing** - Track requests, database queries, and external API calls
- **Client IP Capture** - Automatic IP detection for DDoS &amp; traffic analysis
- **Error Tracking** - Capture exceptions with full context
- **Code Monitoring** - Live debugging with breakpoints and variable inspection
- **Metrics API** - Counter, Gauge, and Histogram metrics with automatic OTLP export
- **Low Overhead** - Minimal performance impact

Installation
------------

[](#installation)

```
composer require tracekit/php-apm
```

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

```
