Releases: getsentry/sentry-javascript
9.21.0
- docs: Fix v7 migration link (#14629)
- feat(node): Vendor in
@fastify/otel
(#16328) - fix(nestjs): Handle multiple
OnEvent
decorators (#16306) - fix(node): Avoid creating breadcrumbs for suppressed requests (#16285)
- fix(remix): Add missing
client
exports toserver
andcloudflare
entries (#16341)
Work in this release was contributed by @phthhieu. Thank you for your contribution!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.48 KB |
@sentry/browser - with treeshaking flags | 23.15 KB |
@sentry/browser (incl. Tracing) | 37.56 KB |
@sentry/browser (incl. Tracing, Replay) | 74.79 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.98 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 79.44 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 91.27 KB |
@sentry/browser (incl. Feedback) | 39.87 KB |
@sentry/browser (incl. sendFeedback) | 28.11 KB |
@sentry/browser (incl. FeedbackAsync) | 32.87 KB |
@sentry/react | 25.21 KB |
@sentry/react (incl. Tracing) | 39.49 KB |
@sentry/vue | 27.77 KB |
@sentry/vue (incl. Tracing) | 39.34 KB |
@sentry/svelte | 23.5 KB |
CDN Bundle | 24.65 KB |
CDN Bundle (incl. Tracing) | 37.63 KB |
CDN Bundle (incl. Tracing, Replay) | 72.57 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 77.89 KB |
CDN Bundle - uncompressed | 71.9 KB |
CDN Bundle (incl. Tracing) - uncompressed | 111.35 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 222.65 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 235.18 KB |
@sentry/nextjs (client) | 41.1 KB |
@sentry/sveltekit (client) | 38.04 KB |
@sentry/node | 145.96 KB |
@sentry/node - without tracing | 95.8 KB |
@sentry/aws-serverless | 120.54 KB |
9.20.0
Important changes
- feat(browser): Track measure detail as span attributes (#16240)
The SDK now automatically collects details passed to performance.measure
options.
Other changes
- feat(node): Add
maxIncomingRequestBodySize
(#16225) - feat(react-router): Add server action instrumentation (#16292)
- feat(react-router): Filter manifest requests (#16294)
- feat(replay): Extend default list for masking with
aria-label
(#16192) - fix(browser): Ensure pageload & navigation spans have correct data (#16279)
- fix(cloudflare): Account for static fields in wrapper type (#16303)
- fix(nextjs): Preserve
next.route
attribute on root spans (#16297) - feat(node): Fork isolation scope in tRPC middleware (#16296)
- feat(core): Add
orgId
option toinit
and DSC (sentry-org_id
in baggage) (#16305)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.48 KB |
@sentry/browser - with treeshaking flags | 23.15 KB |
@sentry/browser (incl. Tracing) | 37.56 KB |
@sentry/browser (incl. Tracing, Replay) | 74.79 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.98 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 79.44 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 91.27 KB |
@sentry/browser (incl. Feedback) | 39.87 KB |
@sentry/browser (incl. sendFeedback) | 28.11 KB |
@sentry/browser (incl. FeedbackAsync) | 32.87 KB |
@sentry/react | 25.25 KB |
@sentry/react (incl. Tracing) | 39.53 KB |
@sentry/vue | 27.77 KB |
@sentry/vue (incl. Tracing) | 39.34 KB |
@sentry/svelte | 23.5 KB |
CDN Bundle | 24.66 KB |
CDN Bundle (incl. Tracing) | 37.63 KB |
CDN Bundle (incl. Tracing, Replay) | 72.58 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 77.9 KB |
CDN Bundle - uncompressed | 71.95 KB |
CDN Bundle (incl. Tracing) - uncompressed | 111.4 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 222.7 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 235.23 KB |
@sentry/nextjs (client) | 41.1 KB |
@sentry/sveltekit (client) | 38.04 KB |
@sentry/node | 154.45 KB |
@sentry/node - without tracing | 95.77 KB |
@sentry/aws-serverless | 120.52 KB |
9.19.0
- feat(react-router): Add otel instrumentation for server requests (#16147)
- feat(remix): Vendor in
opentelemetry-instrumentation-remix
(#16145) - fix(browser): Ensure spans auto-ended for navigations have
cancelled
reason (#16277) - fix(node): Pin
@fastify/otel
fork to direct url to allow installing without git (#16287) - fix(react): Handle nested parameterized routes in reactrouterv3 transaction normalization (#16274)
Work in this release was contributed by @sidx1024. Thank you for your contribution!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.4 KB |
@sentry/browser - with treeshaking flags | 23.06 KB |
@sentry/browser (incl. Tracing) | 37.31 KB |
@sentry/browser (incl. Tracing, Replay) | 74.53 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.72 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 79.19 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 91 KB |
@sentry/browser (incl. Feedback) | 39.8 KB |
@sentry/browser (incl. sendFeedback) | 28.03 KB |
@sentry/browser (incl. FeedbackAsync) | 32.79 KB |
@sentry/react | 25.17 KB |
@sentry/react (incl. Tracing) | 39.27 KB |
@sentry/vue | 27.67 KB |
@sentry/vue (incl. Tracing) | 39.07 KB |
@sentry/svelte | 23.43 KB |
CDN Bundle | 24.58 KB |
CDN Bundle (incl. Tracing) | 37.33 KB |
CDN Bundle (incl. Tracing, Replay) | 72.37 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 77.68 KB |
CDN Bundle - uncompressed | 71.72 KB |
CDN Bundle (incl. Tracing) - uncompressed | 110.5 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 221.78 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 234.31 KB |
@sentry/nextjs (client) | 40.88 KB |
@sentry/sveltekit (client) | 37.77 KB |
@sentry/node | 154.29 KB |
@sentry/node - without tracing | 95.6 KB |
@sentry/aws-serverless | 120.36 KB |
9.18.0
Important changes
- feat: Support Node 24 (#16236)
We now also publish profiling binaries for Node 24.
Other changes
- deps(node): Bump
import-in-the-middle
to1.13.1
(#16260) - feat: Export
consoleLoggingIntegration
from vercel edge sdk (#16228) - feat(cloudflare): Add support for email, queue, and tail handler (#16233)
- feat(cloudflare): Improve http span data (#16232)
- feat(nextjs): Add more attributes for generation functions (#16214)
- feat(opentelemetry): Widen peer dependencies to support Otel v2 (#16246)
- fix(core): Gracefully handle invalid baggage entries (#16257)
- fix(node): Ensure traces are propagated without spans in Node 22+ (#16221)
- fix(node): Use sentry forked
@fastify/otel
dependency with pinned Otel v1 deps (#16256) - fix(remix): Remove vendored types (#16218)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.4 KB |
@sentry/browser - with treeshaking flags | 23.22 KB |
@sentry/browser (incl. Tracing) | 37.3 KB |
@sentry/browser (incl. Tracing, Replay) | 74.53 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.37 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 79.18 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.99 KB |
@sentry/browser (incl. Feedback) | 39.8 KB |
@sentry/browser (incl. sendFeedback) | 28.03 KB |
@sentry/browser (incl. FeedbackAsync) | 32.79 KB |
@sentry/react | 25.17 KB |
@sentry/react (incl. Tracing) | 39.26 KB |
@sentry/vue | 27.67 KB |
@sentry/vue (incl. Tracing) | 39.06 KB |
@sentry/svelte | 23.43 KB |
CDN Bundle | 24.58 KB |
CDN Bundle (incl. Tracing) | 37.33 KB |
CDN Bundle (incl. Tracing, Replay) | 72.37 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 77.67 KB |
CDN Bundle - uncompressed | 71.72 KB |
CDN Bundle (incl. Tracing) - uncompressed | 110.46 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 221.75 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 234.27 KB |
@sentry/nextjs (client) | 40.88 KB |
@sentry/sveltekit (client) | 37.76 KB |
@sentry/node | 155.42 KB |
@sentry/node - without tracing | 96 KB |
@sentry/aws-serverless | 121.5 KB |
9.17.0
- feat(node): Migrate to
@fastify/otel
(#15542)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.35 KB |
@sentry/browser - with treeshaking flags | 23.19 KB |
@sentry/browser (incl. Tracing) | 37.25 KB |
@sentry/browser (incl. Tracing, Replay) | 74.47 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.34 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 79.12 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.93 KB |
@sentry/browser (incl. Feedback) | 39.75 KB |
@sentry/browser (incl. sendFeedback) | 27.98 KB |
@sentry/browser (incl. FeedbackAsync) | 32.74 KB |
@sentry/react | 25.16 KB |
@sentry/react (incl. Tracing) | 39.24 KB |
@sentry/vue | 27.63 KB |
@sentry/vue (incl. Tracing) | 39.01 KB |
@sentry/svelte | 23.38 KB |
CDN Bundle | 24.55 KB |
CDN Bundle (incl. Tracing) | 37.29 KB |
CDN Bundle (incl. Tracing, Replay) | 72.33 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 77.64 KB |
CDN Bundle - uncompressed | 71.62 KB |
CDN Bundle (incl. Tracing) - uncompressed | 110.34 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 221.63 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 234.15 KB |
@sentry/nextjs (client) | 40.84 KB |
@sentry/sveltekit (client) | 37.73 KB |
@sentry/node | 151.37 KB |
@sentry/node - without tracing | 95.77 KB |
@sentry/aws-serverless | 120.16 KB |
9.16.1
- fix(core): Make sure logs get flushed in server-runtime-client (#16222)
- ref(node): Remove vercel flushing code that does nothing (#16217)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.35 KB |
@sentry/browser - with treeshaking flags | 23.19 KB |
@sentry/browser (incl. Tracing) | 37.25 KB |
@sentry/browser (incl. Tracing, Replay) | 74.47 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.34 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 79.12 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.93 KB |
@sentry/browser (incl. Feedback) | 39.75 KB |
@sentry/browser (incl. sendFeedback) | 27.98 KB |
@sentry/browser (incl. FeedbackAsync) | 32.74 KB |
@sentry/react | 25.16 KB |
@sentry/react (incl. Tracing) | 39.24 KB |
@sentry/vue | 27.63 KB |
@sentry/vue (incl. Tracing) | 39.01 KB |
@sentry/svelte | 23.38 KB |
CDN Bundle | 24.55 KB |
CDN Bundle (incl. Tracing) | 37.29 KB |
CDN Bundle (incl. Tracing, Replay) | 72.33 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 77.64 KB |
CDN Bundle - uncompressed | 71.62 KB |
CDN Bundle (incl. Tracing) - uncompressed | 110.34 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 221.63 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 234.15 KB |
@sentry/nextjs (client) | 40.84 KB |
@sentry/sveltekit (client) | 37.73 KB |
@sentry/node | 143.93 KB |
@sentry/node - without tracing | 95.77 KB |
@sentry/aws-serverless | 120.16 KB |
9.16.0
Important changes
- feat: Create a Vite plugin that injects sentryConfig into the global config (#16197)
Add a new plugin makeConfigInjectorPlugin
within our existing vite plugin that updates the global vite config with sentry options
- feat(browser): Add option to sample linked traces consistently (#16037)
This PR implements consistent sampling across traces as outlined in (#15754)
- feat(cloudflare): Add support for durable objects (#16180)
This PR introduces a new instrumentDurableObjectWithSentry
method to the SDK, which instruments durable objects. We capture both traces and errors automatically.
- feat(node): Add Prisma integration by default (#16073)
Prisma integration is enabled by default, it should work for both ESM and CJS.
- feat(react-router): Add client-side router instrumentation (#16185)
Adds client-side instrumentation for react router's HydratedRouter
. To enable it, simply replace browserTracingIntegration()
with reactRouterTracingIntegration()
in your client-side init call.
- fix(node): Avoid double-wrapping http module (#16177)
When running your application in ESM mode, there have been scenarios that resulted in the http
/https
emitting duplicate spans for incoming requests. This was apparently caused by us double-wrapping the modules for incoming request isolation.
In order to solve this problem, the modules are no longer monkey patched by us for request isolation. Instead, we register diagnosticschannel hooks to handle request isolation now.
While this is generally not expected to break anything, there is one tiny change that _may affect you if you have been relying on very specific functionality:
The ignoreOutgoingRequests
option of httpIntegration
receives the RequestOptions
as second argument. This type is not changed, however due to how the wrapping now works, we no longer pass through the full RequestOptions, but re-construct this partially based on the generated request. For the vast majority of cases, this should be fine, but for the sake of completeness, these are the only fields that may be available there going forward - other fields that may have existed before may no longer be set:
ignoreOutgoingRequests(url: string, {
method: string;
protocol: string;
host: string;
hostname: string; // same as host
path: string;
headers: OutgoingHttpHeaders;
})
Other changes
- feat(cloudflare): Add logs exports (#16165)
- feat(vercel-edge): Add logs export (#16166)
- feat(cloudflare): Read
SENTRY_RELEASE
fromenv
(#16201) - feat(node): Drop
http.server
spans with 404 status by default (#16205) - fix(browser): Respect manually set sentry tracing headers in XHR requests (#16184)
- fix(core): Respect manually set sentry tracing headers in fetch calls (#16183)
- fix(feedback): Prevent
removeFromDom()
from throwing (#16030) - fix(node): Use class constructor in docstring for winston transport (#16167)
- fix(node): Fix vercel flushing logic & add test for it (#16208)
- fix(node): Fix 404 route handling in express 5 (#16211)
- fix(logs): Ensure logs can be flushed correctly (#16216)
- ref(core): Switch to standardized log envelope (#16133)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.35 KB |
@sentry/browser - with treeshaking flags | 23.19 KB |
@sentry/browser (incl. Tracing) | 37.25 KB |
@sentry/browser (incl. Tracing, Replay) | 74.47 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.34 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 79.12 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.93 KB |
@sentry/browser (incl. Feedback) | 39.75 KB |
@sentry/browser (incl. sendFeedback) | 27.98 KB |
@sentry/browser (incl. FeedbackAsync) | 32.74 KB |
@sentry/react | 25.16 KB |
@sentry/react (incl. Tracing) | 39.24 KB |
@sentry/vue | 27.63 KB |
@sentry/vue (incl. Tracing) | 39.01 KB |
@sentry/svelte | 23.38 KB |
CDN Bundle | 24.55 KB |
CDN Bundle (incl. Tracing) | 37.29 KB |
CDN Bundle (incl. Tracing, Replay) | 72.33 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 77.64 KB |
CDN Bundle - uncompressed | 71.62 KB |
CDN Bundle (incl. Tracing) - uncompressed | 110.34 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 221.63 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 234.15 KB |
@sentry/nextjs (client) | 40.84 KB |
@sentry/sveltekit (client) | 37.73 KB |
@sentry/node | 144.43 KB |
@sentry/node - without tracing | 96.3 KB |
@sentry/aws-serverless | 120.66 KB |
9.15.0
Important Changes
- feat: Export
wrapMcpServerWithSentry
from server packages (#16127)
Exports the wrapMcpServerWithSentry which is our MCP server instrumentation from all the server packages.
- feat(core): Associate resource/tool/prompt invocations with request span instead of response span (#16126)
Adds a best effort mechanism to associate handler spans for resource
, tool
and prompt
with the incoming message requests instead of the outgoing SSE response.
Other Changes
- fix: Vercel
ai
ESM patching (#16152) - fix(node): Update version range for
module.register
(#16125) - fix(react-router): Spread
unstable_sentryVitePluginOptions
correctly (#16156) - fix(react): Fix Redux integration failing with reducer injection (#16106)
- fix(remix): Add ESM-compatible exports (#16124)
- fix(remix): Avoid rewrapping root loader. (#16136)
Work in this release was contributed by @AntoineDuComptoirDesPharmacies. Thank you for your contribution!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.28 KB |
@sentry/browser - with treeshaking flags | 23.1 KB |
@sentry/browser (incl. Tracing) | 36.93 KB |
@sentry/browser (incl. Tracing, Replay) | 74.1 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.47 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 78.76 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.58 KB |
@sentry/browser (incl. Feedback) | 39.68 KB |
@sentry/browser (incl. sendFeedback) | 27.9 KB |
@sentry/browser (incl. FeedbackAsync) | 32.67 KB |
@sentry/react | 25.09 KB |
@sentry/react (incl. Tracing) | 38.93 KB |
@sentry/vue | 27.5 KB |
@sentry/vue (incl. Tracing) | 38.69 KB |
@sentry/svelte | 23.31 KB |
CDN Bundle | 24.49 KB |
CDN Bundle (incl. Tracing) | 36.96 KB |
CDN Bundle (incl. Tracing, Replay) | 72 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 77.3 KB |
CDN Bundle - uncompressed | 71.5 KB |
CDN Bundle (incl. Tracing) - uncompressed | 109.33 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 220.62 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 233.15 KB |
@sentry/nextjs (client) | 40.51 KB |
@sentry/sveltekit (client) | 37.41 KB |
@sentry/node | 143.4 KB |
@sentry/node - without tracing | 96.49 KB |
@sentry/aws-serverless | 120.81 KB |
9.14.0
Important Changes
- feat: Add Supabase Integration (#15719)
This PR adds Supabase integration to @sentry/core
, allowing automatic instrumentation of Supabase client operations (database queries and authentication) for performance monitoring and error tracking.
- feat(nestjs): Gracefully handle RPC scenarios in
SentryGlobalFilter
(#16066)
This PR adds better RPC exception handling to @sentry/nestjs
, preventing application crashes while still capturing errors and warning users when a dedicated filter is needed. The implementation gracefully handles the 'rpc' context type in SentryGlobalFilter
to improve reliability in hybrid applications.
- feat(react-router): Trace propagation (#16070)
This PR adds trace propagation to @sentry/react-router
by providing utilities to inject trace meta tags into HTML headers and offering a pre-built Sentry-instrumented request handler, improving distributed tracing capabilities across page loads.
Other Changes
- feat(deps): Bump @prisma/instrumentation from 6.5.0 to 6.6.0 (#16102)
- feat(nextjs): Improve server component data (#15996)
- feat(nuxt): Log when adding HTML trace meta tags (#16044)
- fix(node): Make body capturing more robust (#16105)
- ref(node): Log when incoming request bodies are being captured (#16104)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.28 KB |
@sentry/browser - with treeshaking flags | 23.12 KB |
@sentry/browser (incl. Tracing) | 36.99 KB |
@sentry/browser (incl. Tracing, Replay) | 74.17 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.55 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 78.83 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.65 KB |
@sentry/browser (incl. Feedback) | 39.68 KB |
@sentry/browser (incl. sendFeedback) | 27.9 KB |
@sentry/browser (incl. FeedbackAsync) | 32.67 KB |
@sentry/react | 25.09 KB |
@sentry/react (incl. Tracing) | 38.91 KB |
@sentry/vue | 27.51 KB |
@sentry/vue (incl. Tracing) | 38.71 KB |
@sentry/svelte | 23.32 KB |
CDN Bundle | 24.5 KB |
CDN Bundle (incl. Tracing) | 36.98 KB |
CDN Bundle (incl. Tracing, Replay) | 72 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 77.16 KB |
CDN Bundle - uncompressed | 71.49 KB |
CDN Bundle (incl. Tracing) - uncompressed | 109.34 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 220.63 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 233.16 KB |
@sentry/nextjs (client) | 40.54 KB |
@sentry/sveltekit (client) | 37.44 KB |
@sentry/node | 143.37 KB |
@sentry/node - without tracing | 96.51 KB |
@sentry/aws-serverless | 120.83 KB |
9.13.0
Important Changes
-
feat(node): Add support for winston logger (#15983)
Sentry is adding support for structured logging. In this release we've added support for sending logs to Sentry via the winston logger to the Sentry Node SDK (and SDKs that use the Node SDK under the hood like
@sentry/nestjs
). The Logging APIs in the Sentry SDK are still experimental and subject to change.const winston = require('winston'); const Transport = require('winston-transport'); const transport = Sentry.createSentryWinstonTransport(Transport); const logger = winston.createLogger({ transports: [transport], });
-
feat(core): Add
wrapMcpServerWithSentry
to instrument MCP servers from@modelcontextprotocol/sdk
(#16032)The Sentry SDK now supports instrumenting MCP servers from the
@modelcontextprotocol/sdk
package. Compatible with versions^1.9.0
of the@modelcontextprotocol/sdk
package.import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; // Create an MCP server const server = new McpServer({ name: 'Demo', version: '1.0.0', }); // Use the instrumented server in your application const instrumentedServer = Sentry.wrapMcpServerWithSentry(server);
-
feat(core): Move console integration into core and add to cloudflare/vercel-edge (#16024)
Console instrumentation has been added to
@sentry/cloudflare
and@sentry/nextjs
Edge Runtime and is enabled by default. Now calls to the console object will be captured as breadcrumbs for those SDKs. -
feat(bun): Support new
Bun.serve
APIs (#16035)Bun
1.2.6
and above have a newBun.serve
API, which the Bun SDK now supports. The SDK instruments the new routes object that can be used to define routes for the server.Thanks to @Jarred-Sumner for helping us get this supported!
Other Changes
- feat(browser): Warn on duplicate
browserTracingIntegration
(#16042) - feat(core): Allow delayed sending with offline transport (#15937)
- feat(deps): Bump @sentry/webpack-plugin from 3.2.4 to 3.3.1 (#16057)
- feat(vue): Apply stateTransformer to attachments in Pinia Plugin (#16034)
- fix(core): Run
beforeSendLog
after we process log (#16019) - fix(nextjs): Don't show turbopack warning for newer Next.js canaries (#16065)
- fix(nextjs): Include patch version 0 for min supported 15.3.0 (#16026)
- fix(node): Ensure late init works with all integrations (#16016)
- fix(react-router): Pass
unstable_sentryVitePluginOptions
to cli instance (#16033) - fix(serverless-aws): Overwrite root span name with GraphQL if set (#16010)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.28 KB |
@sentry/browser - with treeshaking flags | 23.12 KB |
@sentry/browser (incl. Tracing) | 36.99 KB |
@sentry/browser (incl. Tracing, Replay) | 74.17 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.55 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 78.83 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.65 KB |
@sentry/browser (incl. Feedback) | 39.68 KB |
@sentry/browser (incl. sendFeedback) | 27.9 KB |
@sentry/browser (incl. FeedbackAsync) | 32.67 KB |
@sentry/react | 25.09 KB |
@sentry/react (incl. Tracing) | 38.91 KB |
@sentry/vue | 27.51 KB |
@sentry/vue (incl. Tracing) | 38.71 KB |
@sentry/svelte | 23.32 KB |
CDN Bundle | 24.51 KB |
CDN Bundle (incl. Tracing) | 36.98 KB |
CDN Bundle (incl. Tracing, Replay) | 72.03 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 77.18 KB |
CDN Bundle - uncompressed | 71.47 KB |
CDN Bundle (incl. Tracing) - uncompressed | 109.34 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 220.63 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 233.16 KB |
@sentry/nextjs (client) | 40.53 KB |
@sentry/sveltekit (client) | 37.44 KB |
@sentry/node | 143.33 KB |
@sentry/node - without tracing | 96.47 KB |
@sentry/aws-serverless | 120.77 KB |