instatus / otel
Errors, logs and traces for PHP on OpenTelemetry, with the Sentry SDK's API.
v0.1.0
2026-11-20 21:59 UTC
Requires
- php: >=8.1
- open-telemetry/api: ^1.10
- open-telemetry/exporter-otlp: ^1.4
- open-telemetry/sdk: ^1.15
- php-http/discovery: ^1.19
- psr/http-client: ^1.0
- psr/http-message: ^1.1 || ^2.0
- psr/log: ^1.1 || ^2.0 || ^3.0
Requires (Dev)
None
Suggests
- ext-protobuf: Faster OTLP encoding than the pure PHP protobuf library
- guzzlehttp/guzzle: An HTTP client for the OTLP exporter, if your app has no PSR-18 client yet
- monolog/monolog: For Instatus\Logging\MonologHandler
Provides
None
Conflicts
None
Replaces
None
README
Errors, logs and traces for Instatus, built on OpenTelemetry, with the Sentry SDK's API.
| Package | Install | For |
|---|---|---|
@instatus/otel |
npm install @instatus/otel |
Browser, Node, React, React Native |
Instatus |
Swift Package Manager: https://github.com/instatushq/otel |
iOS, macOS, tvOS, watchOS, visionOS |
instatus-otel |
pip install instatus-otel |
Python |
github.com/instatushq/otel/go |
go get github.com/instatushq/otel/go |
Go |
com.instatus:instatus-otel |
Maven or Gradle | Java, Kotlin and other JVM apps |
Instatus.Otel |
dotnet add package Instatus.Otel |
.NET |
instatus-otel |
bundle add instatus-otel |
Ruby, Rails |
instatus/otel |
composer require instatus/otel |
PHP |
Android apps use sentry-android with the Instatus DSN.
Every package shares one version, and each release publishes them together.
Browsers and mobile apps report errors with the page's public DSN:
import { init } from '@instatus/otel/browser' init({ dsn: 'https://<key>@api.instatus.com/sentry/1' })
Servers send errors, logs, traces and metrics with an API key:
import os import instatus_otel instatus_otel.init(api_key=os.environ["INSTATUS_API_KEY"], site_id="<page id>")
Each folder's README covers its options and functions.
Contributing
Issues are welcome. This repository is published from Instatus's monorepo, so changes are made there and synced here.
License
MIT