Releases: getsentry/sentry-javascript
9.6.1
- feat(deps): bump @prisma/instrumentation from 6.4.1 to 6.5.0 (#15714)
- feat(deps): bump @sentry/cli from 2.42.2 to 2.42.3 (#15711)
- fix(nextjs): Re-patch router if it is overridden by Next.js (#15721)
- fix(nuxt): Add Nitro Rollup plugin to inject Sentry server config (#15710)
- chore(deps): Bump rollup to 4.35.0 (#15651)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.15 KB |
@sentry/browser - with treeshaking flags | 22.94 KB |
@sentry/browser (incl. Tracing) | 36.21 KB |
@sentry/browser (incl. Tracing, Replay) | 73.39 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.81 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 78.01 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.57 KB |
@sentry/browser (incl. Feedback) | 40.3 KB |
@sentry/browser (incl. sendFeedback) | 27.79 KB |
@sentry/browser (incl. FeedbackAsync) | 32.58 KB |
@sentry/react | 24.97 KB |
@sentry/react (incl. Tracing) | 38.1 KB |
@sentry/vue | 27.4 KB |
@sentry/vue (incl. Tracing) | 37.9 KB |
@sentry/svelte | 23.18 KB |
CDN Bundle | 24.36 KB |
CDN Bundle (incl. Tracing) | 36.26 KB |
CDN Bundle (incl. Tracing, Replay) | 71.27 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 76.45 KB |
CDN Bundle - uncompressed | 71.19 KB |
CDN Bundle (incl. Tracing) - uncompressed | 107.57 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.83 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.39 KB |
@sentry/nextjs (client) | 39.38 KB |
@sentry/sveltekit (client) | 36.63 KB |
@sentry/node | 142.29 KB |
@sentry/node - without tracing | 95.71 KB |
@sentry/aws-serverless | 120.06 KB |
9.6.0
Important Changes
-
feat(tanstackstart): Add
@sentry/tanstackstart-react
package and make@sentry/tanstackstart
package a utility package (#15629)Since TanStack Start is supposed to be a generic framework that supports libraries like React and Solid, the
@sentry/tanstackstart
SDK package was renamed to@sentry/tanstackstart-react
to reflect that the SDK is specifically intended to be used for React TanStack Start applications.
Note that the TanStack Start SDK is still in alpha status and may be subject to breaking changes in non-major package updates.
Other Changes
- feat(astro): Accept all vite-plugin options (#15638)
- feat(deps): bump @sentry/webpack-plugin from 3.2.1 to 3.2.2 (#15627)
- feat(tanstackstart): Refine initial API (#15574)
- fix(core): Ensure
fill
only patches functions (#15632) - fix(nextjs): Consider
pageExtensions
when looking for instrumentation file (#15701) - fix(remix): Null-check
options
(#15610) - fix(sveltekit): Correctly parse angle bracket type assertions for auto instrumentation (#15578)
- fix(sveltekit): Guard process variable (#15605)
Work in this release was contributed by @angelikatyborska and @nwalters512. Thank you for your contributions!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.15 KB |
@sentry/browser - with treeshaking flags | 22.94 KB |
@sentry/browser (incl. Tracing) | 36.21 KB |
@sentry/browser (incl. Tracing, Replay) | 73.39 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.8 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 78.01 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.57 KB |
@sentry/browser (incl. Feedback) | 40.3 KB |
@sentry/browser (incl. sendFeedback) | 27.79 KB |
@sentry/browser (incl. FeedbackAsync) | 32.58 KB |
@sentry/react | 24.97 KB |
@sentry/react (incl. Tracing) | 38.1 KB |
@sentry/vue | 27.4 KB |
@sentry/vue (incl. Tracing) | 37.9 KB |
@sentry/svelte | 23.18 KB |
CDN Bundle | 24.36 KB |
CDN Bundle (incl. Tracing) | 36.26 KB |
CDN Bundle (incl. Tracing, Replay) | 71.27 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 76.45 KB |
CDN Bundle - uncompressed | 71.19 KB |
CDN Bundle (incl. Tracing) - uncompressed | 107.57 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.84 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.4 KB |
@sentry/nextjs (client) | 39.27 KB |
@sentry/sveltekit (client) | 36.63 KB |
@sentry/node | 142.15 KB |
@sentry/node - without tracing | 95.58 KB |
@sentry/aws-serverless | 119.92 KB |
9.6.0-alpha.0
This is an alpha release that includes experimental functionality for the new logs API in Sentry. All experimental features are subject to breaking changes.
- feat(logs): Add experimental user-callable logging methods (#15442)
Logging is gated by an experimental option, _experiments.enableLogs
.
Sentry.init({
_experiments: {
// Enable logs to be sent to Sentry.
enableLogs: true,
},
});
These API are exposed in the Sentry._experiment_log
namespace. In the future the _experiment_log
namespace will be removed and logging functions will be moved into a more stable namespace.
There are functions for each of the logging severity levels fatal
, error
, warn
, info
, debug
, trace
. There is also a log
function that is an alias to info
.
Sentry._experiment_log.info('Adding item to cart', { item: 'sneakers' });
Sentry._experiment_log.warn('User performed invalid operation', { userId: '23423874', operation: 'open-file' });
If you want to do structured logging, you'll need to use the fmt
helper exposed in the Sentry._experiment_log
namespace.
const { fmt } = Sentry._experiment_log;
Sentry._experiment_log.info(fmt`user ${username} just bought ${item}!`);
SDKs that support the Alpha Logging APIs:
@sentry/astro
@sentry/aws-serverless
@sentry/browser
@sentry/bun
@sentry/cloudflare
@sentry/core
@sentry/deno
@sentry/ember
@sentry/gatsby
@sentry/google-cloud-serverless
@sentry/nestjs
@sentry/nextjs
@sentry/node
@sentry/nuxt
@sentry/react
@sentry/remix
@sentry/solid
@sentry/solidstart
@sentry/svelte
@sentry/sveltekit
@sentry/vercel-edge
@sentry/vue
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.82 KB |
@sentry/browser - with treeshaking flags | 23.63 KB |
@sentry/browser (incl. Tracing) | 36.82 KB |
@sentry/browser (incl. Tracing, Replay) | 73.98 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.42 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 78.63 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 91.17 KB |
@sentry/browser (incl. Feedback) | 40.97 KB |
@sentry/browser (incl. sendFeedback) | 28.46 KB |
@sentry/browser (incl. FeedbackAsync) | 33.24 KB |
@sentry/react | 25.61 KB |
@sentry/react (incl. Tracing) | 38.72 KB |
@sentry/vue | 28.03 KB |
@sentry/vue (incl. Tracing) | 38.54 KB |
@sentry/svelte | 23.85 KB |
CDN Bundle | 24.36 KB |
CDN Bundle (incl. Tracing) | 36.25 KB |
CDN Bundle (incl. Tracing, Replay) | 71.27 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 76.44 KB |
CDN Bundle - uncompressed | 71.15 KB |
CDN Bundle (incl. Tracing) - uncompressed | 107.53 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.8 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.36 KB |
@sentry/nextjs (client) | 39.87 KB |
@sentry/sveltekit (client) | 37.24 KB |
@sentry/node | 142.83 KB |
@sentry/node - without tracing | 96.26 KB |
@sentry/aws-serverless | 120.59 KB |
9.5.0
Important Changes
We found some issues with the new feedback screenshot annotation where screenshots are not being generated properly. Due to this issue, we are reverting the feature.
Other Changes
- Add cloudflare adapter detection and path generation (#15603)
- deps(nextjs): Bump rollup to
4.34.9
(#15589) - feat(bun): Automatically add performance integrations (#15586)
- feat(replay): Bump rrweb to 2.34.0 (#15580)
- fix(browser): Call original function on early return from patched history API (#15576)
- fix(nestjs): Copy metadata in custom decorators (#15598)
- fix(react-router): Fix config type import (#15583)
- fix(remix): Use correct types export for
@sentry/remix/cloudflare
(#15599) - fix(vue): Attach Pinia state only once per event (#15588)
Work in this release was contributed by @msurdi-a8c, @namoscato, and @rileyg98. Thank you for your contributions!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.14 KB |
@sentry/browser - with treeshaking flags | 22.93 KB |
@sentry/browser (incl. Tracing) | 36.2 KB |
@sentry/browser (incl. Tracing, Replay) | 73.38 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.79 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 78 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.56 KB |
@sentry/browser (incl. Feedback) | 40.29 KB |
@sentry/browser (incl. sendFeedback) | 27.78 KB |
@sentry/browser (incl. FeedbackAsync) | 32.57 KB |
@sentry/react | 24.96 KB |
@sentry/react (incl. Tracing) | 38.09 KB |
@sentry/vue | 27.38 KB |
@sentry/vue (incl. Tracing) | 37.89 KB |
@sentry/svelte | 23.17 KB |
CDN Bundle | 24.35 KB |
CDN Bundle (incl. Tracing) | 36.25 KB |
CDN Bundle (incl. Tracing, Replay) | 71.26 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 76.43 KB |
CDN Bundle - uncompressed | 71.14 KB |
CDN Bundle (incl. Tracing) - uncompressed | 107.52 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.79 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.36 KB |
@sentry/nextjs (client) | 39.26 KB |
@sentry/sveltekit (client) | 36.62 KB |
@sentry/node | 142.14 KB |
@sentry/node - without tracing | 95.57 KB |
@sentry/aws-serverless | 119.92 KB |
9.5.0-alpha.0
This is an alpha release that includes experimental functionality for the new logs API in Sentry. Support for these methods are only avaliable in the browser and core SDKs.
- feat(logs): Add experimental user-callable logging methods (#15442)
Logging is gated by an experimental option, _experiments.enableLogs
.
Sentry.init({
_experiments: {
enableLogs: true,
},
});
These API are exposed in the Sentry._experiment_log
namespace.
On a high level, there are functions for each of the logging severity levels fatal
, error
, warn
, info
, debug
, trace
. There is also a log
function that is an alias to info
.
Sentry._experiment_log.info('Adding item to cart', { item: 'sneakers' });
If you want to do structured logging, you'll need to use the fmt
helper exposed in the Sentry._experiment_log
namespace.
const { fmt } = Sentry._experiment_log;
Sentry._experiment_log.info(fmt`user ${username} just bought ${item}!`);
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.72 KB |
@sentry/browser - with treeshaking flags | 23.54 KB |
@sentry/browser (incl. Tracing) | 36.74 KB |
@sentry/browser (incl. Tracing, Replay) | 73.93 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.36 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 78.57 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.47 KB |
@sentry/browser (incl. Feedback) | 40.25 KB |
@sentry/browser (incl. sendFeedback) | 28.36 KB |
@sentry/browser (incl. FeedbackAsync) | 33.13 KB |
@sentry/react | 25.54 KB |
@sentry/react (incl. Tracing) | 38.69 KB |
@sentry/vue | 27.97 KB |
@sentry/vue (incl. Tracing) | 38.47 KB |
@sentry/svelte | 23.76 KB |
CDN Bundle | 24.36 KB |
CDN Bundle (incl. Tracing) | 36.25 KB |
CDN Bundle (incl. Tracing, Replay) | 71.27 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 76.42 KB |
CDN Bundle - uncompressed | 71.15 KB |
CDN Bundle (incl. Tracing) - uncompressed | 107.53 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.8 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.33 KB |
@sentry/nextjs (client) | 39.85 KB |
@sentry/sveltekit (client) | 37.17 KB |
@sentry/node | 142.78 KB |
@sentry/node - without tracing | 96.21 KB |
@sentry/aws-serverless | 120.53 KB |
9.4.0
- feat(core): Add types for logs protocol and envelope (#15530)
- feat(deps): Bump
@sentry/cli
from 2.41.1 to 2.42.2 (#15510) - feat(deps): Bump
@sentry/webpack-plugin
from 3.1.2 to 3.2.1 (#15512) - feat(feedback) Allowing annotation via highlighting & masking (#15484)
- feat(nextjs): Add
use client
directive to client SDK entrypoints (#15575) - feat(nextjs): Allow silencing of instrumentation warning (#15555)
- feat(sveltekit): Ensure
AsyncLocalStorage
async context strategy is used in Cloudflare Pages (#15557) - fix(cloudflare): Make
@cloudflare/workers-types
an optional peer dependency (#15554) - fix(core): Don't reverse values in event filters (#15584)
- fix(core): Handle normalization of null prototypes correctly (#15556)
- fix(nextjs): Only warn on missing
onRequestError
in version 15 (#15553) - fix(node): Allow for
undefined
transport to be passed in (#15560) - fix(wasm): Fix wasm integration stacktrace parsing for filename (#15572)
- perf(node): Store normalized request for processing (#15570)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.13 KB |
@sentry/browser - with treeshaking flags | 22.92 KB |
@sentry/browser (incl. Tracing) | 36.2 KB |
@sentry/browser (incl. Tracing, Replay) | 73.38 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.79 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 77.99 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 89.91 KB |
@sentry/browser (incl. Feedback) | 39.66 KB |
@sentry/browser (incl. sendFeedback) | 27.76 KB |
@sentry/browser (incl. FeedbackAsync) | 32.54 KB |
@sentry/react | 24.95 KB |
@sentry/react (incl. Tracing) | 38.08 KB |
@sentry/vue | 27.38 KB |
@sentry/vue (incl. Tracing) | 37.89 KB |
@sentry/svelte | 23.17 KB |
CDN Bundle | 24.34 KB |
CDN Bundle (incl. Tracing) | 36.24 KB |
CDN Bundle (incl. Tracing, Replay) | 71.25 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 76.41 KB |
CDN Bundle - uncompressed | 71.12 KB |
CDN Bundle (incl. Tracing) - uncompressed | 107.51 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.78 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.31 KB |
@sentry/nextjs (client) | 39.25 KB |
@sentry/sveltekit (client) | 36.61 KB |
@sentry/node | 142.14 KB |
@sentry/node - without tracing | 95.57 KB |
@sentry/aws-serverless | 119.92 KB |
9.3.0
Important Changes
With this release we're publishing two new SDKs in experimental alpha stage:
- feat(tanstackstart): Add TanStack Start SDK (#15523)
For details please refer to the README
- feat(react-router): Add React Router SDK (#15524)
For details please refer to the README
- feat(remix): Add support for Hydrogen (#15450)
This PR adds support for Shopify Hydrogen applications running on MiniOxygen runtime.
Other Changes
- feat(core): Add
forceTransaction
to trpc middleware options (#15519) - feat(core): Default filter unactionable error (#15527)
- feat(core): Rename
inboundFiltersIntegration
toeventFiltersIntegration
(#15434) - feat(deps): bump @prisma/instrumentation from 6.2.1 to 6.4.1 (#15480)
- feat(react-router): Add build-time config (#15406)
- feat(replay): Bump rrweb to 2.33.0 (#15514)
- fix(core): Fix
allowUrls
anddenyUrls
for linked and aggregate exceptions (#15521) - fix(nextjs): Don't capture devmode server-action redirect errors (#15485)
- fix(nextjs): warn about missing onRequestError handler #15488)
- fix(nextjs): Prevent wrong culprit from showing up for clientside error events #15475)
- fix(nuxt): Ignore 300-400 status codes on app errors in Nuxt (#15473)
- fix(react): Add support for cross-usage of React Router instrumentations (#15283)
- fix(sveltekit): Guard
process
check when flushing events (#15516)
Work in this release was contributed by @GerryWilko and @leoambio. Thank you for your contributions!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.12 KB |
@sentry/browser - with treeshaking flags | 22.91 KB |
@sentry/browser (incl. Tracing) | 36.18 KB |
@sentry/browser (incl. Tracing, Replay) | 73.36 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.78 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 77.98 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.54 KB |
@sentry/browser (incl. Feedback) | 40.27 KB |
@sentry/browser (incl. sendFeedback) | 27.75 KB |
@sentry/browser (incl. FeedbackAsync) | 32.55 KB |
@sentry/react | 24.94 KB |
@sentry/react (incl. Tracing) | 38.07 KB |
@sentry/vue | 27.36 KB |
@sentry/vue (incl. Tracing) | 37.87 KB |
@sentry/svelte | 23.16 KB |
CDN Bundle | 24.33 KB |
CDN Bundle (incl. Tracing) | 36.22 KB |
CDN Bundle (incl. Tracing, Replay) | 71.24 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 76.41 KB |
CDN Bundle - uncompressed | 71.09 KB |
CDN Bundle (incl. Tracing) - uncompressed | 107.48 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.75 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.31 KB |
@sentry/nextjs (client) | 39.24 KB |
@sentry/sveltekit (client) | 36.6 KB |
@sentry/node | 142.12 KB |
@sentry/node - without tracing | 95.55 KB |
@sentry/aws-serverless | 119.9 KB |
9.2.0-alpha.1
Alpha release of User Feedback's new annotation editor that allows you to highlight (or redact) specific parts of a screenshot.
- feat(feedback): Allowing annotation via highlighting & masking (#15484)
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.64 KB |
@sentry/browser - with treeshaking flags | 23.47 KB |
@sentry/browser (incl. Tracing) | 36.67 KB |
@sentry/browser (incl. Tracing, Replay) | 73.83 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.27 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 78.47 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.39 KB |
@sentry/browser (incl. Feedback) | 40.16 KB |
@sentry/browser (incl. sendFeedback) | 28.27 KB |
@sentry/browser (incl. FeedbackAsync) | 33.05 KB |
@sentry/react | 25.47 KB |
@sentry/react (incl. Tracing) | 38.61 KB |
@sentry/vue | 27.88 KB |
@sentry/vue (incl. Tracing) | 38.38 KB |
@sentry/svelte | 23.68 KB |
CDN Bundle | 24.78 KB |
CDN Bundle (incl. Tracing) | 36.68 KB |
CDN Bundle (incl. Tracing, Replay) | 71.68 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 76.88 KB |
CDN Bundle - uncompressed | 72.38 KB |
CDN Bundle (incl. Tracing) - uncompressed | 108.76 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 220.01 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 232.56 KB |
@sentry/nextjs (client) | 39.78 KB |
@sentry/sveltekit (client) | 37.1 KB |
@sentry/node | 142.72 KB |
@sentry/node - without tracing | 96.14 KB |
@sentry/aws-serverless | 120.47 KB |
9.2.0
Important Changes
- feat(node): Support Express v5 (#15380)
This release adds full tracing support for Express v5, and improves tracing support for Nest.js 11 (which uses Express v5) in the Nest.js SDK.
- feat(sveltekit): Add Support for Cloudflare (#14672)
This release adds support for deploying SvelteKit applications to Cloudflare Pages.
A docs update with updated instructions will follow shortly.
Until then, you can give this a try by setting up the SvelteKit SDK as usual and then following the instructions outlined in the PR.
Thank you @SG60 for contributing this feature!
Other Changes
- feat(core): Add
addLink(s)
to Sentry span (#15452) - feat(core): Add links to span options (#15453)
- feat(deps): Bump @sentry/webpack-plugin from 2.22.7 to 3.1.2 (#15328)
- feat(feedback): Disable Feedback submit & cancel buttons while submitting (#15408)
- feat(nextjs): Add experimental flag to not strip origin information from different origin stack frames (#15418)
- feat(nuxt): Add
enableNitroErrorHandler
to server options (#15444) - feat(opentelemetry): Add
addLink(s)
to span (#15387) - feat(opentelemetry): Add
links
to span options (#15403) - feat(replay): Expose rrweb recordCrossOriginIframes under _experiments (#14916)
- fix(browser): Ensure that
performance.measure
spans have a positive duration (#15415) - fix(bun): Includes correct sdk metadata (#15459)
- fix(core): Add Google
gmo
error to Inbound Filters (#15432) - fix(core): Ensure
http.client
span descriptions don't contain query params or fragments (#15404) - fix(core): Filter out unactionable Facebook Mobile browser error (#15430)
- fix(nestjs): Pin dependency on
@opentelemetry/instrumentation
(#15419) - fix(nuxt): Only use filename with file extension from command (#15445)
- fix(nuxt): Use
SentryNuxtServerOptions
type for server init (#15441) - fix(sveltekit): Avoid loading vite config to determine source maps setting (#15440)
- ref(profiling-node): Bump chunk interval to 60s (#15361)
Work in this release was contributed by @6farer, @dgavranic and @SG60. Thank you for your contributions!
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.05 KB |
@sentry/browser - with treeshaking flags | 22.84 KB |
@sentry/browser (incl. Tracing) | 36.13 KB |
@sentry/browser (incl. Tracing, Replay) | 73.14 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.6 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 77.39 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 90.34 KB |
@sentry/browser (incl. Feedback) | 40.2 KB |
@sentry/browser (incl. sendFeedback) | 27.68 KB |
@sentry/browser (incl. FeedbackAsync) | 32.48 KB |
@sentry/react | 24.87 KB |
@sentry/react (incl. Tracing) | 38.01 KB |
@sentry/vue | 27.29 KB |
@sentry/vue (incl. Tracing) | 37.81 KB |
@sentry/svelte | 23.09 KB |
CDN Bundle | 24.25 KB |
CDN Bundle (incl. Tracing) | 36.15 KB |
CDN Bundle (incl. Tracing, Replay) | 71 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 76.17 KB |
CDN Bundle - uncompressed | 70.91 KB |
CDN Bundle (incl. Tracing) - uncompressed | 107.29 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.57 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.13 KB |
@sentry/nextjs (client) | 39.16 KB |
@sentry/sveltekit (client) | 36.54 KB |
@sentry/node | 129.25 KB |
@sentry/node - without tracing | 98.03 KB |
@sentry/aws-serverless | 107.45 KB |
9.2.0-alpha.0
This is an alpha release that includes experimental functionality for the new logs API in Sentry. Support for these methods are only avaliable in the browser and core SDKs.
- feat(logs): Add experimental user-callable logging methods (#15442)
Logging is gated by an experimental option, _experiments.enableLogs
.
Sentry.init({
_experiments: {
enableLogs: true,
},
});
These API are exposed in the Sentry._experiment_log
namespace.
On the high level, there are functions for each of the logging severity levels critical
, fatal
, error
, warn
, info
, debug
, trace
. These functions are tagged template functions, so they use a special string template syntax that we use to parameterize functions accordingly.
Sentry._experiment_log.info`user ${username} just bought ${item}!`;
If you want more custom usage, we also expose a captureLog
method that allows you to pass custom attributes, but it's less easy to use than the tagged template functions.
Sentry._experiment_log.captureLog('error', 'Hello world!', { 'user.id': 123 });
Bundle size π¦
Path | Size |
---|---|
@sentry/browser | 23.64 KB |
@sentry/browser - with treeshaking flags | 23.47 KB |
@sentry/browser (incl. Tracing) | 36.67 KB |
@sentry/browser (incl. Tracing, Replay) | 73.83 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.27 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 78.47 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 91.04 KB |
@sentry/browser (incl. Feedback) | 40.79 KB |
@sentry/browser (incl. sendFeedback) | 28.27 KB |
@sentry/browser (incl. FeedbackAsync) | 33.07 KB |
@sentry/react | 25.47 KB |
@sentry/react (incl. Tracing) | 38.61 KB |
@sentry/vue | 27.88 KB |
@sentry/vue (incl. Tracing) | 38.38 KB |
@sentry/svelte | 23.68 KB |
CDN Bundle | 24.78 KB |
CDN Bundle (incl. Tracing) | 36.68 KB |
CDN Bundle (incl. Tracing, Replay) | 71.68 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 76.88 KB |
CDN Bundle - uncompressed | 72.38 KB |
CDN Bundle (incl. Tracing) - uncompressed | 108.76 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 220.01 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 232.59 KB |
@sentry/nextjs (client) | 39.78 KB |
@sentry/sveltekit (client) | 37.1 KB |
@sentry/node | 142.72 KB |
@sentry/node - without tracing | 96.14 KB |
@sentry/aws-serverless | 120.47 KB |