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

node-integration-tests: port trace semantics suites to span streaming

未关闭
#24,140 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
领域
testing

调研方向

先从父 issue 中的移植方案开始,然后检查列出的 tracing/* 和 public-api/* suites 及其 -streamed 对应项。将指定的 suites 移植到 span streaming,撤回提到的对应项,并让 tracing/sampling-static 和 public-api/beforeSendSpan-static 保持在 static pin 上。当列出的 integration suites 覆盖 span streaming 下的 sampling、propagation、span linking 和 public API 行为时,即表示完成。

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

描述

javascript Task

Follow the porting recipe in the parent issue.

Sampling, DSC, envelope headers and span linking. These suites assert on envelope headers and trace propagation rather than on instrumentation output, so they are the ones most likely to expose a real product bug rather than a test rewrite.

Suites

  • Envelope headers and DSC: tracing/envelope-header/* (7 dirs), tracing/dsc-txn-name-update, tracing/double-baggage/* (3 dirs), tracing/meta-tags, tracing/meta-tags-twp, tracing/meta-tags-twp-errors
  • Sampling: tracing/sampling-static, tracing/sample-rate-propagation/* (4 dirs), tracing/sample-rand-propagation, tracing/no-parent-span-client-report
  • Trace lifetime: tracing/continueTrace, tracing/startNewTrace, tracing/traceid-recycling, tracing/traceid-recycling-with-spans
  • Span shaping: tracing/linking, tracing/maxSpans, tracing/tracer-start-active-span-error
  • Public API span surface: public-api/startSpan/* (7 dirs), public-api/beforeSendSpan-static, public-api/bindScopeToEmitter, public-api/setMeasurement, public-api/scopes/*

Twins to fold back

tracing/sampling-streamed, tracing/ignoreSpans-streamed/*, public-api/beforeSendSpan-streamed, context-streamed/*, and the 6 public-api/startSpan/*-streamed dirs.

Keep static trace lifecycle coverage

This is the group that owns the guard. Keep tracing/sampling-static and public-api/beforeSendSpan-static on the static pin. Everything else moves.

主要语言
TypeScript
星标
8.7k
派生
1.9k
平均合并
1 天 18 小时
30 天内合并 PR
562

贡献指南

打开贡献指南

从这里开始

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

getsentry/sentry-javascript 的其他 Issue

查看 getsentry/sentry-javascript 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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