PHPackages                             open-telemetry/sdk - 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. open-telemetry/sdk

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

open-telemetry/sdk
==================

SDK for OpenTelemetry PHP.

1.14.0(3mo ago)2328.5M↓27.9%720Apache-2.0PHPPHP ^8.1

Since Jan 6Pushed 1w ago6 watchersCompare

[ Source](https://github.com/opentelemetry-php/sdk)[ Packagist](https://packagist.org/packages/open-telemetry/sdk)[ RSS](/packages/open-telemetry-sdk/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (28)Versions (67)Used By (20)

[![Releases](https://camo.githubusercontent.com/46e38a504120203bf7615645011bcf2bb834e03e8eb0bc8e0f4864c729fd5baf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c65617365732d707572706c65)](https://github.com/opentelemetry-php/sdk/releases)[![Source](https://camo.githubusercontent.com/217376b403c581b8c32e58bc919143ed4204017fe436f440af9ba20bfd618344/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d73646b2d677265656e)](https://github.com/open-telemetry/opentelemetry-php/tree/main/src/SDK)[![Mirror](https://camo.githubusercontent.com/26d930d7a042063a58d9c38ec3264eedb735fa092338dc39f8c0362b72a53f21/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6972726f722d6f70656e74656c656d657472792d2d7068703a73646b2d626c7565)](https://github.com/opentelemetry-php/sdk)[![Latest Version](https://camo.githubusercontent.com/b73cfe59c67e46c88e1ad57221961aae4b532f7604b2dcf40e9b4070697464f8/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d74656c656d657472792f73646b2f762f756e737461626c65)](https://packagist.org/packages/open-telemetry/sdk/)[![Stable](https://camo.githubusercontent.com/e6cc3cd03301b30d9bf48b05c89e0500561367be6a5ccabdf5e2d0e20aaa7891/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d74656c656d657472792f73646b2f762f737461626c65)](https://packagist.org/packages/open-telemetry/sdk/)

OpenTelemetry SDK
=================

[](#opentelemetry-sdk)

The OpenTelemetry PHP SDK implements the API, and should be used in conjunction with contributed exporter(s) to generate and export telemetry.

Documentation
-------------

[](#documentation)

Getting started
---------------

[](#getting-started)

### Manual setup

[](#manual-setup)

See

### SDK Builder

[](#sdk-builder)

See [https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/sdk\_builder.php](https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/sdk_builder.php)

### Autoloading

[](#autoloading)

SDK autoloading works with configuration values provided via the environment (or php.ini).

The SDK can be automatically created and registered, if the following conditions are met:

- `OTEL_PHP_AUTOLOAD_ENABLED=true`
- all required [SDK configuration](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#general-sdk-configuration) is provided

SDK autoloading will be attempted as part of composer's autoloader:

```
require 'vendor/autoload.php';

$tracer = \OpenTelemetry\API\Globals::tracerProvider()->getTracer('example');
$meter = \OpenTelemetry\API\Globals::meterProvider()->getMeter('example');
```

If autoloading was not successful (or partially successful), no-op implementations of the above may be returned.

See [https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/autoload\_sdk.php](https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/autoload_sdk.php) for a more detailed example.

Contributing
------------

[](#contributing)

This repository is a read-only git subtree split. To contribute, please see the main [OpenTelemetry PHP monorepo](https://github.com/open-telemetry/opentelemetry-php).

###  Health Score

70

—

ExcellentBetter than 100% of packages

Maintenance90

Actively maintained with recent releases

Popularity60

Solid adoption and visibility

Community49

Growing community involvement

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~29 days

Total

66

Last Release

104d ago

Major Versions

0.0.17 → 1.0.0beta12022-12-11

1.8.0 → 2.x-dev2025-09-26

PHP version history (2 changes)0.0.5PHP ^7.4 || ^8.0

1.1.0beta1PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4978962?v=4)[Brett McBride](/maintainers/brettmc)[@brettmc](https://github.com/brettmc)

![](https://avatars.githubusercontent.com/u/4099109?v=4)[Bob Strecansky](/maintainers/bobstrecansky)[@bobstrecansky](https://github.com/bobstrecansky)

![](https://www.gravatar.com/avatar/69cffb51399d5672406e66e7abb83f547f0f75755746d1b6144ce4042429c8e1?d=identicon)[otel-php-bot](/maintainers/otel-php-bot)

---

Top Contributors

[![brettmc](https://avatars.githubusercontent.com/u/4978962?v=4)](https://github.com/brettmc "brettmc (126 commits)")[![Nevay](https://avatars.githubusercontent.com/u/22509671?v=4)](https://github.com/Nevay "Nevay (52 commits)")[![tidal](https://avatars.githubusercontent.com/u/57825?v=4)](https://github.com/tidal "tidal (27 commits)")[![kishannsangani](https://avatars.githubusercontent.com/u/93989268?v=4)](https://github.com/kishannsangani "kishannsangani (5 commits)")[![Blacksmoke16](https://avatars.githubusercontent.com/u/12136995?v=4)](https://github.com/Blacksmoke16 "Blacksmoke16 (5 commits)")[![jerrytfleung](https://avatars.githubusercontent.com/u/8791493?v=4)](https://github.com/jerrytfleung "jerrytfleung (4 commits)")[![amber0612](https://avatars.githubusercontent.com/u/30532446?v=4)](https://github.com/amber0612 "amber0612 (4 commits)")[![ChrisLightfootWild](https://avatars.githubusercontent.com/u/106102472?v=4)](https://github.com/ChrisLightfootWild "ChrisLightfootWild (4 commits)")[![lalex](https://avatars.githubusercontent.com/u/869741?v=4)](https://github.com/lalex "lalex (3 commits)")[![yuktea](https://avatars.githubusercontent.com/u/73362292?v=4)](https://github.com/yuktea "yuktea (3 commits)")[![weslenteche](https://avatars.githubusercontent.com/u/54692047?v=4)](https://github.com/weslenteche "weslenteche (2 commits)")[![ynikitin-etsy](https://avatars.githubusercontent.com/u/116388679?v=4)](https://github.com/ynikitin-etsy "ynikitin-etsy (2 commits)")[![SeanHood](https://avatars.githubusercontent.com/u/135392?v=4)](https://github.com/SeanHood "SeanHood (2 commits)")[![piotrantosik](https://avatars.githubusercontent.com/u/154553?v=4)](https://github.com/piotrantosik "piotrantosik (2 commits)")[![stickeegreg](https://avatars.githubusercontent.com/u/48593081?v=4)](https://github.com/stickeegreg "stickeegreg (2 commits)")[![matt-hensley](https://avatars.githubusercontent.com/u/130569?v=4)](https://github.com/matt-hensley "matt-hensley (2 commits)")[![GrzegorzDrozd](https://avatars.githubusercontent.com/u/1885137?v=4)](https://github.com/GrzegorzDrozd "GrzegorzDrozd (2 commits)")[![znerol](https://avatars.githubusercontent.com/u/23288?v=4)](https://github.com/znerol "znerol (1 commits)")[![ditsuke](https://avatars.githubusercontent.com/u/72784348?v=4)](https://github.com/ditsuke "ditsuke (1 commits)")[![intuibase](https://avatars.githubusercontent.com/u/9551626?v=4)](https://github.com/intuibase "intuibase (1 commits)")

---

Tags

loggingsdkMetricsapmtracingopentelemetryotel

### Embed Badge

![Health badge](/badges/open-telemetry-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/open-telemetry-sdk/health.svg)](https://phpackages.com/packages/open-telemetry-sdk)
```

###  Alternatives

[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M736](/packages/sylius-sylius)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

9067.8k](/packages/n1ebieski-ksef-php-client)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k28.0M318](/packages/openai-php-client)[anthropic-ai/sdk

Anthropic PHP SDK

163583.3k17](/packages/anthropic-ai-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
