Skip to content

feat(core)!: Flip genAI defaults to collect it by default - #22706

Merged
s1gr1d merged 11 commits into
developfrom
sig/data-collection-defaults-genAI
Jul 29, 2026
Merged

feat(core)!: Flip genAI defaults to collect it by default#22706
s1gr1d merged 11 commits into
developfrom
sig/data-collection-defaults-genAI

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Jul 27, 2026

Copy link
Copy Markdown
Member

Collect genAI messages by default from v11 onwards.

Closes #21270

@s1gr1d
s1gr1d requested review from a team as code owners July 27, 2026 13:15
@s1gr1d
s1gr1d requested review from chargome and nicohrubec and removed request for a team July 27, 2026 13:15
@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.82 kB -0.03% -6 B 🔽
@sentry/browser - with treeshaking flags 28.03 kB -0.03% -6 B 🔽
@sentry/browser (incl. Tracing) 47.1 kB -0.02% -6 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 47.11 kB -0.02% -6 B 🔽
@sentry/browser (incl. Tracing, Profiling) 51.82 kB -0.02% -6 B 🔽
@sentry/browser (incl. Tracing, Replay) 86.41 kB -0.01% -6 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.84 kB -0.01% -5 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 91.14 kB -0.01% -6 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 103.78 kB -0.01% -6 B 🔽
@sentry/browser (incl. Feedback) 47.14 kB -0.02% -5 B 🔽
@sentry/browser (incl. sendFeedback) 34.66 kB -0.02% -6 B 🔽
@sentry/browser (incl. FeedbackAsync) 39.76 kB -0.02% -5 B 🔽
@sentry/browser (incl. Metrics) 30.89 kB -0.02% -5 B 🔽
@sentry/browser (incl. Logs) 31.12 kB -0.02% -5 B 🔽
@sentry/browser (incl. Metrics & Logs) 31.8 kB -0.03% -7 B 🔽
@sentry/react 31.61 kB -0.02% -5 B 🔽
@sentry/react (incl. Tracing) 49.34 kB -0.02% -6 B 🔽
@sentry/vue 34.74 kB -0.02% -5 B 🔽
@sentry/vue (incl. Tracing) 49.06 kB -0.02% -6 B 🔽
@sentry/svelte 29.85 kB -0.03% -6 B 🔽
CDN Bundle 31.88 kB -0.02% -6 B 🔽
CDN Bundle (incl. Tracing) 47.45 kB -0.02% -6 B 🔽
CDN Bundle (incl. Logs, Metrics) 33.42 kB -0.02% -5 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 48.83 kB -0.02% -6 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 72.78 kB -0.01% -6 B 🔽
CDN Bundle (incl. Tracing, Replay) 85.09 kB -0.01% -7 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.39 kB -0.01% -6 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 90.86 kB -0.01% -7 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.17 kB -0.01% -7 B 🔽
CDN Bundle - uncompressed 95.08 kB - -
CDN Bundle (incl. Tracing) - uncompressed 142.29 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.79 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.27 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.55 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 261.55 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 265.51 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.25 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.21 kB - -
@sentry/nextjs (client) 51.93 kB -0.01% -5 B 🔽
@sentry/sveltekit (client) 47.52 kB -0.02% -5 B 🔽
@sentry/core/server 79.58 kB -0.01% -4 B 🔽
@sentry/core/browser 51.59 kB -0.02% -6 B 🔽
@sentry/node 121.69 kB -0.01% -6 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B - -
@sentry/node - without tracing 85.27 kB -0.01% -4 B 🔽
@sentry/aws-serverless 93.49 kB -0.01% -6 B 🔽
@sentry/cloudflare (withSentry) - minified 197.59 kB - -
@sentry/cloudflare (withSentry) 485.75 kB -0.01% -4 B 🔽

View base workflow run

@chargome chargome left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the integration tests need updates too

@s1gr1d
s1gr1d requested a review from a team as a code owner July 27, 2026 16:07
@s1gr1d
s1gr1d requested review from andreiborza and isaacs and removed request for a team July 27, 2026 16:07
@chargome

Copy link
Copy Markdown
Member

@s1gr1d your call if you want one v11 migration entry per pr or just one general dataCollection migration entry.

@s1gr1d

s1gr1d commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

I'm going to do one migration entry - as all the changes are connected to one option.

@s1gr1d
s1gr1d enabled auto-merge (squash) July 28, 2026 08:46
Comment thread packages/core/src/tracing/ai/utils.ts
@s1gr1d

s1gr1d commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

The cloudflare integration test fails, I created a separate PR for that: #22763

s1gr1d added 2 commits July 28, 2026 16:54
# Conflicts:
#	packages/node/src/integrations/tracing/langgraph/instrumentation.ts
Comment thread packages/core/src/tracing/ai/utils.ts
s1gr1d added 5 commits July 29, 2026 11:16
# Conflicts:
#	dev-packages/cloudflare-integration-tests/suites/tracing/anthropic-ai/index.ts
#	dev-packages/cloudflare-integration-tests/suites/tracing/google-genai/index.ts
#	dev-packages/cloudflare-integration-tests/suites/tracing/openai/index.ts
#	dev-packages/cloudflare-integration-tests/suites/tracing/workers-ai/index.ts
#	dev-packages/cloudflare-integration-tests/suites/tracing/workers-ai/test.ts
#	dev-packages/e2e-tests/test-applications/cloudflare-vercelai-v7-compat/src/index.ts
@s1gr1d
s1gr1d merged commit 7b42ee6 into develop Jul 29, 2026
525 of 528 checks passed
@s1gr1d
s1gr1d deleted the sig/data-collection-defaults-genAI branch July 29, 2026 11:26
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.

[v11] Flip default for genAI data collection

3 participants