PHPackages                             uptrace/uptrace - 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. uptrace/uptrace

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

uptrace/uptrace
===============

OpenTelemetry PHP distribution for Uptrace

v1.6.0(10mo ago)59.5k↓33.3%1Apache-2.0PHP

Since Oct 14Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/uptrace/uptrace-php)[ Packagist](https://packagist.org/packages/uptrace/uptrace)[ RSS](/packages/uptrace-uptrace/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (11)Used By (0)

Uptrace for PHP
===============

[](#uptrace-for-php)

[![Documentation](https://camo.githubusercontent.com/b4e60274cec8822eb5b908c0368eb9f7e6d056443d4e34178387a15803f4ebdb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f757074726163652d646f63756d656e746174696f6e2d696e666f726d6174696f6e616c)](https://uptrace.dev/get/opentelemetry-php)[![Chat](https://camo.githubusercontent.com/14328339ec2259e6e4a526ac71890f7b394c9fd69c3482c21bd0b9fbea399817/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d74656c656772616d2d7265643f636f6c6f723d7768697465266c6f676f3d74656c656772616d266c6f676f436f6c6f723d626c61636b)](https://t.me/uptrace)

[ ![](https://camo.githubusercontent.com/74197d7c6083598af2fac69f3379743880a9f6bdbf6aac76da90740dd4e9a856/68747470733a2f2f757074726163652e6465762f64657669636f6e2f7068702d6f726967696e616c2e737667)](https://uptrace.dev/get/opentelemetry-php)Introduction
------------

[](#introduction)

uptrace-php is a thing wrapper over OpenTelemery PHP that configures Otel SDK to export [traces](https://uptrace.dev/opentelemetry/distributed-tracing) and [metrics](https://uptrace.dev/opentelemetry/metrics) to Uptrace.

Quickstart
----------

[](#quickstart)

First, install Composer using the [installation instructions](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos)and add the following line to your project's `composer.json` file, as this library has not reached a stable release status yet:

```
 "minimum-stability": "dev"
```

Then, you can install uptrace-php:

```
composer require uptrace/uptrace
```

Run the [basic example](example/basic) below using the DSN from the Uptrace project settings page.

```
