narrativetrace-structlog
A structlog processor that injects narrativetrace
correlation keys (traceId, traceName, spanId, nt.class, HTTP/request keys, …) into every
event dict — the same canonical key set the stdlib NarrativeContextFilter stamps onto log
records, so both logging front-ends stay in lockstep.
import structlog
from narrativetrace_structlog import narrative_context_processor
structlog.configure(processors=[narrative_context_processor, structlog.processors.JSONRenderer()])
Metadata
Release files for narrativetrace-structlog 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| narrativetrace_structlog-0.1.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| narrativetrace_structlog-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / narrativetrace_structlog-0.1.0.tar.gz
| Download URL | narrativetrace_structlog-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a39c9a66ab43825744aaf245ea14f78586542ac3717ae560118bbb5dadf79111
|
|
BLAKE2b-256 checksum How to use checksums |
540485cf13618f1f0525ad47f984a60e2fde24f7d993b3d44357cf2a19519625
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / narrativetrace_structlog-0.1.0-py3-none-any.whl
| Download URL | narrativetrace_structlog-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9a28082e8977cba57b13d5bf1b1b4b5e126460e49643129d3918fa40fc8a159
|
|
BLAKE2b-256 checksum How to use checksums |
330cb47fb06bee02fa14e0113132655ad1e203b91d01fde7709b5c2a8a5bca43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|