Skip to main content

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


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

Uploaded Python 3

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

Hashes for aerograph_otel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 284b374faba5cf5ec179009972408fedf8fe12cd069229996e3d5fcd62bb2740
MD5 38188492dc1d2811d354bb8f9086a314
BLAKE2b-256 912f8be09ef9cd8c67e93f829505761dcc2cbf4a22c0d40067b92d4789ad5001

See more details on using hashes here.

Provenance

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

Hashes for aerograph_otel-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f6aef7ca6483bc36fba9ed1b5c6b31c4d43c3afb63652cd77a270f8f89608d4
MD5 b0309e2def68879e440a0696355d7588
BLAKE2b-256 f50f69dfd648859f47ae7cbf8de2abb4d425ce44677346186c27158ecc001069

See more details on using hashes here.

Provenance

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page