PHPackages                             instana/opentelemetry-php-exporter - 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. instana/opentelemetry-php-exporter

Abandoned → [open-telemetry/opentelemetry-exporter-instana](/?search=open-telemetry%2Fopentelemetry-exporter-instana)Library[Logging &amp; Monitoring](/categories/logging)

instana/opentelemetry-php-exporter
==================================

Instana exporter for OpenTelemetry PHP.

0.1.0(1y ago)072.9k↓94.1%1Apache-2.0PHPPHP ^8.1

Since Apr 10Pushed 1y ago7 watchersCompare

[ Source](https://github.com/instana/opentelemetry-php-exporter)[ Packagist](https://packagist.org/packages/instana/opentelemetry-php-exporter)[ RSS](/packages/instana-opentelemetry-php-exporter/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Instana OpenTelemetry PHP Exporter
==================================

[](#instana-opentelemetry-php-exporter)

Instana exporter for OpenTelemetry.

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

[](#documentation)

Installing via Composer
-----------------------

[](#installing-via-composer)

Install Composer in a common location or in your project

```
curl -s https://getcomposer.org/installer | php
```

Install via Composer

```
composer require instana/opentelemetry-php-exporter
```

Usage
-----

[](#usage)

Utilizing the OpenTelemetry PHP SDK, we can send spans natively to Instana, by providing an OpenTelemetry span processor our `SpanExporterInterface`.

This can be manually constructed, or created from the `SpanExporterFactory`. See the factory implementation for how to manually construct the `SpanExporter`. The factory reads from two environment variables which can be set according, else will fallback onto the following defaults

```
INSTANA_AGENT_HOST=127.0.0.1
INSTANA_AGENT_PORT=42699
```

The service name that is visible in the Instana UI can be configured with the following environment variables. OpenTelemetry provides `OTEL_SERVICE_NAME` (see documentation [here](https://opentelemetry.io/docs/languages/sdk-configuration/general/#otel_service_name)) as a way to customize this within the SDK. We also provide `INSTANA_SERVICE_NAME` which will be taken as the highest precedence.

```
INSTANA_SERVICE_NAME=custom-service-name
```

Example
-------

[](#example)

```
use OpenTelemetry\SDK\Trace\SpanProcessor\SimpleSpanProcessor;
use OpenTelemetry\SDK\Trace\TracerProvider;

$tracerProvider = new TracerProvider(
    new SimpleSpanProcessor(
        Registry::spanExporterFactory("instana")->create()
    )
);
$tracer = $tracerProvider->getTracer('io.instana.opentelemetry.php');

$span = $tracer->spanBuilder('root')->startSpan();
$span->setAttribute('remote_ip', '1.2.3.4')
    ->setAttribute('country', 'CAN');
$span->addEvent('generated_session', [
    'id' => md5((string) microtime(true)),
]);
$span->end();

$tracerProvider->shutdown();
```

Contributions
-------------

[](#contributions)

This repo is maintained by IBM Instana and is read-only. Issues and other contributions should be reported as part of standard [Instana product support](https://www.ibm.com/support/pages/instana-support).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance46

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 85.7% 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

Unknown

Total

1

Last Release

450d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25182699?v=4)[Austin Kothig](/maintainers/kothiga)[@kothiga](https://github.com/kothiga)

![](https://avatars.githubusercontent.com/u/6466034?v=4)[Boris Kuschel](/maintainers/bkuschel)[@bkuschel](https://github.com/bkuschel)

![](https://avatars.githubusercontent.com/u/139580694?v=4)[Heena Bansal](/maintainers/HeenaBansal20)[@HeenaBansal20](https://github.com/HeenaBansal20)

![](https://avatars.githubusercontent.com/u/29879375?v=4)[Dixon Huang](/maintainers/dhuang00)[@dhuang00](https://github.com/dhuang00)

---

Top Contributors

[![HeenaBansal20](https://avatars.githubusercontent.com/u/139580694?v=4)](https://github.com/HeenaBansal20 "HeenaBansal20 (6 commits)")[![dhuang00](https://avatars.githubusercontent.com/u/29879375?v=4)](https://github.com/dhuang00 "dhuang00 (1 commits)")

---

Tags

tracingopentelemetryotelexportercontribinstana

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/instana-opentelemetry-php-exporter/health.svg)

```
[![Health](https://phpackages.com/badges/instana-opentelemetry-php-exporter/health.svg)](https://phpackages.com/packages/instana-opentelemetry-php-exporter)
```

###  Alternatives

[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

167558.4k1](/packages/keepsuit-laravel-opentelemetry)[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

592.7M9](/packages/open-telemetry-opentelemetry-auto-laravel)[open-telemetry/opentelemetry-auto-symfony

OpenTelemetry auto-instrumentation for Symfony

561.6M3](/packages/open-telemetry-opentelemetry-auto-symfony)[traceway/opentelemetry-symfony

Pure-PHP OpenTelemetry instrumentation for Symfony — automatic HTTP, Console, HttpClient, Messenger, Doctrine DBAL, Cache, Twig tracing and Monolog log-trace correlation with response propagation, a lightweight Tracing helper, route templates, and semantic conventions. No C extension required (ext-protobuf recommended for production).

7812.6k](/packages/traceway-opentelemetry-symfony)[friendsofopentelemetry/opentelemetry-bundle

Traces, metrics, and logs instrumentation within your Symfony application

6511.2k](/packages/friendsofopentelemetry-opentelemetry-bundle)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M342](/packages/open-telemetry-sdk)

PHPackages © 2026

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