Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

instrumentation wrapping should be idempotent

未关闭
#75 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
冷清
技术栈
java
领域
observability

调研方向

首先审查仓库中现有的手动 instrumentation wrapper,并确定每条可以重复调用 wrap 的路径。添加保护措施,使重复调用不会再次应用 instrumentation,然后为每个 wrapper 添加单元测试。完成的标准是,所有现有 wrapper 在重复调用时仍只应用一次 instrumentation,并且测试通过。

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

描述

Currently, many of our instrumentation libraries will apply wrapping multiple times if invoked repeatedly. This can lead to duplicated behavior and unintended side effects. Instrumentation should be idempotent—wrapping should only be applied once, regardless of how many times wrap is called.

Tasks:

  • Audit existing manual instrumentation to identify where multiple wrapping can occur
  • Add safeguards to ensure instrumentation bails out if it has already been applied
  • Add unit tests for each wrapper to verify that instrumentation is only applied once
主要语言
Java
星标
21
派生
5
平均合并
2 天 34 分钟
30 天内合并 PR
6

环境准备

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

从这里开始

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

braintrustdata/braintrust-sdk-java 的其他 Issue

查看 braintrustdata/braintrust-sdk-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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