Skip to content

test(e2e): Port Deno db E2E test apps to span streaming - #24003

Merged
msonnb merged 1 commit into
developfrom
ms/deno-db-e2e-span-streaming
Sep 4, 2026
Merged

test(e2e): Port Deno db E2E test apps to span streaming#24003
msonnb merged 1 commit into
developfrom
ms/deno-db-e2e-span-streaming

Conversation

@msonnb

@msonnb msonnb commented Sep 3, 2026

Copy link
Copy Markdown
Member

Ports deno-mysql, deno-pg and deno-redis to span streaming: the traceLifecycle: 'static' pin from #22590 is removed and the specs assert on streamed spans instead of transactions. Second of two PRs for #23812, after #24002 which ported deno and added deno-static.

Decisions taken:

  • Deno.serve has no route information, so streamed http.server segments are named GET only. The specs identify requests via the url.path attribute.
  • Streamed mysql and pg spans are named after the query summary (SELECT for both queries), so the specs match queries on db.query.text and additionally assert every db span is a direct child of the request segment.
  • Streamed redis command spans are named {db.operation.name} {server.address}:{server.port} since db.query.text carries the key. The specs derive the expected name from those attributes rather than hardcoding the host, and match commands on db.operation.name instead of the old redis-<cmd> names. MULTI/PIPELINE batch spans keep their names.

Fixes #23812

🤖 Generated with Claude Code

Removes the `traceLifecycle: 'static'` pin from `deno-mysql`, `deno-pg`
and `deno-redis` and rewrites their specs against streamed spans,
matching queries and commands on attributes now that streamed db span
names are low cardinality.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.71 kB - -
@sentry/browser - with treeshaking flags 27.02 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.92 kB - -
@sentry/browser (incl. Tracing) 49.1 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 49.1 kB - -
@sentry/browser (incl. Tracing, Profiling) 52.01 kB - -
@sentry/browser (incl. Tracing, Replay) 88.58 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.88 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 93.26 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 106.21 kB - -
@sentry/browser (incl. Feedback) 46.2 kB - -
@sentry/browser (incl. sendFeedback) 33.78 kB - -
@sentry/browser (incl. FeedbackAsync) 38.87 kB - -
@sentry/browser (incl. Metrics) 29.68 kB - -
@sentry/browser (incl. Logs) 29.97 kB - -
@sentry/browser (incl. Metrics & Logs) 30.61 kB - -
@sentry/react 30.47 kB - -
@sentry/react (incl. Tracing) 51.3 kB - -
@sentry/vue 35.95 kB - -
@sentry/vue (incl. Tracing) 51.37 kB - -
@sentry/svelte 28.74 kB - -
CDN Bundle 30.45 kB - -
CDN Bundle (incl. Tracing) 49.64 kB - -
CDN Bundle (incl. Logs, Metrics) 32.69 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 51.56 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 73.28 kB - -
CDN Bundle (incl. Tracing, Replay) 87.13 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 89 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 93.06 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 95.01 kB - -
CDN Bundle - uncompressed 90.19 kB - -
CDN Bundle (incl. Tracing) - uncompressed 147.87 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.58 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 153.65 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.75 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 267.37 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 273.13 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.07 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 286.82 kB - -
@sentry/nextjs (client) 53.92 kB - -
@sentry/sveltekit (client) 49.53 kB - -
@sentry/core/server 40.96 kB - -
@sentry/core/browser 13.53 kB - -
@sentry/node 124.66 kB +0.02% +22 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.51 kB - -
@sentry/node - without tracing 88.5 kB +0.03% +23 B 🔺
@sentry/node - without channel injection 103.95 kB +0.03% +23 B 🔺
@sentry/aws-serverless 96.87 kB +0.03% +23 B 🔺
@sentry/cloudflare (withSentry) - minified 201.56 kB - -
@sentry/cloudflare (withSentry) 501.37 kB - -

View base workflow run

@msonnb
msonnb marked this pull request as ready for review September 3, 2026 13:58
@msonnb
msonnb requested a review from andreiborza September 3, 2026 13:58
@msonnb
msonnb merged commit 02870de into develop Sep 4, 2026
46 checks passed
@msonnb
msonnb deleted the ms/deno-db-e2e-span-streaming branch September 4, 2026 07:44
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.

Port Deno E2E test apps to span streaming

2 participants