Skip to content

ref(nestjs): Streamline nestjs-core#21434

Draft
nicohrubec wants to merge 4 commits into
developfrom
nh/streamline-nestjs-core
Draft

ref(nestjs): Streamline nestjs-core#21434
nicohrubec wants to merge 4 commits into
developfrom
nh/streamline-nestjs-core

Conversation

@nicohrubec

Copy link
Copy Markdown
Member

Streamlines the vendored @opentelemetry/instrumentation-nestjs-core:

  • Drop the semconv-stability machinery — removes the OTEL_SEMCONV_STABILITY_OPT_IN dual-emission path and always emits the old http.method/http.url attributes, aligning with the conventions Sentry emits everywhere else (the SDK never read the stable ones).
  • Remove dead enum members (PIPES/INTERCEPTORS/GUARDS).
  • Remove the /* eslint-disable */ and the no-explicit-any override exemption — the vendored code is now properly typed instead (no any, no suppressions).

No metrics to strip (span-only). Upstream's only unit test is integration-style (real Nest app), already covered by the nestjs e2e suite, so no unit-test port.

Fixes #20945

🤖 Generated with Claude Code

nicohrubec and others added 2 commits June 10, 2026 12:23
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a 'Sends an app_creation transaction' test to nestjs-basic for the
`Create Nest App` span (NestFactory.create), which had no coverage. It's a
boot-time transaction, so it uses a look-back envelope wait.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicohrubec nicohrubec force-pushed the nh/streamline-nestjs-core branch from 9aa697e to 9ffb469 Compare June 10, 2026 12:13
nicohrubec and others added 2 commits June 10, 2026 14:20
The vendored `semconv.ts` only held `http.method`/`http.url` string literals,
carried over with upstream's "@deprecated, use http.request.method/url.full"
notices. Sentry deliberately uses the old HTTP conventions, so those notices
are misleading. Inline the two literals and drop the file + import.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Restore the vendored `Controller`/`NestFactory`/`RouterExecutionContext` type
stubs from upstream (just swapping `any` for `unknown`) rather than replacing
them with custom interfaces. Keeps the vendored file closer to upstream for
easier re-vendoring. Type-only change; emitted JS is unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

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.05 kB +0.06% +44 B 🔺
@sentry/core/browser 63.19 kB +0.08% +46 B 🔺
@sentry/node-core 61.72 kB -0.01% -3 B 🔽
@sentry/node 130.48 kB +0.04% +43 B 🔺
@sentry/node - without tracing 74.11 kB - -
@sentry/aws-serverless 86.29 kB - -
@sentry/cloudflare (withSentry) - minified 173.69 kB - -
@sentry/cloudflare (withSentry) 433.85 kB - -

View base workflow run

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.

Streamline @opentelemetry/instrumentation-nestjs-core

1 participant