Download the PHP package particle-academy/prism-opentelemetry without Composer

On this page you can find all versions of the php package particle-academy/prism-opentelemetry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package prism-opentelemetry

Prism OpenTelemetry

OpenTelemetry bridge for Prism. It subscribes to Prism's neutral telemetry events and turns them into GenAI-convention spans — a root span per generation, child spans per step and per tool call, with token, cost, model, finish-reason and provider rate-limit attributes — exported over OTLP to Arize Phoenix or any OTLP backend.

Status: under active development, and this release needs an unreleased Prism. The bridge reads the provider rate limits off GenerationCompleted::$rateLimits, which core gained after v0.115.1, so the constraint is >=0.116 <1.0 and composer install stays red until Prism v0.116.0 is tagged. The field exists because quota headroom is not content: before it, a successful generation exported no rate limits at all unless the application had turned prompt capture on.

Working on this package? Read AGENTS.md first — the boundary this package has to hold, the gates that must be green, and the traps that have already caught someone. @link AGENTS.md

How it fits together

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

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

Point the OpenTelemetry SDK at your collector / Phoenix instance:

Configuration

Key Env Default Description
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

By default, spans carry metadata only: tokens, timing, model, finish reason and provider rate limits. Prompts, completions, tool arguments and tool results are added as input.value / output.value only when Prism's prism.telemetry.capture_content is on, and it is off by default. Each captured attribute is cut to content_max_length.

Attachment bytes are withheld even with content capture on. A captured message's images, documents, audio and video keep their kind, mime type, file id and filename, and their base64 is replaced by omitted_bytes, the size of what was left out. To export the bytes as well, set Prism's prism.telemetry.capture_media (PRISM_TELEMETRY_CAPTURE_MEDIA=true). Bytes a user pastes into a prompt as text are text, and are exported with the prompt.

License

MIT © Particle Academy


All versions of prism-opentelemetry with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
ext-mbstring Version *
illuminate/contracts Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
open-telemetry/api Version ^1.0
open-telemetry/context Version ^1.0
particle-academy/prism Version >=0.124.1 <1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package particle-academy/prism-opentelemetry contains the following files

Loading the files please wait ...