Skip to content

ref: Update to use @sentry/conventions#21489

Closed
mydea wants to merge 2 commits into
developfrom
feat/use-sentry-conventions
Closed

ref: Update to use @sentry/conventions#21489
mydea wants to merge 2 commits into
developfrom
feat/use-sentry-conventions

Conversation

@mydea

@mydea mydea commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

Updates all packages except node to use @sentry/conventions for semantic-convention attribute keys instead of @opentelemetry/semantic-conventions. There should be no functional change — the attribute keys set are identical.

@sentry/conventions is added as a devDependency and vendored into the build output (tree-shaken to only the keys used), so it does not become a runtime dependency. Where an attribute name exists in @sentry/conventions it is imported from there; the few that don't (e.g. faas.execution, faas.id, AWS-specific keys) stay vendored locally as before.

Notable details

  • preserveModulesRoot: 'src' was added to the rollup config of the preserveModules: true packages so the vendored @sentry/conventions copy doesn't shift the emitted output layout (matching the existing aws-serverless setup).
  • A single paths mapping in packages/typescript/tsconfig.json lets the repo's moduleResolution: "node" type builds resolve the @sentry/conventions/attributes subpath export. Build-time only — the keys are vendored into the bundles, so it never reaches published artifacts.
  • In aws-serverless's vendored semconv.ts, the 21 keys that exist in @sentry/conventions are now imported directly at their use sites; the AWS-specific / enum-value / metric consts remain vendored.
  • packages/node is intentionally left on @opentelemetry/semantic-conventions and will be handled separately.

@mydea mydea self-assigned this Jun 12, 2026
@mydea mydea requested review from andreiborza and nicohrubec June 12, 2026 09:11
@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.39 kB - -
@sentry/browser - with treeshaking flags 25.82 kB - -
@sentry/browser (incl. Tracing) 45.68 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.92 kB - -
@sentry/browser (incl. Tracing, Profiling) 50.48 kB - -
@sentry/browser (incl. Tracing, Replay) 84.9 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 74.51 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 89.6 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 102.28 kB - -
@sentry/browser (incl. Feedback) 44.55 kB - -
@sentry/browser (incl. sendFeedback) 32.19 kB - -
@sentry/browser (incl. FeedbackAsync) 37.3 kB - -
@sentry/browser (incl. Metrics) 28.46 kB - -
@sentry/browser (incl. Logs) 28.69 kB - -
@sentry/browser (incl. Metrics & Logs) 29.39 kB - -
@sentry/react 29.18 kB - -
@sentry/react (incl. Tracing) 47.98 kB - -
@sentry/vue 32.4 kB - -
@sentry/vue (incl. Tracing) 47.57 kB - -
@sentry/svelte 27.41 kB - -
CDN Bundle 29.78 kB - -
CDN Bundle (incl. Tracing) 48.16 kB - -
CDN Bundle (incl. Logs, Metrics) 31.32 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.48 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.61 kB - -
CDN Bundle (incl. Tracing, Replay) 85.51 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.75 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.34 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.6 kB - -
CDN Bundle - uncompressed 88.46 kB - -
CDN Bundle (incl. Tracing) - uncompressed 145.67 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 93.17 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 149.65 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 217.99 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 264.54 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 268.5 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 278.24 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 282.19 kB - -
@sentry/nextjs (client) 50.43 kB - -
@sentry/sveltekit (client) 46.1 kB - -
@sentry/core/server 76.08 kB - -
@sentry/core/browser 63.22 kB - -
@sentry/node-core 61.73 kB +0.01% +6 B 🔺
@sentry/node 130.6 kB +0.07% +80 B 🔺
@sentry/node - without tracing 74.15 kB +0.07% +47 B 🔺
@sentry/aws-serverless 86.36 kB +0.08% +68 B 🔺
@sentry/cloudflare (withSentry) - minified 173.69 kB - -
@sentry/cloudflare (withSentry) 433.85 kB - -

View base workflow run

mydea added 2 commits June 12, 2026 11:47
This updates all packages except node to use sentry conventions instead of opentelemetry conventions. There should be no functional change.
@mydea mydea force-pushed the feat/use-sentry-conventions branch from 67fb5f2 to 23cd953 Compare June 12, 2026 09:51
@mydea

mydea commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

Decided to instead split this into a PR per package to make it easier to review and figure out build issues.

@mydea mydea closed this Jun 12, 2026
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.

1 participant