Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aerograph_otel-0.3.1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aerograph_otel-0.3.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file aerograph_otel-0.3.1.tar.gz.

File metadata

  • Download URL: aerograph_otel-0.3.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.14

File hashes

Hashes for aerograph_otel-0.3.1.tar.gz
Algorithm Hash digest
SHA256 feb3a1a6dfdb5664a9e35c42a3b53f8b9557de7203f858cbd95c4cfd80646c21
MD5 28f7f3cf90a85caf84cdd8fdfe4575d8
BLAKE2b-256 8fee3c72833d15f0715e1ccf87b35e7506de2092266f2b69609cfae0699948e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerograph_otel-0.3.1.tar.gz:

Publisher: release-python.yml on SGcpu/AeroGraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerograph_otel-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: aerograph_otel-0.3.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.14

File hashes

Hashes for aerograph_otel-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2da43a06acd2573f6dcc8f48df7a30e59548be061af0c6dd2263e1a2ff46c9d4
MD5 9bde135a8e9638127aed3b8ec2c49063
BLAKE2b-256 b2b08828cf3c1d170cd66e7a677d9f1a2d3265e4afa7d372d5922f3c2e23d08f

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerograph_otel-0.3.1-py3-none-any.whl:

Publisher: release-python.yml on SGcpu/AeroGraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.2.0

2 files

0.1.1

2 files

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