npm @sentry/node 10.7.0

latest release: 10.8.0
5 days ago

Important Changes

  • feat(cloudflare): Add instrumentPrototypeMethods option to instrument RPC methods for DurableObjects (#17424)

By default, Sentry.instrumentDurableObjectWithSentry will not wrap any RPC methods on the prototype. To enable wrapping for RPC methods, set instrumentPrototypeMethods to true or, if performance is a concern, a list of only the methods you want to instrument:

class MyDurableObjectBase extends DurableObject<Env> {
  method1() {
    // ...
  }

  method2() {
    // ...
  }

  method3() {
    // ...
  }
}
// Export your named class as defined in your wrangler config
export const MyDurableObject = Sentry.instrumentDurableObjectWithSentry(
  (env: Env) => ({
    dsn: "https://ac49b7af3017c458bd12dab9b3328bfc@o4508482761982032.ingest.de.sentry.io/4508482780987481",
    tracesSampleRate: 1.0,
    instrumentPrototypeMethods: ['method1', 'method3'],
  }),
  MyDurableObjectBase,
);

Bundle size 📦

Path Size
@sentry/browser 23.59 KB
@sentry/browser - with treeshaking flags 22.2 KB
@sentry/browser (incl. Tracing) 38.94 KB
@sentry/browser (incl. Tracing, Replay) 76.4 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.43 KB
@sentry/browser (incl. Tracing, Replay with Canvas) 80.97 KB
@sentry/browser (incl. Tracing, Replay, Feedback) 92.8 KB
@sentry/browser (incl. Feedback) 39.88 KB
@sentry/browser (incl. sendFeedback) 28.13 KB
@sentry/browser (incl. FeedbackAsync) 32.92 KB
@sentry/react 25.27 KB
@sentry/react (incl. Tracing) 40.88 KB
@sentry/vue 27.97 KB
@sentry/vue (incl. Tracing) 40.72 KB
@sentry/svelte 23.62 KB
CDN Bundle 25.06 KB
CDN Bundle (incl. Tracing) 38.82 KB
CDN Bundle (incl. Tracing, Replay) 74.24 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 79.55 KB
CDN Bundle - uncompressed 73.2 KB
CDN Bundle (incl. Tracing) - uncompressed 114.83 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 227.23 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 239.53 KB
@sentry/nextjs (client) 42.86 KB
@sentry/sveltekit (client) 39.38 KB
@sentry/node-core 46.86 KB
@sentry/node 145.75 KB
@sentry/node - without tracing 90.08 KB
@sentry/aws-serverless 102.45 KB

Don't miss a new node release

NewReleases is sending notifications on new releases.