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.2.0.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.2.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for aerograph_otel-0.2.0.tar.gz
Algorithm Hash digest
SHA256 98966a3fd72ac3e7f05eb38c2999473979ad8ec1db21bc1761014de613e81ae1
MD5 86b217c7911632533e558eb1c17fd423
BLAKE2b-256 74942bea9772b08a459b1374c61a5354eb02899744d98f7f49287b22e6637ae6

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerograph_otel-0.2.0.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: aerograph_otel-0.2.0-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

Hashes for aerograph_otel-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c015aca2e34e60a67cfc00e6fde7cb584b1b8dd8ff929d3f5b8cfa8c4e57611
MD5 534c871fed7bd4ad1c6d4b07655f1f63
BLAKE2b-256 5ae3fa5f5e12b2253d687bac6a68b7a66694beeafa4a1316269d952bb8489aeb

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerograph_otel-0.2.0-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

0.3.1

2 files

This release

0.2.0 This release

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