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

[Crashtracker]: simplify on fork

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
停滞
技术栈
rust

调研方向

首先定位 clear_trace_ids、clear_span_ids 和 ddog_crashtracker_reset_counters,然后检查它们与 fork 相关的调用点。确定它们是否总是一起出现,以及现有的 API 边界是否支持整合。完成的标准是:fork 后的 reset 行为和公共 API 已得到明确定义,并由相关测试覆盖。

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

描述

          Is there any situation where we wouldn't call both `clear_trace_ids` and `clear_span_ids`? Would it make sense to combine them together? Perhaps with `ddog_crashtracker_reset_counters`? All of them claim to need to be called after a fork, so is it weird to make API users hunt down all of these one by one?

Originally posted by @ivoanjo in https://github.com/DataDog/libdatadog/pull/551#discussion_r1696566799

主要语言
Rust
星标
69
派生
21
平均合并
3 天 3 小时
30 天内合并 PR
75

环境准备

从这里开始

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

DataDog/libdatadog 的其他 Issue

查看 DataDog/libdatadog 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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