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

Port cloudflare-integration-tests to span streaming

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

@JPeer264 已经在做这个了。

开始于 2026年9月7日。

评估

这个 Issue 还没有评估数据。

描述

javascript Task

Port dev-packages/cloudflare-integration-tests to span streaming. Span streaming is the default, so every suite that still pins traceLifecycle: 'static' covers behaviour we no longer ship.

Part of SDK-1425, one tracking issue per integration test package.

Scope

  • 102 traceLifecycle: 'static' pins across 82 files
  • 2 suites already have a -streamed twin: tracing/ignoreSpans-streamed and public-api/startSpan-streamed
  • tracing/d1 uses an env-gated STREAMED switch
  • This package has no shared span helpers. Every streamed test hand-rolls its own getSpanContainer, so the helper work comes first.

How to port a suite

  1. Remove the traceLifecycle: 'static' pin from every Sentry.init in the suite.
  2. If a -streamed twin exists, fold it back: delete the static original and rename the twin to the base name.
  3. Rewrite the assertions from transaction envelopes to span v2 against the shared helper added in the first sub-issue:
    • event.transaction becomes span.name
    • contexts.trace.op becomes the sentry.op attribute plus span.is_segment
    • contexts.trace.data['x'] becomes span.attributes['x'], which has the shape { value, type }
    • transaction_info.source becomes the sentry.segment.name.source attribute

Watch for span names that become low cardinality under streaming: http.server, http.client, db, cache and gen_ai.

Reference suite: suites/public-api/startSpan-streamed.

Keep static trace lifecycle coverage

Keep one suite on the static pin as a guard rather than duplicating each one. Name it in the PR.

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

贡献指南

打开贡献指南

从这里开始

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

getsentry/sentry-javascript 的其他 Issue

查看 getsentry/sentry-javascript 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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