aerograph-otel
The bidirectional OpenTelemetry (OTLP) bridge for AeroGraph in Python.
Overview
AeroGraph stores cognitive observability traces using its own canonical append-only models. However, standard observability ecosystems (Jaeger, Datadog) expect W3C OpenTelemetry spans. This Python package seamlessly translates between the two paradigms with zero information loss.
Installation
pip install aerograph-otel
(Requires Python >= 3.10)
Usage: Exporting AeroGraph to OTLP
Convert an AeroGraph TraceEvent natively to an OpenTelemetry OtlpSpan format:
from aerograph_otel import export_events_to_otlp
from aerograph_sdk import FlightRecorder
# 1. You have AeroGraph events
recorder = FlightRecorder(endpoint="http://localhost:4317", actor={"id": "app"})
event = recorder.prompt(text="Hello OTel")
# 2. Export to OTLP JSON Payload
otlp_payload = export_events_to_otlp([event], service_name="my-service")
# 3. You can now POST this JSON dictionary to Jaeger or the OTel Collector via HTTP
Usage: Importing OTLP into AeroGraph
If you receive external OTLP spans (e.g. from an external LangChain instrumentation), you can parse them back into TraceEvent objects.
from aerograph_otel import import_otlp_to_events
trace_events = import_otlp_to_events(
incoming_otlp_json,
default_actor_id="otlp-ingest",
preserve_original_ids=True
)
License
Apache-2.0
Metadata
Release files for aerograph-otel 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aerograph_otel-0.3.1.tar.gz | 13.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aerograph_otel-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.0 kB
Release files / aerograph_otel-0.3.1.tar.gz
| Download URL | aerograph_otel-0.3.1.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
feb3a1a6dfdb5664a9e35c42a3b53f8b9557de7203f858cbd95c4cfd80646c21
|
|
BLAKE2b-256 checksum How to use checksums |
8fee3c72833d15f0715e1ccf87b35e7506de2092266f2b69609cfae0699948e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 23, 2026.
Transparency logRelease files / aerograph_otel-0.3.1-py3-none-any.whl
| Download URL | aerograph_otel-0.3.1-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2da43a06acd2573f6dcc8f48df7a30e59548be061af0c6dd2263e1a2ff46c9d4
|
|
BLAKE2b-256 checksum How to use checksums |
b2b08828cf3c1d170cd66e7a677d9f1a2d3265e4afa7d372d5922f3c2e23d08f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 23, 2026.
Transparency log