Skip to content

test(cloudflare): Add e2e test for MCPAgent with DurableObject instrumentation#20601

Merged
JPeer264 merged 2 commits intodevelopfrom
jp/cloudflare-mcpagent-e2e-test
Apr 30, 2026
Merged

test(cloudflare): Add e2e test for MCPAgent with DurableObject instrumentation#20601
JPeer264 merged 2 commits intodevelopfrom
jp/cloudflare-mcpagent-e2e-test

Conversation

@JPeer264
Copy link
Copy Markdown
Member

closes #17598
closes JS-927

This test ensures that the Sentry SDK properly instruments MCPAgent (which extends DurableObject) from the Cloudflare agents package. It verifies that MCP tool call spans are correctly created and linked.

@JPeer264 JPeer264 requested a review from a team April 29, 2026 12:41
@JPeer264 JPeer264 self-assigned this Apr 29, 2026
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Apr 29, 2026

…mentation

This test ensures that the Sentry SDK properly instruments MCPAgent
(which extends DurableObject) from the Cloudflare agents package.
It verifies that MCP tool call spans are correctly created and linked.

Ref: #17598

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@JPeer264 JPeer264 force-pushed the jp/cloudflare-mcpagent-e2e-test branch from 413899a to 0306960 Compare April 29, 2026 12:43
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0306960. Configure here.

Comment thread dev-packages/e2e-tests/test-applications/cloudflare-mcp-agent/vitest.config.mts Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 29, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 26.16 kB - -
@sentry/browser - with treeshaking flags 24.63 kB - -
@sentry/browser (incl. Tracing) 44.13 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 46.34 kB - -
@sentry/browser (incl. Tracing, Profiling) 49.08 kB - -
@sentry/browser (incl. Tracing, Replay) 83.48 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 72.96 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 88.15 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 100.8 kB - -
@sentry/browser (incl. Feedback) 43.4 kB - -
@sentry/browser (incl. sendFeedback) 30.96 kB - -
@sentry/browser (incl. FeedbackAsync) 36.14 kB - -
@sentry/browser (incl. Metrics) 27.44 kB - -
@sentry/browser (incl. Logs) 27.59 kB - -
@sentry/browser (incl. Metrics & Logs) 28.28 kB - -
@sentry/react 27.9 kB - -
@sentry/react (incl. Tracing) 46.36 kB - -
@sentry/vue 31.03 kB - -
@sentry/vue (incl. Tracing) 45.96 kB - -
@sentry/svelte 26.18 kB - -
CDN Bundle 28.85 kB - -
CDN Bundle (incl. Tracing) 46.91 kB - -
CDN Bundle (incl. Logs, Metrics) 30.27 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.03 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 69.35 kB - -
CDN Bundle (incl. Tracing, Replay) 84.07 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 85.14 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 89.86 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 90.96 kB - -
CDN Bundle - uncompressed 84.55 kB - -
CDN Bundle (incl. Tracing) - uncompressed 140.16 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 88.75 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 143.62 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 212.71 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 257.96 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 261.41 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 271.66 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 275.1 kB - -
@sentry/nextjs (client) 48.85 kB - -
@sentry/sveltekit (client) 44.58 kB - -
@sentry/node-core 59.06 kB +0.02% +10 B 🔺
@sentry/node 170.35 kB +0.01% +11 B 🔺
@sentry/node - without tracing 96.92 kB +0.02% +10 B 🔺
@sentry/aws-serverless 113.78 kB +0.03% +31 B 🔺
@sentry/cloudflare (withSentry) - minified 164.96 kB - -
@sentry/cloudflare (withSentry) 417.1 kB - -

View base workflow run

Comment thread dev-packages/e2e-tests/test-applications/cloudflare-mcp-agent/vitest.config.mts Outdated
@JPeer264 JPeer264 merged commit 866958e into develop Apr 30, 2026
256 checks passed
@JPeer264 JPeer264 deleted the jp/cloudflare-mcpagent-e2e-test branch April 30, 2026 10:36
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.

Add tests to ensure that cloudflare MCPAgent changes work with durable objects instrumentation

2 participants