Provide ability to configure Google Cloud Logging as logging handler
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- gcp, python
调研方向
The issue asks for an optional Google Cloud Logging integration, so the work is to add a logging option, not to change existing behaviour. Start with the GCP structured logging special fields and the LogEntry schema it links, then check how the library currently writes logs to stdout. Done means a configurable output whose severity and message fields Cloud Logging recognises, with tests. The API shape is not settled in the thread, so agree on it with maintainers first.
由索引模型根据 Issue 内容生成。
描述
Quoting the Dockerflow spec:
Optional Recommendations
...
2. Log to stdout in the mozlog json schema.
Many Mozilla service are now being deployed on GCP, and as such use Google Cloud Logging (FKA Stackdriver) to ingest logs.
Google Cloud Logging has its own schema that defines the shape of a structured log, and the fields of this schema affect the presentation of the log in the Logs Explorer.
For example:
- If GCP does not recognize the severity notation of logged message, it will consider anything emitted to
stdoutasINFOand anything emitted tostderrasERROR - by providing a
messagefield, only that message is displayed in the log entry line in the explorer, with the ability to unfold entire log message to view other properties. Without it, the entire json object appears on the log line
This library should provide an easy way to integrate Google Cloud Logging's schema into an application. Though engineers could set up this integration themselves, providing an integration through this library provides an easy path to transition should engineers want to make the switch.
- 主要语言
- Python
- 星标
- 41
- 派生
- 21
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mozilla-services/python-dockerflow 的其他 Issue
-
难度 3/5 半天 新手友好度 15/100
mozilla-services/python-dockerflow#119 · 1 条评论 ·
-
难度 2/5 1 小时以内 新手友好度 15/100
mozilla-services/python-dockerflow#117 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 15/100
mozilla-services/python-dockerflow#116 · 1 条评论 ·
-
难度 3/5 半天 新手友好度 62/100
-
难度 5/5 一周以上 新手友好度 12/100
查看 mozilla-services/python-dockerflow 的全部 Issue
相似的 Issue
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 82/100
selimfirat/pysad#379 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
open-webui/open-webui#32805 ·
维护者通常 1 天内回复
-
fix: [bug description] HTML CVE metric table shows only the last CVE for each product可能已有人在做 @Chris-wh233 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 66/100
ossf/cve-bin-tool#5976 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
gke-labs/kube-agents#3615 ·
维护者通常 1 天内回复
-
deferred
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复