Skip to main content

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 _OTHER so 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 SecurityEvent values receive the active trace_id/span_id for 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

authweave_otel-7.3.4.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

authweave_otel-7.3.4-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file authweave_otel-7.3.4.tar.gz.

File metadata

  • Download URL: authweave_otel-7.3.4.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

Hashes for authweave_otel-7.3.4.tar.gz
Algorithm Hash digest
SHA256 7b6f806647e22d7aa412cc3d02671be9384a236d49c4c2e7c45901147c0b20fe
MD5 4fdd69b6725de9ba50ad41e9e98dab0b
BLAKE2b-256 c4c3fe8e4bbf9a8b9a7148f768585d387393f6c2b575b1a15fb820c5584e98cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for authweave_otel-7.3.4.tar.gz:

Publisher: 3_release.yml on ZYLVEXT/litestar-auth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file authweave_otel-7.3.4-py3-none-any.whl.

File metadata

  • Download URL: authweave_otel-7.3.4-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

Hashes for authweave_otel-7.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 33c12e60b39935801a203dcbbf2f8a15cc0a1ca6255c24d3a1eaaf07f7fdc997
MD5 a135a301ba0ade5ca81f332994db5bd0
BLAKE2b-256 2e05b760d577f4d4d0c0359d28868435c417c32960007dcb81599edae063a24a

See more details on using hashes here.

Provenance

The following attestation bundles were made for authweave_otel-7.3.4-py3-none-any.whl:

Publisher: 3_release.yml on ZYLVEXT/litestar-auth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

8.0.2

2 files

8.0.1

2 files

8.0.0

2 files

This release

7.3.4 This release

2 files

7.3.3

2 files

7.3.2

2 files

7.3.1

2 files

7.3.0

2 files

7.2.0

2 files

7.1.2

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