SDK logger should use info level when a log item is added, rather than the log item's level
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先追踪 SDK 如何记录捕获的日志项,以及如何将该项的级别传递给 Symfony ConsoleLogger。Issue 给出了复现步骤和预期的控制台输出,但没有指出文件或测试;先定位相关的日志代码和测试。完成标准是:捕获的日志项以 info 级别记录,并在适当时将该项的级别保留在消息中。
由索引模型根据 Issue 内容生成。
描述
How do you use Sentry?
Sentry SaaS (sentry.io)
SDK version
5.x-dev
Steps to reproduce
Attach Symfony ConsoleLogger to the Sentry SDK. In a console command, capture a log item ("Test log message") with "warn" or "error" as the log level.
Expected result
Assuming the SDK is working as intended, there is no warning or error condition to log when a log item is captured. The SDK should log to the console at "info" level: "[info] Logs item: Test log message". I would also suggest that the log item's level could be added here, such as: "[info] Logs item (warn): Test log message" or "[info] Logs item (error): Test log message"
Actual result
The SDK logs to the console at "warning" or "error" level: "[warning] Logs item: Test log message" or "[error] Logs item: Test log message"
This is a bit confusing because although a warning or error item was logged, the SDK does not actually have a warning or error condition to report.
- 主要语言
- PHP
- 星标
- 1.9k
- 派生
- 478
- 平均合并
- 14 小时 54 分钟
- 30 天内合并 PR
- 111
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry-php 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
getsentry/sentry-php#2350 · 1 条评论 ·
维护者通常 1 天内回复
-
Improvement PHP
难度 2/5 1-3 小时 新手友好度 70/100
getsentry/sentry-php#2243 · 7 条评论 ·
维护者通常 1 天内回复
-
Finished profiled transactions keep their Excimer thread until a GC cycle runs可能已有人在做 @stayallive 于 4 天前认领。 未关闭
getsentry/sentry-php#2423 · 4 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Implement Global Attributes可能重新可做 @Litarnus 于 54 天前认领,目前没有进行中的 PR。 未关闭PHP
getsentry/sentry-php#2238 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Add span streaming support可能重新可做 @Litarnus 于 57 天前认领,目前没有进行中的 PR。 未关闭PHP Span First
getsentry/sentry-php#2229 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 getsentry/sentry-php 的全部 Issue
相似的 Issue
-
13.4.x
难度 1/5 1 小时以内 新手友好度 75/100
-
Appearance enhancement
难度 2/5 1 小时以内 新手友好度 62/100
novalo-dev/Prestashop-MCP-Server#487 ·
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
sync-en
难度 1/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复
-
Перевод устарел
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复