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.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 narrativetrace-asgi 0.1.0
File Size Uploaded
narrativetrace_asgi-0.1.0.tar.gz 13.0 kB Details

Built distribution (wheel)

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

Total release size: 24.2 kB

Release files / narrativetrace_asgi-0.1.0.tar.gz

Download URL narrativetrace_asgi-0.1.0.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
81ee45a72923a68d2b04d35fa7d1d2b3c1fd10ce38b69e2dd8968b74ce914354
BLAKE2b-256 checksum
How to use checksums
129a48611ad88ac4fcfa8e83cadfbbfb84bc49823c9ff0219b49c3645d81eb06
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 8, 2026.

Transparency log

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

Download URL narrativetrace_asgi-0.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b95724141cced76b906f68ffb466e47e4906d4799768c9907b6e607b37455d95
BLAKE2b-256 checksum
How to use checksums
2e8cc6c1323d434b30620bfb63e89b21fd9c7cf2b4151e638c16a27a6fc0f3d3
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 8, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

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