Official Sentry SDK for Vercel Edge Runtime [ALPHA]

Links
Note: This SDK is still in an alpha state. Breaking changes can occur at any time.
Usage
To use this SDK, call init(options)
as early as possible in the main entry module. This will initialize the SDK and
hook into the environment. Note that you can turn off almost all side effects using the respective options.
const Sentry = require('@sentry/vercel-edge');
import * as Sentry from '@sentry/vercel-edge';
Sentry.init({
dsn: '__DSN__',
});
To set context information or send manual events, use the exported functions of @sentry/vercel-edge
. Note that these
functions will not perform any action before you have called init()
:
Sentry.setExtra('battery', 0.7);
Sentry.setTag('user_mode', 'admin');
Sentry.setUser({ id: '4711' });
Sentry.addBreadcrumb({
message: 'My Breadcrumb',
});
Sentry.captureMessage('Hello, world!');
Sentry.captureException(new Error('Good bye'));
Sentry.captureEvent({
message: 'Manual',
stacktrace: [
],
});
8.0.0-rc.1
This release contains no changes and was done for technical purposes. This version is considered stable.
For the sake of completeness this changelog entry includes the changes from the previous release candidate:
We recommend to read the detailed migration guide in
the docs.
Important Changes
- feat(node): Support hapi v21 & fix E2E test (#11906)
We now support hapi v21 and added tests for it.
- feat(node): Warn if ESM mode is detected (#11914)
When running Sentry in ESM mode, we will now warn you that this is not supported as of now. We are working on ensuring
support with ESM builds.
Other Changes
- feat(feedback): Iterate on css for better scrolling & resizing when browser is small (#11893)
- fix(node): Ensure prisma integration creates valid DB spans (#11908)
- fix(node): Include loader hook files in package.json (#11911)