authweave-otel
OpenTelemetry API-only security observability facade for the AuthWeave authentication stack.
authweave-otel depends only on opentelemetry-api and authweave-core. It
never installs an SDK, exporter, sampler, propagator, or service.name. Without
a configured SDK every span and metric is a no-op, so instrumentation is safe and
free by default.
The application owns the TracerProvider/MeterProvider, sampling, export, and
retention. Construct AuthWeaveTelemetry with global or explicit providers and
pass it into your AuthWeave adapter configuration. LitestarAuth creates only
INTERNAL child security spans inside the server span produced by normal ASGI
instrumentation; it never creates a second HTTP span:
from authweave_otel import AuthWeaveTelemetry
from litestar_auth import LitestarAuthConfig
telemetry = AuthWeaveTelemetry()
config = LitestarAuthConfig(
# normal required configuration omitted
observer=telemetry,
)
The same observer can be passed to the HTTP-signature/webhook verifier and
webhook sender constructors. verify(..., links=(TraceCorrelation(...),)) and
send(..., links=...) attach retry/async causal links without accepting trace
context as identity. Direct operation_span() and metric methods remain
available for application-owned operations.
Privacy and abuse resistance
- Attribute keys are allowlisted (
authweave.*catalog only). - Values are truncated to 64 characters and redacted when they match secret canaries (tokens, cookies, PEM headers, payment fragments).
- Unknown reason codes collapse to
_OTHERso hostile input cannot grow label cardinality. - Baggage extraction/forwarding defaults to off
(
DEFAULT_TRACE_CONTEXT_POLICY); remote parents are never trusted identity. - Telemetry never participates in authentication, authorization, replay, or idempotency decisions. Collector/exporter outage must not change auth results.
- Workload
SecurityEventvalues receive the activetrace_id/span_idfor lookup only. The mandatory event callback remains the durable audit channel.
Catalog and reference stack
Span names, metric names, units, and attribute keys are a versioned catalog. See
authweave_otel.catalog; renames and cardinality growth are breaking changes.
A non-production Collector/Prometheus/Tempo/Grafana stack lives at
docker/reference/observability/. Run sh docker/reference/observability/verify.sh
for the synthetic smoke test and golden Prometheus name checks after the pinned
OTel→Prometheus translation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file authweave_otel-7.1.2.tar.gz.
File metadata
- Download URL: authweave_otel-7.1.2.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75a086e705b13be1dc5fd200796351bf59b41b6dafb4ca815b048a8614101365
|
|
| MD5 |
78be3deb587bef72e71b8ed1f8fea505
|
|
| BLAKE2b-256 |
e59937d634c90d90ceab83dbd4a72932a964dec0fc51ff5c5304f527023e06ee
|
Provenance
The following attestation bundles were made for authweave_otel-7.1.2.tar.gz:
Publisher:
3_release.yml on ZYLVEXT/litestar-auth
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
authweave_otel-7.1.2.tar.gz -
Subject digest:
75a086e705b13be1dc5fd200796351bf59b41b6dafb4ca815b048a8614101365 - Sigstore transparency entry: 2317764022
- Sigstore integration time:
-
Permalink:
ZYLVEXT/litestar-auth@dcbc37efdc03bd0b7964aa9fa503b9dd13a4f803 -
Branch / Tag:
refs/tags/7.1.2 - Owner: https://github.com/ZYLVEXT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
3_release.yml@dcbc37efdc03bd0b7964aa9fa503b9dd13a4f803 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file authweave_otel-7.1.2-py3-none-any.whl.
File metadata
- Download URL: authweave_otel-7.1.2-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c4192ef56898a59af2d0b3b56bb5495a76de436c79d7b9c138a9a68c3d75e28
|
|
| MD5 |
a365abae5dbcfbc7abc9037695017cc5
|
|
| BLAKE2b-256 |
3c9395272e227b8a1b5224783ba9effbf0dbe7f40096594bb187819b8f08d319
|
Provenance
The following attestation bundles were made for authweave_otel-7.1.2-py3-none-any.whl:
Publisher:
3_release.yml on ZYLVEXT/litestar-auth
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
authweave_otel-7.1.2-py3-none-any.whl -
Subject digest:
8c4192ef56898a59af2d0b3b56bb5495a76de436c79d7b9c138a9a68c3d75e28 - Sigstore transparency entry: 2317764126
- Sigstore integration time:
-
Permalink:
ZYLVEXT/litestar-auth@dcbc37efdc03bd0b7964aa9fa503b9dd13a4f803 -
Branch / Tag:
refs/tags/7.1.2 - Owner: https://github.com/ZYLVEXT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
3_release.yml@dcbc37efdc03bd0b7964aa9fa503b9dd13a4f803 -
Trigger Event:
workflow_dispatch
-
Statement type: