PHPackages                             open-telemetry/exporter-otlp - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. open-telemetry/exporter-otlp

ActiveLibrary[HTTP &amp; Networking](/categories/http)

open-telemetry/exporter-otlp
============================

OTLP exporter for OpenTelemetry.

1.4.0(3mo ago)718.2M↑11.5%120Apache-2.0PHPPHP ^8.1

Since Nov 2Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/opentelemetry-php/exporter-otlp)[ Packagist](https://packagist.org/packages/open-telemetry/exporter-otlp)[ RSS](/packages/open-telemetry-exporter-otlp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (34)Used By (20)

[![Releases](https://camo.githubusercontent.com/46e38a504120203bf7615645011bcf2bb834e03e8eb0bc8e0f4864c729fd5baf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c65617365732d707572706c65)](https://github.com/opentelemetry-php/exporter-otlp/releases)[![Source](https://camo.githubusercontent.com/2a451139c040f0f6d184e8ef7dd65801cd781d97494cbc65f2cd5262d91410fa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6578706f727465722d2d6f746c702d677265656e)](https://github.com/open-telemetry/opentelemetry-php/tree/main/src/Contrib/Otlp)[![Mirror](https://camo.githubusercontent.com/326a44ae86fc815f1411fb9b6e0c500916561f72da51372f69c0428aa7266952/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6972726f722d6f70656e74656c656d657472792d2d7068703a6578706f727465722d2d6f746c702d626c7565)](https://github.com/opentelemetry-php/exporter-otlp)[![Latest Version](https://camo.githubusercontent.com/72dbcd986a452a37ecb8596f360d074a790fc28696cd44a45ac4e8d0303703ef/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d74656c656d657472792f6578706f727465722d6f746c702f762f756e737461626c65)](https://packagist.org/packages/open-telemetry/exporter-otlp/)[![Stable](https://camo.githubusercontent.com/98d590b0a9bfc06d0618580f278b41cbfa55e49f3db480b7df97e9491110ca68/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d74656c656d657472792f6578706f727465722d6f746c702f762f737461626c65)](https://packagist.org/packages/open-telemetry/exporter-otlp/)

OpenTelemetry OTLP exporter
===========================

[](#opentelemetry-otlp-exporter)

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

[](#documentation)

Usage
-----

[](#usage)

See [https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/traces/exporters/otlp\_http.php](https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/traces/exporters/otlp_http.php)

Http transport
--------------

[](#http-transport)

```
$transport = (new \OpenTelemetry\Contrib\Otlp\OtlpHttpTransportFactory())->create('http://collector:4318', 'application/json');
$exporter = new \OpenTelemetry\Contrib\Otlp\SpanExporter($transport);
```

gRPC transport
--------------

[](#grpc-transport)

To export over gRPC, you will need to additionally install the `open-telemetry/transport-grpc` package.

Protobuf Runtime library
------------------------

[](#protobuf-runtime-library)

OTLP exporting requires a [protobuf implementation](https://github.com/protocolbuffers/protobuf/tree/main/php).

The `open-telemetry/gen-otlp-protobuf` requires the `google/protobuf` native implementation. It's fine for development, but not recommended for production usage.

The recommended option for production is to install the Protobuf C extension for PHP. The extension makes exporting *significantly* more performant. This can be easily installed with the following command:

```
pecl install protobuf
```

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

62

—

FairBetter than 99% of packages

Maintenance81

Actively maintained with recent releases

Popularity53

Moderate usage in the ecosystem

Community37

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 55.8% of commits — single point of failure

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 ~37 days

Recently: every ~58 days

Total

33

Last Release

103d ago

Major Versions

0.0.17 → 1.0.0beta22022-12-11

1.3.2 → 2.x-dev2025-09-26

PHP version history (3 changes)0.0.16PHP ^7.4 || ^8.0

1.1.0PHP ^8.1

2.x-devPHP ^8.2

### 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)

---

Top Contributors

[![brettmc](https://avatars.githubusercontent.com/u/4978962?v=4)](https://github.com/brettmc "brettmc (43 commits)")[![Nevay](https://avatars.githubusercontent.com/u/22509671?v=4)](https://github.com/Nevay "Nevay (17 commits)")[![tidal](https://avatars.githubusercontent.com/u/57825?v=4)](https://github.com/tidal "tidal (3 commits)")[![stickeegreg](https://avatars.githubusercontent.com/u/48593081?v=4)](https://github.com/stickeegreg "stickeegreg (2 commits)")[![overtrue](https://avatars.githubusercontent.com/u/1472352?v=4)](https://github.com/overtrue "overtrue (1 commits)")[![pieterocp](https://avatars.githubusercontent.com/u/68863060?v=4)](https://github.com/pieterocp "pieterocp (1 commits)")[![piotrantosik](https://avatars.githubusercontent.com/u/154553?v=4)](https://github.com/piotrantosik "piotrantosik (1 commits)")[![rachelyangdog](https://avatars.githubusercontent.com/u/175132284?v=4)](https://github.com/rachelyangdog "rachelyangdog (1 commits)")[![SergeyKleyman](https://avatars.githubusercontent.com/u/7782093?v=4)](https://github.com/SergeyKleyman "SergeyKleyman (1 commits)")[![smaddock](https://avatars.githubusercontent.com/u/524425?v=4)](https://github.com/smaddock "smaddock (1 commits)")[![tcarrio](https://avatars.githubusercontent.com/u/8659099?v=4)](https://github.com/tcarrio "tcarrio (1 commits)")[![weslenteche](https://avatars.githubusercontent.com/u/54692047?v=4)](https://github.com/weslenteche "weslenteche (1 commits)")[![xvilo](https://avatars.githubusercontent.com/u/390769?v=4)](https://github.com/xvilo "xvilo (1 commits)")[![ditsuke](https://avatars.githubusercontent.com/u/72784348?v=4)](https://github.com/ditsuke "ditsuke (1 commits)")[![jspaetzel](https://avatars.githubusercontent.com/u/828108?v=4)](https://github.com/jspaetzel "jspaetzel (1 commits)")[![lalex](https://avatars.githubusercontent.com/u/869741?v=4)](https://github.com/lalex "lalex (1 commits)")

---

Tags

httpMetricstracingopentelemetryotelexportergRPCotlp

### Embed Badge

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

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

###  Alternatives

[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2322.9M248](/packages/open-telemetry-sdk)[friendsofopentelemetry/opentelemetry-bundle

Traces, metrics, and logs instrumentation within your Symfony application

638.6k](/packages/friendsofopentelemetry-opentelemetry-bundle)[open-telemetry/api

API for OpenTelemetry PHP.

1933.0M214](/packages/open-telemetry-api)[worldia/instrumentation-bundle

Symfony opentelemetry auto-instrumentation: requests, commands, messenger, doctrine.

2769.8k](/packages/worldia-instrumentation-bundle)

PHPackages © 2026

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