Skip to main content

narrativetrace-asgi

Pure-ASGI middleware that captures one narrativetrace trace tree per HTTP request. Compatible with Starlette and FastAPI.

  • Fail-safe — throwing request/user extractors or exporters never fail the request and never mask the handler's own exception.
  • Request-boundary export — the captured tree is exported in a finally block with the real status code and duration; an empty tree is never exported.
  • W3C traceparent — inbound trace-id adoption plus an outbound injection helper for httpx.
  • Request-scoped accessor — get_narrative_context() returns the context bound to the in-flight request (contextvars-based, so concurrent requests are isolated).

Metadata

Release files for narrativetrace-asgi 0.1.2

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

Source distribution (sdist)

Source distribution for narrativetrace-asgi 0.1.2
File Size Uploaded
narrativetrace_asgi-0.1.2.tar.gz 16.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for narrativetrace-asgi 0.1.2
File Interpreter ABI Platform
narrativetrace_asgi-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 28.0 kB

Release files / narrativetrace_asgi-0.1.2.tar.gz

Download URL narrativetrace_asgi-0.1.2.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
81c3a790cd52a43c01efdc729e08a256a4ef07a3b09ee8075f9fa312a1abd986
BLAKE2b-256 checksum
How to use checksums
13d7de9a038e6080612ea15bf8922f1c6d24bbba77e80d050fa407ac45877bad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / narrativetrace_asgi-0.1.2-py3-none-any.whl

Download URL narrativetrace_asgi-0.1.2-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de0f7e66df5fc41a7a82d4d592ed77da495bf6feadb08c01256c19dc709c3cfe
BLAKE2b-256 checksum
How to use checksums
67c1ece050818534d4cb3787d24470475784a90e8fcdc7d4dc55dbc7b7f0539e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release 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