GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — test(node): collect TypeSafe spans across streamed envelopes by nicohrubec · Pull Request #26151 · getsentry/sentry-javascript Conversation
|
size-limit report 📦Compared: 953fd61 (PR test merge using develop at eb0e92e) Against: eb0e92e (develop) · base run #65112 ✅ Baseline matches: this diff contains only this PR's changes.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…ry#26151) **Why:** TypeSafe integration tests assume all four decide spans arrive in one streamed container. Collecting across envelopes removes that batching assumption while preserving every span assertion, including waiting for late children after the `main` segment. Not sure if this actually fixes it but worth a shot I have seen this flake couple of times. Co-authored-by: OpenAI Codex <[email protected]>
…es (#26480) ❗ Use "Hide Whitespace" to only see around 50 LOC changed. ## What - Four `apollo-graphql/useOperationNameForRootSpan` tests and the Mastra multi-instance test collect the spans of a trace with `collectStreamedSpansUntilSegment`, and assert on the collected spans. - The `auto-flush` preload of the test runner registers its `beforeExit` handler with `once`. ## Why With span streaming, the SDK flushes 500 ms after any segment ends. The spans of one trace can then arrive in two envelopes. These tests asserted the whole trace on the first envelope and failed about 20 times in the last month when the trace was split. #26151 fixed the same pattern for the typesafe suite. Every assertion on names, attributes, origins, and status is unchanged. One difference: an error event that arrives before the first span envelope no longer fails these tests, because a collector reads span envelopes only. The `auto-flush` change is not a flake fix. `flush()` sets a timer, so `beforeExit` fired again after each flush and a finished scenario never exited. A test with an expectation that was not met waited for the full 15 s timeout; it now fails in about 3 s with "Scenario exited". Ref #26477
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.