Flask-Log-Request-ID
Flask extension that can parse and handle multiple types of request-id sent by request processors like Amazon ELB, Heroku or any multi-tier infrastructure as the one used for microservices.
Decision gist · record as of 2026-08-14
Yes, with caution. The package is simple, stable, and solves a real problem in microservice logging. However, maintenance is dormant since 2019 with no recent commits—test compatibility with your Flask version before deploying to production. If you need active support or are using very recent Flask releases, consider whether a more actively maintained alternative exists.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: single runtime dependency on Flask, pure Python wheel.
- Maintenance is dormant—last release October 2019, no commits since July 2024—but the package is stable and archived repository shows no active development planned.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2019-10-31 (2479 days) · last repo commit 2024-07-02 · 115 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 121,332 downloads/mo, #11,985 on PyPI
Alternatives
Verify before relying
pip install flask-log-request-id
import logging
from flask import Flask
from flask_log_request_id import RequestID, RequestIDLogFilter
app = Flask(__name__)
RequestID(app)
handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter("%(request_id)s - %(message)s"))
handler.addFilter(RequestIDLogFilter())
logging.getLogger().addHandler(handler)- Whether the package works correctly with modern Flask versions (3.0+) given the dormant maintenance status since 2019.
- Compatibility with current Python versions and whether any undocumented breaking changes exist in recent Flask releases.
What it is and what it does
Flask-Log-Request-ID is a Flask extension that captures request IDs from HTTP headers (commonly set by load balancers like Amazon ELB or Heroku) and makes them available throughout your application's request lifecycle. It provides a RequestIDLogFilter that automatically injects the request ID into all log records, including those from third-party libraries, enabling you to trace a single user request across multiple services and log files.
The package is designed for microservices and multi-tier infrastructure where a request passes through several layers. By attaching the same request ID to every log entry, you can correlate logs across services and dramatically simplify debugging. It exposes a current_request_id() function to retrieve the ID at any point in your code, and includes support for forwarding the request ID to Celery workers.
Use it for
- Correlate logs across multiple Flask microservices by injecting a common request ID into all log records.
- Debug production issues by tracing a single user request through multiple services using a unified request ID.
- Forward request IDs to background Celery tasks so async work maintains the same tracing context.
- Integrate with load balancer request tracing (ELB, Heroku) to preserve infrastructure-level request IDs in application logs.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with caution.
The package is simple, stable, and solves a real problem in microservice logging. However, maintenance is dormant since 2019 with no recent commits—test compatibility with your Flask version before deploying to production. If you need active support or are using very recent Flask releases, consider whether a more actively maintained alternative exists.
Install
flask-log-request-id on PyPI
Before you install
Low friction: single runtime dependency on Flask, pure Python wheel. Maintenance is dormant—last release October 2019, no commits since July 2024—but the package is stable and archived repository shows no active development planned.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install flask-log-request-id
import logging
from flask import Flask
from flask_log_request_id import RequestID, RequestIDLogFilter
app = Flask(__name__)
RequestID(app)
handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter("%(request_id)s - %(message)s"))
handler.addFilter(RequestIDLogFilter())
logging.getLogger().addHandler(handler)
Verify before relying
- Whether the package works correctly with modern Flask versions (3.0+) given the dormant maintenance status since 2019.
- Compatibility with current Python versions and whether any undocumented breaking changes exist in recent Flask releases.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageFlask |
| Maintenance | Dormant 2,479 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 121,332 / month, #11,985 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules |
Evidence: Flask_Log_Request_ID-0.10.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “request id logging flask”
- Flask-Log-Request-IDExtracts request IDs from incoming HTTP requests (from load balancers…
- flask-request-id-headerFlask middleware that automatically adds or validates an X-Request-ID…
- json-loggingConfigures Python's standard logging module to emit structured JSON…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also django-request-id · django-log-request-id · flask-request-id-header · asgi-correlation-id · opencensus-ext-flask · opentelemetry-instrumentation-flask · django-cid · python-logstash · logging-azure-rest · Flask-Injector