Skip to main content

Correlation ID middleware and structured logging for FastAPI — zero project-specific dependencies

Project description

fastapi-correlation

Name reserved — active development coming soon.

Correlation ID middleware and structured logging for FastAPI.

Planned Features

  • CorrelationMiddleware — injects a unique X-Correlation-ID header per request (generates one if absent)
  • get_correlation_id() — context-var accessor usable anywhere in the request lifecycle
  • Structured logging integration — automatically attaches correlation_id to every log record
  • WebSocket support — propagates correlation ID through WebSocket connections
  • Zero project-specific dependencies (only Starlette/FastAPI)

Status

This package is a name reservation. Implementation will follow.

Follow progress at: https://github.com/acikabubo/fastapi-correlation

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_correlation-0.0.1.tar.gz (1.4 kB view details)

Uploaded Source

Built Distribution

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

fastapi_correlation-0.0.1-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_correlation-0.0.1.tar.gz.

File metadata

  • Download URL: fastapi_correlation-0.0.1.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"openSUSE Tumbleweed","version":"20260219","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fastapi_correlation-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7fcba5385e1a2cf8b677cdcd1b1b3e41170f20818c8cd90b608f40352cdaaa45
MD5 0ccbe09bb583aabdca0dd5ac44bd5b47
BLAKE2b-256 c7b788b772d8c141cfd555c084ba6e2c7a23891785fc26cf6907205ab51c6036

See more details on using hashes here.

File details

Details for the file fastapi_correlation-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: fastapi_correlation-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"openSUSE Tumbleweed","version":"20260219","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fastapi_correlation-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9eab15a41caf43aee0bb12b1a221d54af3010c83c8be2830efc854c944392f4f
MD5 aeeb3a14f2f049a5358918596e81b5df
BLAKE2b-256 253cc050999e69864efdc41c6f83ad70d7d47b37e50ed96b00134b597838abf0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page