Skip to content

ref(core)!: Align gen_ai cache token attributes with conventions - #22811

Merged
nicohrubec merged 3 commits into
ref/remove-unused-genai-op-constantsfrom
ref/align-cache-token-attributes-with-conventions
Jul 29, 2026
Merged

ref(core)!: Align gen_ai cache token attributes with conventions#22811
nicohrubec merged 3 commits into
ref/remove-unused-genai-op-constantsfrom
ref/align-cache-token-attributes-with-conventions

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Jul 29, 2026

Copy link
Copy Markdown
Member

Switches the two cache-token attributes from the local underscore keys (gen_ai.usage.cache_creation_input_tokens / cache_read_input_tokens) to the dotted @sentry/conventions exports (gen_ai.usage.cache_creation.input_tokens / cache_read.input_tokens), removing the corresponding local constants.

nicohrubec and others added 3 commits July 29, 2026 12:36
Emit the dotted `gen_ai.usage.cache_creation.input_tokens` and
`gen_ai.usage.cache_read.input_tokens` keys from `@sentry/conventions`
instead of the local underscore variants, removing the two local
constants in favor of the conventions exports.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicohrubec
nicohrubec marked this pull request as ready for review July 29, 2026 10:51
@nicohrubec
nicohrubec requested a review from andreiborza July 29, 2026 10:52
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.83 kB - -
@sentry/browser - with treeshaking flags 28.04 kB - -
@sentry/browser (incl. Tracing) 47.11 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.12 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.82 kB - -
@sentry/browser (incl. Tracing, Replay) 86.42 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.85 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 91.14 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 103.78 kB - -
@sentry/browser (incl. Feedback) 47.14 kB - -
@sentry/browser (incl. sendFeedback) 34.67 kB - -
@sentry/browser (incl. FeedbackAsync) 39.77 kB - -
@sentry/browser (incl. Metrics) 30.9 kB - -
@sentry/browser (incl. Logs) 31.13 kB - -
@sentry/browser (incl. Metrics & Logs) 31.81 kB - -
@sentry/react 31.62 kB - -
@sentry/react (incl. Tracing) 49.34 kB - -
@sentry/vue 34.75 kB - -
@sentry/vue (incl. Tracing) 49.07 kB - -
@sentry/svelte 29.86 kB - -
CDN Bundle 31.88 kB - -
CDN Bundle (incl. Tracing) 47.45 kB - -
CDN Bundle (incl. Logs, Metrics) 33.43 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.83 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 72.79 kB - -
CDN Bundle (incl. Tracing, Replay) 85.1 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.39 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 90.86 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.17 kB - -
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.94 kB - -
@sentry/sveltekit (client) 47.53 kB - -
@sentry/core/server 79.61 kB +0.03% +20 B 🔺
@sentry/core/browser 51.6 kB - -
@sentry/node 121.7 kB +0.01% +4 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B - -
@sentry/node - without tracing 85.28 kB +0.01% +1 B 🔺
@sentry/aws-serverless 93.5 kB - -
@sentry/cloudflare (withSentry) - minified 197.59 kB - -
@sentry/cloudflare (withSentry) 485.75 kB - -

View base workflow run

@nicohrubec
nicohrubec merged commit 943505a into develop Jul 29, 2026
523 of 529 checks passed
@nicohrubec
nicohrubec deleted the ref/align-cache-token-attributes-with-conventions branch July 29, 2026 13:54
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