Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update sentry-javascript monorepo to v7.101.1 #58

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 19, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sentry/integrations (source) 7.81.1 -> 7.101.1 age adoption passing confidence
@sentry/node (source) 7.81.1 -> 7.101.1 age adoption passing confidence

Release Notes

getsentry/sentry-javascript (@​sentry/integrations)

v7.101.1

Compare Source

In version 7.101.0 the @sentry/hub package was missing due to a publishing issue. This release contains the package
again.

  • fix(nextjs): Remove webpack:// prefix more broadly from source map sources field (#​10641)

Bundle size 📦

Path Size
@​sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 78.42 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.65 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 73.58 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 63.26 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 33.6 KB
@​sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 33.48 KB
@​sentry/browser (incl. Feedback) - Webpack (gzipped) 31.37 KB
@​sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.38 KB
@​sentry/browser - Webpack (gzipped) 22.64 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 76.69 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 68.18 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 34.01 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 25 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 214.8 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 102.6 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 74.89 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 37.14 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 70.01 KB
@​sentry/react - Webpack (gzipped) 22.67 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 87.68 KB
@​sentry/nextjs Client - Webpack (gzipped) 51.87 KB
@​sentry-internal/feedback - Webpack (gzipped) 17.22 KB

v7.101.0

Compare Source

  • feat: Export semantic attribute keys from SDK packages (#​10637)
  • feat(core): Add metric summaries to spans (#​10554)
  • feat(core): Deprecate the Hub constructor (#​10584)
  • feat(core): Make custom tracing methods return spans & set default op (#​10633)
  • feat(replay): Add getReplay utility function (#​10510)
  • fix(angular-ivy): Add exports field to package.json (#​10569)
  • fix(sveltekit): Avoid capturing Http 4xx errors on the client (#​10571)
  • fix(sveltekit): Properly await sourcemaps flattening (#​10602)

v7.100.1

Compare Source

This release contains build fixes for profiling-node.

  • build(profiling-node): make sure debug build plugin is used #​10534
  • build: Only run profiling e2e test if bindings have changed #​10542
  • fix(feedback): Replay breadcrumb for feedback events was incorrect #​10536

Bundle size 📦

Path Size
@​sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 78.33 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.57 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 73.49 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 63.17 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 33.52 KB
@​sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 33.39 KB
@​sentry/browser (incl. Feedback) - Webpack (gzipped) 31.37 KB
@​sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.37 KB
@​sentry/browser - Webpack (gzipped) 22.63 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 76.36 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.9 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 33.66 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 24.73 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 214.07 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 101.87 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 74.26 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.8 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.93 KB
@​sentry/react - Webpack (gzipped) 22.67 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 87.54 KB
@​sentry/nextjs Client - Webpack (gzipped) 51.72 KB
@​sentry-internal/feedback - Webpack (gzipped) 17.22 KB

v7.100.0

Compare Source

Important Changes
Deprecations

This release includes some deprecations. For more details please look at our
migration guide.

The deprecation most likely to affect you is the one of BrowserTracing. Instead of new BrowserTracing(), you should
now use browserTracingIntegration(), which will also handle framework-specific instrumentation out of the box for
you - no need to pass a custom routingInstrumentation anymore. For @sentry/react, we expose dedicated integrations
for the different react-router versions:

  • reactRouterV6BrowserTracingIntegration()
  • reactRouterV5BrowserTracingIntegration()
  • reactRouterV4BrowserTracingIntegration()
  • reactRouterV3BrowserTracingIntegration()

See the
migration guide
for details.

  • feat(angular): Export custom browserTracingIntegration() (#​10353)
  • feat(browser): Deprecate BrowserTracing integration (#​10493)
  • feat(browser): Export browserProfilingIntegration (#​10438)
  • feat(bun): Export bunServerIntegration() (#​10439)
  • feat(nextjs): Add browserTracingIntegration (#​10397)
  • feat(react): Add reactRouterV3BrowserTracingIntegration for react router v3 (#​10489)
  • feat(react): Add reactRouterV4/V5BrowserTracingIntegration for react router v4 & v5 (#​10488)
  • feat(react): Add reactRouterV6BrowserTracingIntegration for react router v6 & v6.4 (#​10491)
  • feat(remix): Add custom browserTracingIntegration (#​10442)
  • feat(node): Expose functional integrations to replace classes (#​10356)
  • feat(vercel-edge): Replace WinterCGFetch with winterCGFetchIntegration (#​10436)
  • feat: Deprecate non-callback based continueTrace (#​10301)
  • feat(vue): Deprecate new VueIntegration() (#​10440)
  • feat(vue): Implement vue browserTracingIntegration() (#​10477)
  • feat(sveltekit): Add custom browserTracingIntegration() (#​10450)
Profiling Node

@sentry/profiling-node has been ported into the monorepo. Future development for it will happen here!

  • pkg(profiling-node): port profiling-node repo to monorepo (#​10151)
Other Changes
  • feat: Export setHttpStatus from all packages (#​10475)
  • feat(bundles): Add pluggable integrations on CDN to Sentry namespace (#​10452)
  • feat(core): Pass name & attributes to tracesSampler (#​10426)
  • feat(feedback): Add system-ui to start of font family (#​10464)
  • feat(node-experimental): Add koa integration (#​10451)
  • feat(node-experimental): Update opentelemetry packages (#​10456)
  • feat(node-experimental): Update tracing integrations to functional style (#​10443)
  • feat(replay): Bump rrweb to 2.10.0 (#​10445)
  • feat(replay): Enforce masking of credit card fields (#​10472)
  • feat(utils): Add propagationContextFromHeaders (#​10313)
  • fix: Make startSpan, startSpanManual and startInactiveSpan pick up the scopes at time of creation instead of
    termination (#​10492)
  • fix(feedback): Fix logo color when colorScheme is "system" (#​10465)
  • fix(nextjs): Do not report redirects and notFound calls as errors in server actions (#​10474)
  • fix(nextjs): Fix navigation tracing on app router (#​10502)
  • fix(nextjs): Apply server action data to correct isolation scope (#​10514)
  • fix(node): Use normal require call to import Undici (#​10388)
  • ref(nextjs): Remove internally used deprecated APIs (#​10453)
  • ref(vue): use startInactiveSpan in tracing mixin (#​10406)

v7.99.0

Compare Source

Important Changes
Deprecations

This release includes some deprecations for span related methods and integrations in our Deno SDK, @sentry/deno. For
more details please look at our
migration guide.

  • feat(core): Deprecate Span.setHttpStatus in favor of setHttpStatus (#​10268)
  • feat(core): Deprecate spanStatusfromHttpCode in favour of getSpanStatusFromHttpCode (#​10361)
  • feat(core): Deprecate StartSpanOptions.origin in favour of passing attribute (#​10274)
  • feat(deno): Expose functional integrations to replace classes (#​10355)
Other Changes
  • feat(bun): Add missing @sentry/node re-exports (#​10396)
  • feat(core): Add afterAllSetup hook for integrations (#​10345)
  • feat(core): Ensure startSpan() can handle spans that require parent (#​10386)
  • feat(core): Read propagation context off scopes in startSpan APIs (#​10300)
  • feat(remix): Export missing @sentry/node functions (#​10385, #​10391)
  • feat(serverless): Add missing @sentry/node re-exports (#​10390)
  • feat(sveltekit): Add more missing @sentry/node re-exports (#​10392)
  • feat(tracing): Export proper type for browser tracing (#​10411)
  • feat(tracing): Expose new browserTracingIntegration (#​10351)
  • fix: Ensure afterAllSetup is called when using addIntegration() (#​10372)
  • fix(core): Export spanToTraceContext function from span utils (#​10364)
  • fix(core): Make FunctionToString integration use SETUP_CLIENTS weakmap (#​10358)
  • fix(deno): Call function if client is not setup (#​10354)
  • fix(react): Fix attachReduxState option (#​10381)
  • fix(spotlight): Use unpatched http.request (#​10369)
  • fix(tracing): Only create request span if there is active span (#​10375)
  • ref: Read propagation context off of scope and isolation scope when propagating and applying trace context (#​10297)

Work in this release contributed by @​AleshaOleg. Thank you for your contribution!

Bundle size 📦

Path Size
@​sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 78.18 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.39 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 73.28 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 63.01 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 33.41 KB
@​sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 33.28 KB
@​sentry/browser (incl. Feedback) - Webpack (gzipped) 31.33 KB
@​sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.34 KB
@​sentry/browser - Webpack (gzipped) 22.6 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 76 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.54 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 33.45 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 24.66 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 213.12 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 101.13 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 74 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.56 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.78 KB
@​sentry/react - Webpack (gzipped) 22.63 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.45 KB
@​sentry/nextjs Client - Webpack (gzipped) 50.76 KB
@​sentry-internal/feedback - Webpack (gzipped) 17.21 KB

v7.98.0

Compare Source

This release primarily fixes some type declaration errors:

  • feat(core): Export IntegrationIndex type (#​10337)
  • fix(nextjs): Fix Http integration type declaration (#​10338)
  • fix(node): Fix type definitions (#​10339)

Bundle size 📦

Path Size
@​sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.84 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.04 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 72.93 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.68 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 33.07 KB
@​sentry/browser (incl. Feedback) - Webpack (gzipped) 31.25 KB
@​sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.26 KB
@​sentry/browser - Webpack (gzipped) 22.5 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.57 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.13 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.97 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 24.43 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 211.42 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 99.44 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 73.08 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.07 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.45 KB
@​sentry/react - Webpack (gzipped) 22.55 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.11 KB
@​sentry/nextjs Client - Webpack (gzipped) 50.4 KB
@​sentry-internal/feedback - Webpack (gzipped) 17.21 KB

v7.97.0

Compare Source

Note: The 7.96.0 release was incomplete. This release is partially encompassing changes from 7.96.0.

  • feat(react): Add stripBasename option for React Router 6 (#​10314)

Bundle size 📦

Path Size
@​sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.84 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.04 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 72.93 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.68 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 33.07 KB
@​sentry/browser (incl. Feedback) - Webpack (gzipped) 31.25 KB
@​sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.26 KB
@​sentry/browser - Webpack (gzipped) 22.5 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.57 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.13 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.97 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 24.43 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 211.42 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 99.44 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 73.08 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.07 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.44 KB
@​sentry/react - Webpack (gzipped) 22.55 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.11 KB
@​sentry/nextjs Client - Webpack (gzipped) 50.4 KB
@​sentry-internal/feedback - Webpack (gzipped) 17.21 KB

v7.95.0

Compare Source

Important Changes
Deprecations

This release includes some deprecations in preparation for v8.

Most notably, it deprecates the Replay & Feedback classes in favor of a functional replacement:

import * as Sentry from '@​sentry/browser';

Sentry.init({
  integrations: [
    // Instead of
    new Sentry.Replay(),
    new Sentry.Feedback(),
    // Use the functional replacement:
    Sentry.replayIntegration(),
    Sentry.feedbackIntegration(),
  ],
});
  • feat(core): Deprecate Span.origin in favor of sentry.origin attribute (#​10260)
  • feat(core): Deprecate Span.parentSpanId (#​10244)
  • feat(core): Expose isInitialized() to replace checking via getClient (#​10296)
  • feat(replay): Deprecate Replay, ReplayCanvas, Feedback classes (#​10270)
  • feat(wasm): Deprecate Wasm integration class (#​10230)
Other Changes
  • feat: Make parameterize function available through browser and node API (#​10085)
  • feat(feedback): Configure feedback border radius (#​10289)
  • feat(sveltekit): Update default integration handling & deprecate addOrUpdateIntegration (#​10263)
  • fix(replay-canvas): Add missing dependency on @​sentry/utils (#​10279)
  • fix(tracing): Don't send negative ttfb (#​10286)

Work in this release contributed by @​AleshaOleg. Thank you for your contribution!

Bundle size 📦
Path Size
@​sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.79 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 68.96 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 72.85 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.6 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 32.97 KB
@​sentry/browser (incl. Feedback) - Webpack (gzipped) 31.24 KB
@​sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.25 KB
@​sentry/browser - Webpack (gzipped) 22.53 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.46 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.03 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.85 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 24.36 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 211.12 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 99.11 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 72.91 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 35.95 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.37 KB
@​sentry/react - Webpack (gzipped) 22.58 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 85.98 KB
@​sentry/nextjs Client - Webpack (gzipped) 50.27 KB
@​sentry-internal/feedback - Webpack (gzipped) 17.21 KB

v7.94.1

Compare Source

This release fixes a publishing issue.

Bundle size 📦

Path Size
@​sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.62 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 68.88 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 72.77 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.52 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 32.89 KB
@​sentry/browser (incl. Feedback) - Webpack (gzipped) 31.15 KB
@​sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.16 KB
@​sentry/browser - Webpack (gzipped) 22.51 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.2 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 66.81 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.66 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 24.21 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 210.51 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 98.48 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 72.46 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 35.71 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.3 KB
@​sentry/react - Webpack (gzipped) 22.55 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 85.88 KB
@​sentry/nextjs Client - Webpack (gzipped) 50.01 KB
@​sentry-internal/feedback - Webpack (gzipped) 17.14 KB

v7.93.0

Compare Source

Important Changes
Deprecations

As we're moving closer to the next major version of the SDK, more public APIs were deprecated.

To get a head start on migrating to the replacement APIs, please take a look at our
migration guide.

  • feat(core): Deprecate getActiveTransaction() & scope.getTransaction() (#​10098)
  • feat(core): Deprecate Hub.shouldSendDefaultPii (#​10062)
  • feat(core): Deprecate new Transaction() (#​10125)
  • feat(core): Deprecate scope.getSpan() & scope.setSpan() (#​10114)
  • feat(core): Deprecate scope.setTransactionName() (#​10113)
  • feat(core): Deprecate span.startChild() (#​10091)
  • feat(core): Deprecate startTransaction() (#​10073)
  • feat(core): Deprecate Transaction.getDynamicSamplingContext in favor of getDynamicSamplingContextFromSpan (#​10094)
  • feat(core): Deprecate arguments for startSpan() (#​10101)
  • feat(core): Deprecate hub capture APIs and add them to Scope (#​10039)
  • feat(core): Deprecate session APIs on hub and add global replacements (#​10054)
  • feat(core): Deprecate span name and description (#​10056)
  • feat(core): Deprecate span tags, data, context & setters (#​10053)
  • feat(core): Deprecate transaction metadata in favor of attributes (#​10097)
  • feat(core): Deprecate span.sampled in favor of span.isRecording() (#​10034)
  • ref(node-experimental): Deprecate lastEventId on scope (#​10093)
Cron Monitoring Support for node-schedule library

This release adds auto instrumented check-ins for the node-schedule library.

import * as Sentry from '@​sentry/node';
import * as schedule from 'node-schedule';

const scheduleWithCheckIn = Sentry.cron.instrumentNodeSchedule(schedule);

const job = scheduleWithCheckIn.scheduleJob('my-cron-job', '* * * * *', () => {
  console.log('You will see this message every minute');
});
  • feat(node): Instrumentation for node-schedule library (#​10086)
Other Changes
  • feat(core): Add span.spanContext() (#​10037)
  • feat(core): Add spanToJSON() method to get span properties (#​10074)
  • feat(core): Allow to pass scope to startSpan APIs (#​10076)
  • feat(core): Allow to pass start/end timestamp for spans flexibly (#​10060)
  • feat(node): Make getModuleFromFilename compatible with ESM (#​10061)
  • feat(replay): Update rrweb to 2.7.3 (#​10072)
  • feat(utils): Add parameterize function (#​9145)
  • fix(astro): Use correct package name for CF (#​10099)
  • fix(core): Do not run setup for integration on client multiple times (#​10116)
  • fix(core): Ensure we copy passed in span data/tags/attributes (#​10105)
  • fix(cron): Make name required for instrumentNodeCron option (#​10070)
  • fix(nextjs): Don't capture not-found and redirect errors in generation functions (#​10057)
  • fix(node): LocalVariables integration should have correct name (#​10084)
  • fix(node): Anr events should have an event_id (#​10068)
  • fix(node): Revert to only use sync debugger for LocalVariables (#​10077)
  • fix(node): Update ANR min node version to v16.17.0 (#​10107)

v7.92.0

Compare Source

Important Changes
Deprecations
  • feat(core): Add span.updateName() and deprecate span.setName() (#​10018)
  • feat(core): Deprecate span.getTraceContext() (#​10032)
  • feat(core): Deprecate span.toTraceparent() in favor of spanToTraceHeader() util (#​10031)
  • feat(core): Deprecate trace in favor of startSpan (#​10012)
  • feat(core): Deprecate span toContext() and updateWithContext() (#​10030)
  • ref: Deprecate deepReadDirSync (#​10016)
  • ref: Deprecate lastEventId() (#​10043)

Please take a look at the Migration docs for more details. These methods will be removed in the upcoming v8 major release.

Cron Monitoring Support for cron and node-cron libraries
  • feat(node): Instrumentation for cron library (#​9999)
  • feat(node): Instrumentation for node-cron library (#​9904)

This release adds instrumentation for the cron and node-cron libraries. This allows you to monitor your cron jobs with Sentry cron monitors.

For cron:

import * as Sentry from '@​sentry/node';
import { CronJob } from 'cron';

const CronJobWithCheckIn = Sentry.cron.instrumentCron(CronJob, 'my-cron-job');

// use the constructor
const job = new CronJobWithCheckIn('* * * * *', () => {
  console.log('You will see this message every minute');
});

// or from
const job = CronJobWithCheckIn.from({
  cronTime: '* * * * *',
  onTick: () => {
    console.log('You will see this message every minute');
  },
});

For node-cron:

import * as Sentry from '@​sentry/node';
import cron from 'node-cron';

const cronWithCheckIn = Sentry.cron.instrumentNodeCron(cron);

cronWithCheckIn.schedule(
  '* * * * *',
  () => {
    console.log('running a task every minute');
  },
  { name: 'my-cron-job' },
);
Other Changes
  • feat(astro): Add enabled option to Astro integration options (#​10007)
  • feat(core): Add attributes to Span (#​10008)
  • feat(core): Add setClient() and getClient() to Scope (#​10055)
  • feat(integrations): Capture error cause with captureErrorCause in ExtraErrorData integration (#​9914)
  • feat(node-experimental): Allow to pass base span options to trace methods (#​10006)
  • feat(node): Local variables via async inspector in node 19+ (#​9962)
  • fix(astro): handle commonjs related issues (#​10042)
  • fix(astro): Handle non-utf8 encoded streams in middleware (#​9989)
  • fix(astro): prevent sentry from externalized (#​9994)
  • fix(core): Ensure withScope sets current scope correctly with async callbacks (#​9974)
  • fix(node): ANR fixes and additions (#​9998)
  • fix(node): Anr should not block exit (#​10035)
  • fix(node): Correctly resolve module name (#​10001)
  • fix(node): Handle inspector already open (#​10025)
  • fix(node): Make NODE_VERSION properties required (#​9964)
  • fix(node): Anr doesn't block exit (#​10064)
  • fix(utils): use correct typeof URL validation (#​10028)
  • perf(astro): reduce unnecessary path resolutions (#​10021)
  • ref(astro): Use astro logger instead of console (#​9995)
  • ref(remix): Isolate Express instrumentation from server auto-instrumentation. (#​9966)

Work in this release contributed by @​joshkel. Thank you for your contribution!

Bundle size 📦

Path Size
@​sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 76.1 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 67.5 KB
@​sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 61.1 KB
@​sentry/browser (incl. Tracing) - Webpack (gzipped) 32.08 KB
@​sentry/browser (incl. Feedback) - Webpack (gzipped) 30.49 KB
@​sentry/browser - Webpack (gzipped) 22.21 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 73.53 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 65.2 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 31.37 KB
@​sentry/browser - ES6 CDN Bundle (gzipped) 23.29 KB
@​sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 204.35 KB
@​sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 94.24 KB
@​sentry/browser - ES6 CDN Bundle (minified & uncompressed) 69.09 KB
@​sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 34.33 KB
@​sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 67.91 KB
@​sentry/react - Webpack (gzipped) 22.23 KB
@​sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 84.53 KB
@​sentry/nextjs Client - Webpack (gzipped) 49.14 KB
@​sentry-internal/feedback - Webpack (gzipped) 16.73 KB

v7.91.0

Compare Source

Important Changes
  • feat: Add server runtime metrics aggregator (#​9894)

The release adds alpha support for Sentry developer metrics in the server runtime SDKs (@sentry/node, @sentry/deno, @sentry/nextjs server-side, etc.). Via the newly introduced APIs, you can now flush metrics directly to Sentry.

To enable capturing metrics, you first need to add the metricsAggregator experiment to your Sentry.init call.

Sentry.init({
  dsn: '__DSN__',
  _experiments: {
    metricsAggregator: true,
  },
});

Then you'll be able to add counters, sets, distributions, and gauges under the Sentry.metrics namespace.

// Add 4 to a counter named `hits`
Sentry.metrics.increment('hits', 4);

// Add 2 to gauge named `parallel_requests`, tagged with `type: "a"`
Sentry.metrics.gauge('parallel_requests', 2, { tags: { type: 'a' } });

// Add 4.6 to a distribution named `response_time` with unit seconds
Sentry.metrics.distribution('response_time', 4.6, { unit: 'seconds' });

// Add 2 to a set named `valuable.ids`
Sentry.metrics.set('valuable.ids', 2);
  • feat(node): Rework ANR to use worker script via an integration (#​9945)

The ANR tracking integration for Node has been reworked to use an integration. ANR tracking now requires a minimum Node version of 16 or higher. Previously you had to call Sentry.enableANRDetection before running your application, now you can simply add the Anr integration to your Sentry.init call.

import * as Sentry from '@​sentry/node';

Sentry.init({
  dsn: 'https://[email protected]/1337',
  integrations: [new Sentry.Integrations.Anr({ captureStackTrace: true, anrThreshold: 200 })],
});
Other Changes
  • feat(breadcrumbs): Send component names on UI breadcrumbs (#​9946)
  • feat(core): Add getGlobalScope() method (#​9920)
  • feat(core): Add getIsolationScope() method (#​9957)
  • feat(core): Add span.end() to replace span.finish() (#​9954)
  • feat(core): Ensure startSpan & startSpanManual fork scope (#​9955)
  • feat(react): Send component name on spans (#​9949)
  • feat(replay): Send component names in replay breadcrumbs (#​9947)
  • feat(sveltekit): Add options to configure fetch instrumentation script for CSP ([#&chore(deps): update dependency drizzle-kit to ^0.20.0 #8

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the renovate label Feb 19, 2024
@sebasptsch sebasptsch merged commit c96cb0e into main Feb 19, 2024
1 check passed
Copy link
Contributor

🎉 This PR is included in version 1.13.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant