googleapis / googleapis/google-cloud-java
[sdk-platform-java] Add showcase testing for logging on stream cases
- 主要语言
- Java
- 星标
- 2.1k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 157
描述
Basic logging testing are included in https://github.com/googleapis/sdk-platform-java/pull/3403 for unary calls.
Test cases are missing for server side streaming, client side streaming and bidi-streaming.
We need more test coverage for logging behaviors on other type of calls beside unary calls.
Also, consider refactor showcase test to not depend on a TestAppender, but rather capture log outputs from console. This will allow logging implementation classes like GrpcLoggingInterceptor to be not public.
贡献指南
调研方向
首先查看 pull request 3403 中新增的 unary logging 测试,并确定 showcase 测试如何使用 TestAppender。将覆盖范围扩展到服务器端流式、客户端流式和双向流式调用,然后验证每种情况下的 logging 行为。如果继续进行重构,请确认控制台日志捕获允许 GrpcLoggingInterceptor 保持为非 public。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- observability, testing
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100