Socket
Socket
Sign inDemoInstall

@sentry/core

Package Overview
Dependencies
Maintainers
11
Versions
511
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/core - npm Package Versions

23
52

7.119.0

Diff

sentry-bot
published 8.26.0 •

Changelog

Source

8.26.0

Important Changes

  • feat(node): Add fsInstrumentation (#13291)

    This release adds fsIntegration, an integration that instruments the fs API to the Sentry Node SDK. The integration creates spans with naming patterns of fs.readFile, fs.unlink, and so on.

    This integration is not enabled by default and needs to be registered in your Sentry.init call. You can configure via options whether to include path arguments or error messages as span attributes when an fs call fails:

    Sentry.init({
      integrations: [
        Sentry.fsIntegration({
          recordFilePaths: true,
          recordErrorMessagesAsSpanAttributes: true,
        }),
      ],
    });
    

    WARNING: This integration may add significant overhead to your application. Especially in scenarios with a lot of file I/O, like for example when running a framework dev server, including this integration can massively slow down your application.

Other Changes

  • feat(browser): Add spotlightBrowser integration (#13263)

  • feat(browser): Allow sentry in safari extension background page (#13209)

  • feat(browser): Send CLS as standalone span (experimental) (#13056)

  • feat(core): Add OpenTelemetry-specific getTraceData implementation (#13281)

  • feat(nextjs): Always add browserTracingIntegration (#13324)

  • feat(nextjs): Always transmit trace data to the client (#13337)

  • feat(nextjs): export SentryBuildOptions (#13296)

  • feat(nextjs): Update experimental_captureRequestError to reflect RequestInfo.path change in Next.js canary (#13344)

  • feat(nuxt): Always add tracing meta tags (#13273)

  • feat(nuxt): Set transaction name for server error (#13292)

  • feat(replay): Add a replay-specific logger (#13256)

  • feat(sveltekit): Add bundle size optimizations to plugin options (#13318)

  • feat(sveltekit): Always add browserTracingIntegration (#13322)

  • feat(tracing): Make long animation frames opt-out (#13255)

  • fix(astro): Correctly extract request data (#13315)

  • fix(astro): Only track access request headers in dynamic page requests (#13306)

  • fix(nuxt): Add import line for disabled autoImport (#13342)

  • fix(nuxt): Add vue to excludeEsmLoaderHooks array (#13346)

  • fix(opentelemetry): Do not overwrite http span name if kind is internal (#13282)

  • fix(remix): Ensure origin is correctly set for remix server spans (#13305)

Work in this release was contributed by @MonstraG, @undead-voron and @Zen-cronic. Thank you for your contributions!

sentry-bot
published 8.25.0 •

sentry-bot
published 8.24.0 •

Changelog

Source

8.24.0

  • feat(nestjs): Filter RPC exceptions (#13227)
  • fix: Guard getReader function for other fetch implementations (#13246)
  • fix(feedback): Ensure feedback can be lazy loaded in CDN bundles (#13241)
sentry-bot
published 8.23.0 •

Changelog

Source

8.23.0

Important Changes

  • feat(cloudflare): Add Cloudflare D1 instrumentation (#13142)

This release includes support for Cloudflare D1, Cloudflare's serverless SQL database. To instrument your Cloudflare D1 database, use the instrumentD1WithSentry method as follows:

// env.DB is the D1 DB binding configured in your `wrangler.toml`
const db = instrumentD1WithSentry(env.DB);
// Now you can use the database as usual
await db.prepare('SELECT * FROM table WHERE id = ?').bind(1).run();

Other Changes

  • feat(cloudflare): Allow users to pass handler to sentryPagesPlugin (#13192)
  • feat(cloudflare): Instrument scheduled handler (#13114)
  • feat(core): Add getTraceData function (#13134)
  • feat(nestjs): Automatic instrumentation of nestjs interceptors before route execution (#13153)
  • feat(nestjs): Automatic instrumentation of nestjs pipes (#13137)
  • feat(nuxt): Filter out Nuxt build assets (#13148)
  • feat(profiling): Attach sdk info to chunks (#13145)
  • feat(solidstart): Add sentry onBeforeResponse middleware to enable distributed tracing (#13221)
  • feat(solidstart): Filter out low quality transactions for build assets (#13222)
  • fix(browser): Avoid showing browser extension error message in non-window global scopes (#13156)
  • fix(feedback): Call dialog.close() in dialog close callbacks in \_loadAndRenderDialog (#13203)
  • fix(nestjs): Inline Observable type to resolve missing 'rxjs' dependency (#13166)
  • fix(nuxt): Detect pageload by adding flag in Vue router (#13171)
  • fix(utils): Handle when requests get aborted in fetch instrumentation (#13202)
  • ref(browser): Improve browserMetrics collection (#13062)

Work in this release was contributed by @horochx. Thank you for your contribution!

sentry-bot
published 8.22.0 •

Changelog

Source

8.22.0

Important Changes

  • feat(cloudflare): Add plugin for cloudflare pages (#13123)

This release adds support for Cloudflare Pages to @sentry/cloudflare, our SDK for the Cloudflare Workers JavaScript Runtime! For details on how to use it, please see the README. Any feedback/bug reports are greatly appreciated, please reach out on GitHub.

// functions/_middleware.js
import * as Sentry from '@sentry/cloudflare';

export const onRequest = Sentry.sentryPagesPlugin({
  dsn: __PUBLIC_DSN__,
  // Set tracesSampleRate to 1.0 to capture 100% of spans for tracing.
  tracesSampleRate: 1.0,
});

Other Changes

  • feat(meta-sdks): Remove runtime tags (#13105)
  • feat(nestjs): Automatic instrumentation of nestjs guards (#13129)
  • feat(nestjs): Filter all HttpExceptions (#13120)
  • feat(replay): Capture exception when internal_sdk_error client report happens (#13072)
  • fix: Use globalThis for code injection (#13132)
sentry-bot
published 8.21.0 •

Changelog

Source

8.21.0

Important Changes

  • Alpha release of Official Cloudflare SDK
    • feat(cloudflare): Add withSentry method (#13025)
    • feat(cloudflare): Add cloudflare sdk scaffolding (#12953)
    • feat(cloudflare): Add basic cloudflare package and tests (#12861)

This release contains the alpha version of @sentry/cloudflare, our SDK for the Cloudflare Workers JavaScript Runtime! For details on how to use it, please see the README. Any feedback/bug reports are greatly appreciated, please reach out on GitHub.

Please note that only Cloudflare Workers are tested and supported - official Cloudflare Pages support will come in an upcoming release.

Other Changes

  • feat(feedback): Make cropped screenshot area draggable (#13071)
  • feat(core): Adapt spans for client-side fetch to streaming responses (#12723)
  • feat(core): Capture # of dropped spans through beforeSendTransaction (#13022)
  • feat(deps): bump @opentelemetry/instrumentation-aws-sdk from 0.43.0 to 0.43.1 (#13089)
  • feat(deps): bump @opentelemetry/instrumentation-express from 0.41.0 to 0.41.1 (#13090)
  • feat(nestjs): Automatic instrumentation of nestjs middleware (#13065)
  • feat(node): Upgrade import-in-the-middle to 1.11.0 (#13107)
  • feat(nuxt): Add connected tracing meta tags (#13098)
  • feat(nuxt): Add vue-router instrumentation (#13054)
  • feat(solidstart): Add server action instrumentation helper (#13035)
  • fix(feedback): Ensure pluggable feedback CDN bundle is correctly built (#13081)
  • fix(nextjs): Only delete clientside bundle source maps with sourcemaps.deleteFilesAfterUpload (#13102)
  • fix(node): Improve OTEL validation logic (#13079)
sentry-bot
published 8.20.0 •

Changelog

Source

8.20.0

Important Changes

  • feat(node): Allow to pass registerEsmLoaderHooks to preload (#12998)

You can write your own custom preload script and configure this in the preload options. registerEsmLoaderHooks can be passed as an option to preloadOpenTelemetry, which allows to exclude/include packages in the preload.

  • fix(node): Do not emit fetch spans when tracing is disabled (#13003)

Sentry will not emit "fetch" spans if tracing is disabled. This is relevant for user who use their own sampler.

Other Changes

  • feat(feedback): Trigger button aria label configuration (#13008)
  • feat(nestjs): Change nest sdk setup (#12920)
  • feat(node): Extend ESM hooks options for iitm v1.10.0 (#13016)
  • feat(node): Send client reports (#12951)
  • feat(nuxt): Automatically add BrowserTracing (#13005)
  • feat(nuxt): Setup source maps with vite config (#13018)
  • feat(replay): Improve public Replay APIs (#13000)
sentry-bot
published 8.19.0 •

Changelog

Source

For Node.js >= 18.19.0

node --import=@sentry/node/import app.js


- **feat(node): Do not exit process by default when other `onUncaughtException` handlers are registered in
  `onUncaughtExceptionIntegration` (#11532)**

In v8, we will no longer exit the node process by default if other uncaught exception handlers have been registered by
the user.

- **Better handling of transaction name for errors**

We improved the way we keep the transaction name for error events, even when spans are not sampled or performance is
disabled.

- feat(fastify): Update scope `transactionName` when handling request (#11447)
- feat(hapi): Update scope `transactionName` when handling request (#11448)
- feat(koa): Update scope `transactionName` when creating router span (#11476)
- feat(sveltekit): Update scope transactionName when handling server-side request (#11511)
- feat(nestjs): Update scope transaction name with parameterized route (#11510)

### Removal/Refactoring of deprecated functionality

- feat(core): Remove `getCurrentHub` from `AsyncContextStrategy` (#11581)
- feat(core): Remove `getGlobalHub` export (#11565)
- feat(core): Remove `Hub` class export (#11560)
- feat(core): Remove most Hub class exports (#11536)
- feat(nextjs): Remove webpack 4 support (#11605)
- feat(vercel-edge): Stop using hub (#11539)

### Other Changes

- feat: Hoist `getCurrentHub` shim to core as `getCurrentHubShim` (#11537)
- feat(core): Add default behaviour for `rewriteFramesIntegration` in browser (#11535)
- feat(core): Ensure replay envelopes are sent in order when offline (#11413)
- feat(core): Extract errors from props in unkown inputs (#11526)
- feat(core): Update metric normalization (#11518)
- feat(feedback): Customize feedback placeholder text color (#11417)
- feat(feedback): Maintain v7 compat in the @sentry-internal/feedback package (#11461)
- feat(next): Handle existing root spans for isolation scope (#11479)
- feat(node): Ensure tracing without performance (TWP) works (#11564)
- feat(opentelemetry): Export `getRequestSpanData` (#11508)
- feat(opentelemetry): Remove otel.attributes in context (#11604)
- feat(ratelimit): Add metrics rate limit (#11538)
- feat(remix): Skip span creation for `OPTIONS` and `HEAD` requests. (#11149)
- feat(replay): Merge packages together & ensure bundles are built (#11552)
- feat(tracing): Adds span envelope and datacategory (#11534)
- fix(browser): Ensure pageload trace remains active after pageload span finished (#11600)
- fix(browser): Ensure tracing without performance (TWP) works (#11561)
- fix(nextjs): Fix `tunnelRoute` matching logic for hybrid cloud (#11576)
- fix(nextjs): Remove Http integration from Next.js (#11304)
- fix(node): Ensure isolation scope is correctly cloned for non-recording spans (#11503)
- fix(node): Make fastify types more broad (#11544)
- fix(node): Send ANR events without scope if event loop blocked indefinitely (#11578)
- fix(tracing): Fixes latest route name and source not updating correctly (#11533)
- ref(browser): Move browserTracing into browser pkg (#11484)
- ref(feedback): Configure font size (#11437)
- ref(feedback): Refactor Feedback types into @sentry/types and reduce the exported surface area (#11355)
sentry-bot
published 8.18.0 •

Changelog

Source

8.18.0

Important Changes

  • ref: Deprecate enableTracing (12897)

The enableTracing option has been deprecated and will be removed in the next major version. We recommend removing it in favor of the tracesSampleRate and tracesSampler options. If you want to enable performance monitoring, please set the tracesSampleRate to a sample rate of your choice, or provide a sampling function as tracesSampler option instead. If you want to disable performance monitoring, remove the tracesSampler and tracesSampleRate options.

Other Changes

  • feat(node): Expose exclude and include options for ESM loader (#12910)
  • feat(browser): Add user agent to INP standalone span attributes (#12896)
  • feat(nextjs): Add experimental_captureRequestError for onRequestError hook (#12885)
  • feat(replay): Bump rrweb to 2.25.0 (#12478)
  • feat(tracing): Add long animation frame tracing (#12646)
  • fix: Cleanup hooks when they are not used anymore (#12852)
  • fix(angular): Guard ErrorEvent check in ErrorHandler to avoid throwing in Node environments (#12892)
  • fix(inp): Ensure INP spans have correct transaction (#12871)
  • fix(nestjs): Do not make SentryTraced() decorated functions async (#12879)
  • fix(nextjs): Support automatic instrumentation for app directory with custom page extensions (#12858)
  • fix(node): Ensure correct URL is passed to ignoreIncomingRequests callback (#12929)
  • fix(otel): Do not add otel.kind: INTERNAL attribute (#12841)
  • fix(solidstart): Set proper sentry origin for solid router integration when used in solidstart sdk (#12919)
  • fix(sveltekit): Add Vite peer dep for proper type resolution (#12926)
  • fix(tracing): Ensure you can pass null as parentSpan in startSpan* (#12928)
  • ref(core): Small bundle size improvement (#12830)

Work in this release was contributed by @GitSquared, @ziyadkhalil and @mcous. Thank you for your contributions!

23
52
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc