Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sentry-javascript monorepo to v8 (master) (major) #9444

Merged
merged 3 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@
"@fortawesome/fontawesome-free": "5.15.4",
"@lit/reactive-element": "1.6.3",
"@popperjs/core": "2.11.8",
"@sentry/browser": "7.119.0",
"@sentry/tracing": "7.114.0",
"@sentry/types": "7.119.0",
"@sentry/browser": "8.29.0",
"@sentry/types": "8.29.0",
"@storybook/addon-essentials": "8.2.9",
"@storybook/addon-links": "8.2.9",
"@storybook/addon-webpack5-compiler-swc": "1.0.5",
Expand Down
5 changes: 2 additions & 3 deletions src/controllers/AbstractAppController.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
AbstractAppController.$inject = ['$scope', '$injector', 'mobile'];
// The MIT License (MIT)
//
// Copyright (c) 2015-2024 Camptocamp SA
Expand Down Expand Up @@ -48,7 +47,6 @@ import gmfMapComponent from 'gmf/map/component';
import {ThemeEventType} from 'gmf/theme/Manager';
import {getBrowserLanguage} from 'ngeo/utils';
import * as Sentry from '@sentry/browser';
import {Integrations} from '@sentry/tracing';
import createProjections from 'ngeo/proj/utils';
import olMap from 'ol/Map';
import olView from 'ol/View';
Expand All @@ -64,6 +62,7 @@ import ngeoMapFeatureOverlayMgr from 'ngeo/map/FeatureOverlayMgr';
import storeMap from 'gmfapi/store/map';
import user, {UserState, loginMessageRequired} from 'gmfapi/store/user';

AbstractAppController.$inject = ['$scope', '$injector', 'mobile'];
/**
* Application abstract controller.
*
Expand Down Expand Up @@ -660,7 +659,7 @@ export function AbstractAppController($scope, $injector, mobile) {
if ($injector.has('sentryOptions')) {
const options = $injector.get('sentryOptions');
if (options.dsn) {
options.integrations = [new Integrations.BrowserTracing()];
options.integrations = [Sentry.browserTracingIntegration()];
const tags = options.tags || [];
delete options.tags;
Object.assign(options, {
Expand Down
Loading