Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add generic WSGI / ASGI middlewares for request logging

未关闭
#116 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
observability

调研方向

Compare the existing request.summary logging in src/dockerflow/django/middleware.py, src/dockerflow/fastapi/middleware.py, src/dockerflow/flask/app.py and src/dockerflow/sanic/app.py to see which fields they share. Then decide which WSGI or ASGI interface the generic middleware should target, since the issue leaves that open. Done would be a framework-agnostic middleware that emits the same summary, with tests. Expect a design discussion before any code, and the issue has been idle for about 890 days.

由索引模型根据 Issue 内容生成。

描述

Each framework supported by this package has its own implementation for request.summary logging.

However, since each framework is built on server standards (WSGI / ASGI), it'd be possible to write middleware that targets these standards (WSGI, ASGI e.g.), rather than the frameworks themselves. This would make it so that this package could support any framework that's compatible with WSGI and/or ASGI.

主要语言
Python
星标
41
派生
21
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mozilla-services/python-dockerflow 的其他 Issue

查看 mozilla-services/python-dockerflow 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。