Skip to main content

xyberos-observability (M10)

Observability/telemetry exporters for Xyberos. Turns the runtime's event stream into traces and metrics for OpenTelemetry, Prometheus, Langfuse, and Sentry — satisfying RFC-0019 Track L, milestone M10.

Install

pip install xyberos-observability     # from PyPI

Optional extras (from PyPI):

pip install "xyberos-observability[otel]"        # opentelemetry-sdk (in-memory spans by default)
pip install "xyberos-observability[prometheus]"  # prometheus-client
pip install "xyberos-observability[sentry]"      # sentry-sdk

Development (editable, from this repo):

pip install -e ./observability
pip install -e "./observability[otel]"
pip install -e "./observability[prometheus]"
pip install -e "./observability[sentry]"

How it works

Xyberos emits events (runtime.request_started, brain.response_produced, memory.stored, ...) on its EventBus. This plugin attaches an EventRecorder that forwards each event to the configured exporters:

Exporter Destination What it does
OpenTelemetryExporter OTel span pipeline One span per event, named event.name, with event.* attributes (plus event.prompt). Defaults to an InMemorySpanExporter so traces are inspectable without a collector.
PrometheusExporter Prometheus registry xyberos_events_total{event="..."} counter, one per event name.
LangfuseExporter Langfuse /api/public/ingestion One observation-create item per event with name, input (prompt) and output (event data). Basic auth with public_key:secret_key.
SentryExporter Sentry SDK Adds a breadcrumb per event; captures a message for failures (runtime.request_failed, brain.error).

Usage

from xyberos import create_app
from xyberos_observability import ObservabilityPlugin, OpenTelemetryExporter

app = create_app()
app.load_plugin(ObservabilityPlugin(exporters=[OpenTelemetryExporter()]))

reply = app.chat("hello")          # emits events -> spans

Select exporters by environment variable (comma-separated) instead:

export OBSERVABILITY_EXPORTERS=otel,prometheus,langfuse,sentry
from xyberos_observability import ObservabilityPlugin

app.load_plugin(ObservabilityPlugin())

For Langfuse, set LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY and LANGFUSE_HOST (defaults https://cloud.langfuse.com).

Example

python examples/trace_a_chat.py                       # inspect in-memory spans
python examples/trace_a_chat.py --prometheus          # also track a counter
python examples/trace_a_chat.py --langfuse            # POST traces to Langfuse

Tests

python -m pytest observability/tests -q

Tests use injectable transports / in-memory exporters, so nothing touches the network or a real collector. The DoD test (tests/test_plugin.py) runs app.chat(...) and asserts a trace lands in OTel and Langfuse.

Metadata

Release files for xyberos-observability 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xyberos-observability 0.1.1
File Size Uploaded Provenance Actions
xyberos_observability-0.1.1.tar.gz 10.7 kB With provenance Details for xyberos_observability-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xyberos-observability 0.1.1
File Interpreter ABI Platform Actions
xyberos_observability-0.1.1-py3-none-any.whl Python 3 none any Details for xyberos_observability-0.1.1-py3-none-any.whl

Total release size: 21.2 kB

Release files / xyberos_observability-0.1.1.tar.gz

Download URL xyberos_observability-0.1.1.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6eea4074512b2e19ad3280323dc9e0e005fdb2f1c3bc4c23a8bd6f7066002e9c
BLAKE2b-256 checksum
How to use checksums
9559744b98d74f32e9478b1806fe0c2605ecb67985d67c1e9c0b71ea628671c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / xyberos_observability-0.1.1-py3-none-any.whl

Download URL xyberos_observability-0.1.1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3eb18bde45f0c0a08f80f791ccc11cffc9f486bd12afd7eb20a1d5b708b65470
BLAKE2b-256 checksum
How to use checksums
971f36acc57cf9acee99d47aeadbf0ee5924d6b88e31a07cd7293eb1f2edc5d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Security for xyberos-observability 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xyberos_observability-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page