PHPackages                             particle-academy/prism-opentelemetry - 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. particle-academy/prism-opentelemetry

ActiveLibrary

particle-academy/prism-opentelemetry
====================================

OpenTelemetry bridge for Prism: turns Prism telemetry events into GenAI-convention spans for Arize Phoenix and any OTLP backend.

v0.1.1(2w ago)025MITPHPPHP ^8.2

Since Jul 18Pushed 2w agoCompare

[ Source](https://github.com/Particle-Academy/prism-opentelemetry)[ Packagist](https://packagist.org/packages/particle-academy/prism-opentelemetry)[ Docs](https://github.com/Particle-Academy/prism-opentelemetry)[ RSS](/packages/particle-academy-prism-opentelemetry/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (18)Versions (4)Used By (0)

Prism OpenTelemetry
===================

[](#prism-opentelemetry)

OpenTelemetry bridge for [Prism](https://github.com/Particle-Academy/prism). It subscribes to Prism's neutral telemetry events and turns them into [GenAI-convention](https://opentelemetry.io/docs/specs/semconv/gen-ai/) spans — a root span per generation, child spans per step and per tool call, with token, cost, model, and finish-reason attributes — exported over OTLP to [Arize Phoenix](https://github.com/Arize-ai/phoenix) or any OTLP backend.

> **Status: under active development.** The Prism-side telemetry events this package consumes currently live on the `feat/telemetry-935` branch of `particle-academy/prism`; this bridge tracks that branch until the events ship in a tagged Prism release.

How it fits together
--------------------

[](#how-it-fits-together)

```
Prism core (events)                 →  this bridge                →  OTLP backend
Events\Telemetry\GenerationStarted     builds root span              Arize Phoenix,
                 \StepCompleted        + child step spans            Jaeger, Tempo,
                 \ToolInvoked          + child tool spans            Grafana, …
                 \GenerationCompleted  ends the root span
                 \GenerationFailed     ends w/ error status

```

Prism core never depends on OpenTelemetry. This package owns the `open-telemetry/*` dependency and the GenAI attribute mapping, so semantic convention churn is a release of *this* package, not a change to Prism.

Installation
------------

[](#installation)

```
composer require particle-academy/prism-opentelemetry

# Provide an OpenTelemetry SDK + an OTLP exporter (transport of your choice):
composer require open-telemetry/sdk open-telemetry/exporter-otlp
```

Enable Prism telemetry (in the Prism config or environment):

```
PRISM_TELEMETRY_ENABLED=true
```

Point the OpenTelemetry SDK at your collector / Phoenix instance:

```
OTEL_PHP_AUTOLOAD_ENABLED=true
OTEL_SERVICE_NAME=my-app
OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:6006   # Phoenix OTLP endpoint
```

Configuration
-------------

[](#configuration)

```
php artisan vendor:publish --tag=prism-opentelemetry-config
```

KeyEnvDefaultDescription`enabled``PRISM_OTEL_ENABLED``true`Subscribe the span-building listener.`tracer_name``PRISM_OTEL_TRACER_NAME``prism`Instrumentation scope name.`record_exceptions``PRISM_OTEL_RECORD_EXCEPTIONS``true`Record the exception on failed spans.Privacy
-------

[](#privacy)

This bridge only reads span metadata (tokens, timing, model, finish reason). It never adds prompt or completion text to spans. Prism's own `prism.telemetry.capture_content` flag governs whether that content is present on the events at all, and it is off by default.

License
-------

[](#license)

MIT © Particle Academy

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance98

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~29 days

Total

2

Last Release

14d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/461446?v=4)[Wish Born](/maintainers/wishborn)[@wishborn](https://github.com/wishborn)

---

Top Contributors

[![wishborn](https://avatars.githubusercontent.com/u/461446?v=4)](https://github.com/wishborn "wishborn (9 commits)")

---

Tags

laraveltracingopentelemetryotelotlpprismobservabilityllmPhoenixgen-ai

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/particle-academy-prism-opentelemetry/health.svg)

```
[![Health](https://phpackages.com/badges/particle-academy-prism-opentelemetry/health.svg)](https://phpackages.com/packages/particle-academy-prism-opentelemetry)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k104.7M370](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k220.0M1.5k](/packages/laravel-sail)[illuminate/database

The Illuminate Database package.

3.0k56.7M13.6k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.1k6.4M360](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

80732.6M270](/packages/laravel-mcp)

PHPackages © 2026

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