OpenTelemetry bridge for AeroGraph — export and import OTLP traces.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aerograph_otel-0.1.1.tar.gz.
File metadata
- Download URL: aerograph_otel-0.1.1.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
284b374faba5cf5ec179009972408fedf8fe12cd069229996e3d5fcd62bb2740
|
|
| MD5 |
38188492dc1d2811d354bb8f9086a314
|
|
| BLAKE2b-256 |
912f8be09ef9cd8c67e93f829505761dcc2cbf4a22c0d40067b92d4789ad5001
|
Provenance
The following attestation bundles were made for aerograph_otel-0.1.1.tar.gz:
Publisher:
release-python.yml on SGcpu/AeroGraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aerograph_otel-0.1.1.tar.gz -
Subject digest:
284b374faba5cf5ec179009972408fedf8fe12cd069229996e3d5fcd62bb2740 - Sigstore transparency entry: 1783352160
- Sigstore integration time:
-
Permalink:
SGcpu/AeroGraph@4e9bf6fbabb5f8c30429d67c3c9cf12be55d41f3 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/SGcpu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@4e9bf6fbabb5f8c30429d67c3c9cf12be55d41f3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file aerograph_otel-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aerograph_otel-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f6aef7ca6483bc36fba9ed1b5c6b31c4d43c3afb63652cd77a270f8f89608d4
|
|
| MD5 |
b0309e2def68879e440a0696355d7588
|
|
| BLAKE2b-256 |
f50f69dfd648859f47ae7cbf8de2abb4d425ce44677346186c27158ecc001069
|
Provenance
The following attestation bundles were made for aerograph_otel-0.1.1-py3-none-any.whl:
Publisher:
release-python.yml on SGcpu/AeroGraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aerograph_otel-0.1.1-py3-none-any.whl -
Subject digest:
5f6aef7ca6483bc36fba9ed1b5c6b31c4d43c3afb63652cd77a270f8f89608d4 - Sigstore transparency entry: 1783352308
- Sigstore integration time:
-
Permalink:
SGcpu/AeroGraph@4e9bf6fbabb5f8c30429d67c3c9cf12be55d41f3 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/SGcpu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@4e9bf6fbabb5f8c30429d67c3c9cf12be55d41f3 -
Trigger Event:
release
-
Statement type: