Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

sentry: Stop importing from `@sentry/tracing`, which is deprecated.

Alex Vandivere2a6a0c44067
diff --git a/package.json b/package.json
index 8f46fbfc9a0..6c5ce9b26fb 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,6 @@
"@giphy/js-fetch-api": "^4.0.1",
"@sentry/browser": "^7.51.2",
"@sentry/integrations": "^7.51.2",
- "@sentry/tracing": "^7.51.2",
"@uppy/core": "^3.0.2",
"@uppy/progress-bar": "^3.0.1",
"@uppy/xhr-upload": "^3.0.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0bf6cdac729..f04dc14cf04 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -31,9 +31,6 @@ dependencies:
'@sentry/integrations':
specifier: ^7.51.2
version: 7.51.2
- '@sentry/tracing':
- specifier: ^7.51.2
- version: 7.51.2
'@uppy/core':
specifier: ^3.0.2
version: 3.2.0
@@ -2631,13 +2628,6 @@ packages:
'@sentry/utils': 7.51.2
dev: false
- /@sentry/[email protected]:
- resolution: {integrity: sha512-qYl8TtwdEAtLBFSSTtHX6OpSGI73sgoPZhc3ZtF7+cLe29FRM5M6uyV7HhgIrxCstAx/5lZRlCWJabkIewGfFA==}
- engines: {node: '>=8'}
- dependencies:
- '@sentry-internal/tracing': 7.51.2
- dev: false
-
resolution: {integrity: sha512-/hLnZVrcK7G5BQoD/60u9Qak8c9AvwV8za8TtYPJDUeW59GrqnqOkFji7RVhI7oH1OX4iBxV+9pAKzfYE6A6SA==}
engines: {node: '>=8'}
diff --git a/version.py b/version.py
index 5dd03bd7af6..e3d2ab20c2a 100644
--- a/version.py
+++ b/version.py
@@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 179
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
-PROVISION_VERSION = (238, 0)
+PROVISION_VERSION = (239, 0)
diff --git a/web/src/sentry.ts b/web/src/sentry.ts
index 8b46f335658..22977e5a7fa 100644
--- a/web/src/sentry.ts
+++ b/web/src/sentry.ts
@@ -1,5 +1,4 @@
import * as Sentry from "@sentry/browser";
-import {BrowserTracing} from "@sentry/tracing";
import _ from "lodash";
import {page_params} from "./page_params";
@@ -51,7 +50,7 @@ if (page_params.server_sentry_dsn) {
release: "zulip-server@" + ZULIP_VERSION,
integrations: [
- new BrowserTracing({
+ new Sentry.BrowserTracing({
tracePropagationTargets: url_matches,
}),
],