Skip to content

feat(cloudflare,deno,vercel-edge): Add span streaming support#20127

Draft
Lms24 wants to merge 6 commits intolms/feat-span-streaming-exportsfrom
lms/feat-span-streaming-deno-cf-ve
Draft

feat(cloudflare,deno,vercel-edge): Add span streaming support#20127
Lms24 wants to merge 6 commits intolms/feat-span-streaming-exportsfrom
lms/feat-span-streaming-deno-cf-ve

Conversation

@Lms24
Copy link
Copy Markdown
Member

@Lms24 Lms24 commented Apr 8, 2026

WIP, adds adding the spanStreamingIntegration automatically to deno, cloudflare and vercel-edge if traceLifecycle is set to 'stream'.

Adds cloudflare integration test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Core

  • Support registerTool/registerResource/registerPrompt in MCP integration by betegon in #20071
  • Support embeddings in langchain by nicohrubec in #20017

Deps

  • Bump lodash.template from 4.5.0 to 4.18.1 by dependabot in #20085
  • Bump @xmldom/xmldom from 0.8.3 to 0.8.12 by dependabot in #20066

Other

  • (cloudflare) Support basic WorkerEntrypoint by JPeer264 in #19884
  • (cloudflare,deno,vercel-edge) Add span streaming support by Lms24 in #20127
  • (core, node) Portable Express integration by isaacs in #19928
  • (deno) Add denoRuntimeMetricsIntegration by chargome in #20023
  • (node, bun) Enforce minimum collection interval in runtime metrics integrations by chargome in #20068
  • (react-router) Export sentryOnError by chargome in #20120
  • Span Streaming (WIP) by Lms24 in #19119

Bug Fixes 🐛

Core

  • Fix withStreamedSpan typing error add missing exports by Lms24 in #20124
  • Replace regex with string check in stack parser to prevent main thread blocking by chargome in #20089
  • Set span.status to error when MCP tool returns JSON-RPC error response by betegon in #20082

Other

  • (aws-serverless) Add timeout to _endSpan forceFlush to prevent Lambda hanging by logaretm in #20064
  • (cloudflare) Ensure every request instruments functions by JPeer264 in #20044
  • (gatsby) Fix errorHandler signature to match bundler-plugin-core API by JPeer264 in #20048

Internal Changes 🔧

Core

  • Do not emit spans for chats.create in google-genai by nicohrubec in #19990
  • Unify .do* span ops to gen_ai.generate_content by nicohrubec in #20074
  • Simplify addResponseAttributes in openai integration by nicohrubec in #20013
  • Extract shared endStreamSpan for AI integrations by nicohrubec in #20021
  • Remove provider-specific AI span attributes in favor of gen_ai attributes in sentry conventions by nicohrubec in #20011

Deps

  • Bump mshick/add-pr-comment from dd126dd8c253650d181ad9538d8b4fa218fc31e8 to e7516d74559b5514092f5b096ed29a629a1237c6 by dependabot in #20078
  • Bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.24.1 to 2.25.2 by dependabot in #20081

Other

  • (node) Add node integration tests for Vercel ToolLoopAgent by nicohrubec in #20087
  • (nuxt) Make Nuxt 5 (nightly) E2E optional by s1gr1d in #20113
  • (oxlint) Add typeawareness into oxlintrc by JPeer264 in #20075
  • Update validate-pr workflow by stephanie-anderson in #20072
  • Remove unused tsconfig-template folder by mydea in #20067

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 25.72 kB added added
@sentry/browser - with treeshaking flags 24.21 kB added added
@sentry/browser (incl. Tracing) 42.7 kB added added
@sentry/browser (incl. Tracing, Profiling) 47.32 kB added added
@sentry/browser (incl. Tracing, Replay) 81.51 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 71.08 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 86.22 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 98.42 kB added added
@sentry/browser (incl. Feedback) 42.51 kB added added
@sentry/browser (incl. sendFeedback) 30.39 kB added added
@sentry/browser (incl. FeedbackAsync) 35.38 kB added added
@sentry/browser (incl. Metrics) 27.04 kB added added
@sentry/browser (incl. Logs) 27.18 kB added added
@sentry/browser (incl. Metrics & Logs) 27.86 kB added added
@sentry/react 27.48 kB added added
@sentry/react (incl. Tracing) 45.02 kB added added
@sentry/vue 30.56 kB added added
@sentry/vue (incl. Tracing) 44.56 kB added added
@sentry/svelte 25.74 kB added added
CDN Bundle 28.41 kB added added
CDN Bundle (incl. Tracing) 43.72 kB added added
CDN Bundle (incl. Logs, Metrics) 29.78 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 44.8 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 68.59 kB added added
CDN Bundle (incl. Tracing, Replay) 80.6 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 81.63 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 86.14 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 87.17 kB added added
CDN Bundle - uncompressed 82.99 kB added added
CDN Bundle (incl. Tracing) - uncompressed 129.64 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 87.14 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 133.05 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 210.12 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 246.52 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 249.91 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 259.43 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 262.82 kB added added
@sentry/nextjs (client) 47.44 kB added added
@sentry/sveltekit (client) 43.16 kB added added
@sentry/node-core 57.86 kB added added
@sentry/node 174.8 kB added added
@sentry/node - without tracing 97.97 kB added added
@sentry/aws-serverless 115.22 kB added added

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.

2 participants