Skip to content

Commit

Permalink
chore(deps): bump @sentry/node from 7.114.0 to 8.2.1 in the sentry gr…
Browse files Browse the repository at this point in the history
…oup across 1 directory (#11145)

* chore(deps): bump @sentry/node in the sentry group across 1 directory

* chore(deps): migrate away from @sentry/integrations

See: https://docs.sentry.io/platforms/javascript/migration/v7-to-v8/\#removal-of-sentryintegrations-package

* fix(sentry): specify imports

Sentry v8 no longer provides a default export.

---------

Co-authored-by: Claas Augner <caugner@mozilla.com>
  • Loading branch information
dependabot[bot] and caugner authored May 20, 2024
1 parent 10d50be commit 3127032
Show file tree
Hide file tree
Showing 3 changed files with 576 additions and 75 deletions.
11 changes: 6 additions & 5 deletions build/sentry.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import Sentry from "@sentry/node";
import { CaptureConsole } from "@sentry/integrations";
import { init, captureConsoleIntegration, NodeOptions } from "@sentry/node";

export function initSentry(
dsn: string,
options?: Omit<Sentry.NodeOptions, "dsn" | "environment" | "integrations">
options?: Omit<NodeOptions, "dsn" | "environment" | "integrations">
) {
Sentry.init({
init({
dsn,
environment: process.env.SENTRY_ENVIRONMENT || "dev",
integrations: [new CaptureConsole({ levels: ["warn", "error", "assert"] })],
integrations: [
captureConsoleIntegration({ levels: ["warn", "error", "assert"] }),
],
tracesSampleRate: 1.0,
...options,
});
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
"@mdn/bcd-utils-api": "^0.0.7",
"@mdn/browser-compat-data": "^5.5.29",
"@mozilla/glean": "5.0.1",
"@sentry/integrations": "^7.114.0",
"@sentry/node": "^7.114.0",
"@sentry/node": "^8.2.1",
"@stripe/stripe-js": "^3.4.0",
"@use-it/interval": "^1.0.0",
"@vscode/ripgrep": "^1.15.9",
Expand Down
Loading

0 comments on commit 3127032

Please sign in to comment.