Skip to content

dependabot npm(deps): bump @sentry/node from 7.30.0 to 7.31.0

Depen d'Abot requested to merge dependabot-npm_and_yarn-sentry-node-7.31.0 into master

Bumps @sentry/node from 7.30.0 to 7.31.0.

Changelog

Sourced from @​sentry/node's changelog.

7.31.0

The Next.js SDK now supports error and performance monitoring for Next.js middleware and Edge API routes. To set it up, add a sentry.edge.config.js or sentry.edge.config.ts file to the root of your project and initialize the SDK:

// sentry.edge.config.js or sentry.edge.config.ts
import * as Sentry from "@​sentry/nextjs";
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
Sentry.init({
dsn: SENTRY_DSN || "YOUR DSN HERE",
tracesSampleRate: 1.0,
});

The Next.js will automatically instrument Edge API routes and middleware. If you want to opt out of automatic instrumentation of middleware can use the autoInstrumentMiddleware option in the sentry object of your Next.js configuration:

const moduleExports = {
  sentry: {
    autoInstrumentMiddleware: false,
  },
};

Middleware can be manually instrumented by using the wrapMiddlewareWithSentry function.

  • feat(nextjs): Add Edge Runtime SDK (#6752)
  • feat(nextjs): Add optional options argument to withSentryConfig as an alternative to the sentry property (#6721)
  • feat(nextjs): Add edge route and middleware wrappers (#6771)
  • feat(nextjs): Auto-wrap edge-routes and middleware (#6746)
  • feat(replay): Update rrweb & rrweb-snapshot (#6749)
  • feat(replay): Stop recording when retry fails (#6765)
  • feat(replay): Stop without retry when receiving bad API response (#6773)
  • feat(types): Add Trace Context type (#6714)
  • fix(nextjs): Export isomorphic data fetching wrappers from client SDK (#6790)
  • fix(nextjs): Make Next.js types isomorphic (#6707)
  • fix(node): Handle node build without inspector in LocalVariables integration (#6780)
  • fix(otel): Set trace context via Otel Span instead of Sentry span (#6724)
  • fix(otel): Prevent baggage from being overwritten (#6709)
  • fix(otel): Make sure we handle when sentry-trace is an empty array (#6781)
  • fix(remix): Make remix SDK type exports isomorphic (#6715)
  • fix(replay): Fix checkoutEveryNms (#6722)
  • fix(replay): Fix incorrect uncompressed recording size due to encoding (#6740)
  • fix(tracing): Attach request instrumentation span to active span instead of current transaction (#6778)
  • ref(nextjs): Deprecate isBuild() and IS_BUILD (#6727)
Commits
  • ead59ad release: 7.31.0
  • 38f49ca meta: CHANGELOG for 7.31.0 (#6787)
  • f29f4b1 fix(nextjs): Export isomorphic data fetching wrappers from client SDK (#6790)
  • 28a430d ref(nextjs): Rename wrapper functions (#6788)
  • aed2ce6 fix(replay): Fix incorrect uncompressed recording size due to encoding (#6740)
  • 4365c66 chore: Add flaky test template (#6786)
  • 06b3455 fix(node): Handle node build without inspector in LocalVariables integrat...
  • 81ef0ca feat(replay): Stop without retry when receiving bad API response (#6773)
  • 1e72c0c ci(replay): Overhead measurement (#6611)
  • ed136de fix(tracing): Attach request instrumentation span to active span instead of c...
  • Additional commits viewable in compare view

Merge request reports

Loading