Skip to main content

Aethel Telemetry (aethel-telemetry)

PyPI version License: Apache-2.0 Python Version OpenTelemetry Compatible Build Status

A zero-allocation, high-throughput observability framework for Python. Provides structured JSON log formatting, distributed trace propagation (W3C TraceContext), and in-memory metric aggregation for cloud-native microservices.


Features

  • Structured JSON Logging: Single-line JSON emission with automatic trace_id and span_id injection. Compatible with Datadog, Grafana Loki, AWS CloudWatch, and Elasticsearch.
  • Distributed Trace Propagation: Seamless propagation across async boundaries using standard contextvars and W3C traceparent headers.
  • Microsecond Function Profiling: @traced decorator measuring wall-clock latency with contextual correlation.
  • Thread-Safe Metrics Registry: In-memory Counter and Gauge primitives with lock-free snapshot capabilities.
  • Zero Heavy Dependencies: Pure standard library implementation with zero external runtime packages.

Installation

pip install aethel-telemetry

Quickstart

1. Structured JSON Logging with Trace Correlation

from aethel import StructuredLogger, TraceContext

logger = StructuredLogger(service_name="billing-engine", environment="production")

with TraceContext():
    logger.info("Payment initiated", customer_id="cust_9410", amount_usd=129.50)

Output:

{
  "timestamp": "2026-11-25T04:50:12.894102+00:00",
  "level": "INFO",
  "service": "billing-engine",
  "env": "production",
  "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
  "span_id": "00f067aa0ba902b7",
  "message": "Payment initiated",
  "extra": {
    "customer_id": "cust_9410",
    "amount_usd": 129.5
  }
}

2. Distributed Tracing Decorator

from aethel import traced

@traced(name="query_account_ledger")
def query_account_ledger(account_id: str):
    # Function execution time is measured and correlated with the active trace
    return {"balance": 5420.00}

3. Application Metrics

from aethel import MetricsRegistry

metrics = MetricsRegistry()
req_counter = metrics.counter("http_requests_total", "Total incoming HTTP requests")
active_gauge = metrics.gauge("db_connections_active", "Current active database pool connections")

req_counter.inc()
active_gauge.set(12.0)

print(metrics.snapshot())

License

Aethel Telemetry is distributed under the Apache License 2.0. Copyright 2026 Aethel Infrastructure Ltd.

Metadata

Release files for aethel-telemetry 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aethel-telemetry 0.4.0
File Size Uploaded Provenance Actions
aethel_telemetry-0.4.0.tar.gz 8.2 kB Without provenance Details for aethel_telemetry-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aethel-telemetry 0.4.0
File Interpreter ABI Platform Actions
aethel_telemetry-0.4.0-py3-none-any.whl Python 3 none any Details for aethel_telemetry-0.4.0-py3-none-any.whl

Total release size: 15.7 kB

Release files / aethel_telemetry-0.4.0.tar.gz

Download URL aethel_telemetry-0.4.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
455d5e1b737d165475cfecb7e56fe3e02a6900cc91acc71c44d95107e53b712b
BLAKE2b-256 checksum
How to use checksums
e1235da153bf504321a3ef88c3ab4af711d83b613c86306a83ff851fa0ac56f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / aethel_telemetry-0.4.0-py3-none-any.whl

Download URL aethel_telemetry-0.4.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55a12de0923de15a91c9242bee54ef26f1df0111b7f58b222f78aed3792048a2
BLAKE2b-256 checksum
How to use checksums
aa9f2b399b9ae053a2bb3d787ab3a42f39d734de5ce979450cc9daae4a715f7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for aethel-telemetry 0.4.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files No provenance

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