Skip to main content

patera-telemetry

OpenTelemetry tracing, metrics and log correlation for Patera. Part of Patera, a modular async-first Python web framework.

Installation

pip install patera-telemetry            # instrumentation only (opentelemetry-api)
pip install "patera-telemetry[all]"     # + SDK, OTLP/HTTP exporter, integrations
# or, with uv
uv add "patera[telemetry]"

Extras: sdk (SDK and OTLP/HTTP exporter), grpc (OTLP/gRPC exporter), sqlalchemy, httpx, redis (instrumentations), and all (everything except grpc).

Requires Python 3.13 or newer and a Patera core with req.on_finish and the middleware opt-in flags.

Usage

from patera.telemetry import Telemetry, TelemetryConfig

class Config(BaseConfig):
    TELEMETRY: TelemetryConfig = TelemetryConfig(SETUP_SDK=True, INSTRUMENT=["sqlalchemy"])

@app(__name__, configs=Config)
class App(Patera[Config]):
    app_extensions = [Telemetry, Databases]

Each HTTP request becomes a SERVER span named after its route, with the http.server.request.duration metric and trace_id/span_id in the request's log records. Set OTEL_EXPORTER_OTLP_ENDPOINT to send them to a collector, Jaeger or a hosted backend. Without SETUP_SDK, the extension uses the providers configured elsewhere; without any, it is a no-op.

Privacy defaults: client addresses, query strings and headers are not recorded unless enabled, and captured authorization, cookie, set-cookie and proxy-authorization values are masked.

See the telemetry documentation.

Metadata

Release files for patera-telemetry 0.1.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 patera-telemetry 0.1.0
File Size Uploaded Provenance Actions
patera_telemetry-0.1.0.tar.gz 13.0 kB Without provenance Details for patera_telemetry-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for patera-telemetry 0.1.0
File Interpreter ABI Platform Actions
patera_telemetry-0.1.0-py3-none-any.whl Python 3 none any Details for patera_telemetry-0.1.0-py3-none-any.whl

Total release size: 29.4 kB

Release files / patera_telemetry-0.1.0.tar.gz

Download URL patera_telemetry-0.1.0.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
55299373bad1211052784aaca81b37137343a8a7ffcd5a72ec7bf2b09d330e82
BLAKE2b-256 checksum
How to use checksums
d2726c2155b9b086e17067ad29a6d5cf9bbe3095b7d91a321be4d20f08f22b6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / patera_telemetry-0.1.0-py3-none-any.whl

Download URL patera_telemetry-0.1.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57d73914aa44da43fae734f47b60319ccd6426f4476f180d7cba64b5382da839
BLAKE2b-256 checksum
How to use checksums
dfc9951f556c5cbd05658ff3683dfd1c600ab3559b1f7a1804b7891adc6d4d68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for patera-telemetry 0.1.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.1.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