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↓75%1Apache-2.0PHPPHP ^8.1

Since Apr 10Pushed 11mo 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 1mo ago

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

33

—

LowBetter than 75% of packages

Maintenance50

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

404d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d525c8b28c58a411ae2d91ea04401f2099f47218b7a45400a8e2594077763d93?d=identicon)[kothiga](/maintainers/kothiga)

![](https://www.gravatar.com/avatar/029090d17b980d54be719f972b82776dd8da4a95817dcce2a60cc899332414f5?d=identicon)[bkuschel](/maintainers/bkuschel)

![](https://www.gravatar.com/avatar/968a204b53fd4d6f48d5e06ea7049baae0da964ce4c508541dbb3d4c1e673ad3?d=identicon)[HeenaBansal20](/maintainers/HeenaBansal20)

![](https://www.gravatar.com/avatar/7856a608c2f4392b5421b12302fbc34b05d451e4f913febd73c45170e7f27bd0?d=identicon)[dhuang00](/maintainers/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

[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2322.9M248](/packages/open-telemetry-sdk)[open-telemetry/opentelemetry-auto-symfony

OpenTelemetry auto-instrumentation for Symfony

551.2M1](/packages/open-telemetry-opentelemetry-auto-symfony)[friendsofopentelemetry/opentelemetry-bundle

Traces, metrics, and logs instrumentation within your Symfony application

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

OpenTelemetry auto-instrumentation for PDO

111.2M1](/packages/open-telemetry-opentelemetry-auto-pdo)[open-telemetry/opentelemetry-auto-wordpress

OpenTelemetry auto-instrumentation for Wordpress

17166.0k](/packages/open-telemetry-opentelemetry-auto-wordpress)

PHPackages © 2026

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