10.7.0
10.7.0
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,
);
Other Changes
- feat(aws): Add support for streaming handlers (#17463)
- feat(core): Stream responses Anthropic AI (#17460)
- feat(deps): bump @opentelemetry/instrumentation-aws-sdk from 0.56.0 to 0.57.0 (#17455)
- feat(deps): bump @opentelemetry/instrumentation-dataloader from 0.21.0 to 0.21.1 (#17457)
- feat(deps): bump @opentelemetry/instrumentation-kafkajs from 0.12.0 to 0.13.0 (#17469)
- feat(deps): bump @opentelemetry/instrumentation-mysql2 from 0.49.0 to 0.50.0 (#17459)
- feat(deps): bump @prisma/instrumentation from 6.13.0 to 6.14.0 (#17466)
- feat(deps): bump @sentry/cli from 2.51.1 to 2.52.0 (#17458)
- feat(deps): bump @sentry/rollup-plugin from 4.1.0 to 4.1.1 (#17456)
- feat(deps): bump @sentry/webpack-plugin from 4.1.0 to 4.1.1 (#17467)
- feat(replay): Add option to skip
requestAnimationFrame
for canvas snapshots (#17380)
Internal Changes
- test(aws): Run E2E tests in all supported Node versions (#17446)
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 |