getsentry / getsentry/sentry-java
Enable logging by default [Java]
未關閉
還沒有人認領這個 Issue。
breaking change
Java
Logs
Platform: Java
Task
- 主要語言
- Kotlin
- 星號
- 1.4k
- 分支
- 478
- 平均合併
- 3 天 4 小時
- 30 天內合併 PR
- 72
描述
Update logs behavior to follow the same opt-in model as enableMetrics:
- Users are considered opted-in when:
- They call the equivalent of
Sentry.logger.*, or - They explicitly enable a logging integration.
- They call the equivalent of
- Change default: set enable logs to
true. - Audit all logging integrations to ensure:
- No logs are emitted unless the integration is explicitly enabled.
- Update documentation:
- Explain new default behavior of
enableLogs. - Clarify requirement to explicitly enable logging integrations.
- Explain new default behavior of
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先定位 enableMetrics 和 enableLogs 選項、Sentry.logger.* 呼叫、所有記錄整合以及相關文件。根據 opt-in 要求稽核每個整合,然後更新預設值和文件;當直接使用 logger 以及明確啟用的整合都依指定方式運作,且不會產生非預期的日誌輸出時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java, kotlin
- 領域
- documentation, observability-sre
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100