[Improvement]: Review which policy parameters are written to debug logs

未关闭
#4,447 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
go

调研方向

Start by listing debug log lines in the policy engine and policies that print full params or resolved configuration values; the issue does not name specific files or tests. Identify which values are needed for troubleshooting, then assess a shared helper that logs selected keys or masks values by key name. Done means the affected logs are reviewed consistently and a test checks them against known values.

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

描述

Aspect/Logging Type/Improvement
Please select the area the issue is related to

Gateway

Please select the aspect the issue is related to

Aspect/Logging (Log formats, instrumentation, improvements)

Suggested Improvement

Some policies and the policy engine write whole parameter maps and resolved configuration values to debug-level log lines. Review these lines and keep only what is needed for troubleshooting.

Suggested approach:

  1. List the debug log lines in the policy engine and the policies that print full params or resolved configuration values.
  2. Log only the keys that are needed, or mask values by key name, with one shared helper so every policy behaves the same way.
  3. Add a test that checks these log lines against a set of known values.
Related Issues

No response

主要语言
Go
星标
85
派生
142
平均合并
1 天 7 小时
30 天内合并 PR
255

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

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

wso2/api-platform 的其他 Issue

查看 wso2/api-platform 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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