Skip to content

EW-9372 EW-9455 [o11y] Report SpanOpen as soon as available, remove CompleteSpan#6051

Merged
fhanau merged 1 commit into
mainfrom
felix/102125-stw-cleanup-p2
Apr 20, 2026
Merged

EW-9372 EW-9455 [o11y] Report SpanOpen as soon as available, remove CompleteSpan#6051
fhanau merged 1 commit into
mainfrom
felix/102125-stw-cleanup-p2

Conversation

@fhanau

@fhanau fhanau commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #5370, see that PR for rationale. Also see the downstream PR.

Note: The test changes are needed since SpanOpen is reported earlier now, so the order of tail stream events will change.

@fhanau fhanau marked this pull request as ready for review February 11, 2026 14:40
@fhanau fhanau requested review from a team as code owners February 11, 2026 14:40
@fhanau fhanau requested a review from mar-cf February 11, 2026 14:40
@mar-cf

mar-cf commented Feb 14, 2026

Copy link
Copy Markdown
Contributor

I appreciate you opening this so we can have the entirety of the change to review! #5370 will determine if changes are needed here

@fhanau fhanau force-pushed the felix/102125-stw-cleanup branch from cc51938 to c302bb5 Compare February 17, 2026 21:51
@fhanau fhanau force-pushed the felix/102125-stw-cleanup-p2 branch from 38137f6 to 55c8d69 Compare February 17, 2026 21:52
@codspeed-hq

codspeed-hq Bot commented Feb 17, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 72 untouched benchmarks
⏩ 129 skipped benchmarks1


Comparing felix/102125-stw-cleanup-p2 (e250731) with main (6b87702)

Open in CodSpeed

Footnotes

  1. 129 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@codecov-commenter

codecov-commenter commented Feb 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 73.68421% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.92%. Comparing base (6b87702) to head (e250731).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/workerd/io/trace.c++ 40.00% 3 Missing ⚠️
src/workerd/io/tracer.c++ 88.88% 0 Missing and 1 partial ⚠️
src/workerd/server/server.c++ 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6051      +/-   ##
==========================================
+ Coverage   70.89%   70.92%   +0.02%     
==========================================
  Files         438      438              
  Lines      123833   123768      -65     
  Branches    19486    19475      -11     
==========================================
- Hits        87794    87785       -9     
+ Misses      24492    24436      -56     
  Partials    11547    11547              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fhanau fhanau force-pushed the felix/102125-stw-cleanup-p2 branch from 55c8d69 to f721a57 Compare March 4, 2026 19:49
@fhanau fhanau requested review from a team as code owners March 4, 2026 19:49
@fhanau fhanau force-pushed the felix/102125-stw-cleanup branch from 30bc3e2 to e326304 Compare March 9, 2026 03:17
@fhanau fhanau force-pushed the felix/102125-stw-cleanup-p2 branch from f721a57 to f28a6f6 Compare March 9, 2026 03:19
@fhanau fhanau force-pushed the felix/102125-stw-cleanup branch from e326304 to a0e61e3 Compare March 18, 2026 18:26
@fhanau fhanau force-pushed the felix/102125-stw-cleanup-p2 branch from f28a6f6 to cc39265 Compare March 18, 2026 18:37
Base automatically changed from felix/102125-stw-cleanup to main March 18, 2026 19:36
@fhanau fhanau force-pushed the felix/102125-stw-cleanup-p2 branch from cc39265 to 9c06191 Compare March 18, 2026 20:14
fhanau added a commit that referenced this pull request Apr 7, 2026
images-api-instrumentation-test uses traceId as its span identification key,
which does not uniquely identify spans (unlike spanId). This led to us missing
out on spans reported under the same traceId, having span tags be assigned to
the wrong span, and changed the test results when reporting span tags earlier,
falsely creating the impression that #6051 would introduce span reporting bugs.
This can be avoided by using the same tail handler that similar tests already
use.
fhanau added a commit that referenced this pull request Apr 8, 2026
images-api-instrumentation-test uses traceId as its span identification key,
which does not uniquely identify spans (unlike spanId). This led to us missing
out on spans reported under the same traceId, having span tags be assigned to
the wrong span, and changed the test results when reporting span tags earlier,
falsely creating the impression that #6051 would introduce span reporting bugs.
This can be avoided by using the same tail handler that similar tests already
use.
@fhanau fhanau force-pushed the felix/102125-stw-cleanup-p2 branch from 9c06191 to 8fb0f2f Compare April 8, 2026 18:01
@fhanau fhanau force-pushed the felix/102125-stw-cleanup-p2 branch from 8fb0f2f to 8b42ac7 Compare April 20, 2026 19:10
…ompleteSpan

[o11y] Adopt event-based observer API
[o11y] Restore timestamp handling after interface changes
@fhanau fhanau force-pushed the felix/102125-stw-cleanup-p2 branch from 8b42ac7 to e250731 Compare April 20, 2026 19:33
@fhanau fhanau merged commit 688f691 into main Apr 20, 2026
22 of 23 checks passed
@fhanau fhanau deleted the felix/102125-stw-cleanup-p2 branch April 20, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants