diff --git a/package.json b/package.json index 8fbae4348ffcbd..3850615139dbd8 100644 --- a/package.json +++ b/package.json @@ -176,7 +176,6 @@ "@pmmmwh/react-refresh-webpack-plugin": "0.5.10", "@sentry/jest-environment": "^4.0.0", "@sentry/profiling-node": "^1.2.1", - "@spotlightjs/spotlight": "^1.0.0", "@styled/typescript-styled-plugin": "^1.0.0", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^12.1.2", @@ -204,8 +203,7 @@ "terser": "5.16.9", "tocbot": "^4.20.0", "tsconfig-paths": "^4.2.0", - "webpack-dev-server": "^4.15.1", - "webpack-hook-plugin": "^1.0.7" + "webpack-dev-server": "^4.15.1" }, "optionalDependencies": { "fsevents": "^2.3.2" diff --git a/src/sentry/conf/server.py b/src/sentry/conf/server.py index 42ab4daad2cf33..258aaee5beccc0 100644 --- a/src/sentry/conf/server.py +++ b/src/sentry/conf/server.py @@ -494,7 +494,6 @@ def env( ] CSP_CONNECT_SRC += [ "ws://127.0.0.1:8000", - "http://localhost:8969/stream", ] # Before enforcing Content Security Policy, we recommend creating a separate diff --git a/src/sentry/utils/sdk.py b/src/sentry/utils/sdk.py index 4a1d3cebe56284..6aec9b641aa3f9 100644 --- a/src/sentry/utils/sdk.py +++ b/src/sentry/utils/sdk.py @@ -458,7 +458,6 @@ def flush( ThreadingIntegration(propagate_hub=True), OpenAiIntegration(capture_prompts=True), ], - spotlight=settings.IS_DEV, **sdk_options, ) diff --git a/static/app/bootstrap/initializeSdk.tsx b/static/app/bootstrap/initializeSdk.tsx index 740044d4443df7..5ce415397e1e27 100644 --- a/static/app/bootstrap/initializeSdk.tsx +++ b/static/app/bootstrap/initializeSdk.tsx @@ -2,7 +2,6 @@ import {browserHistory, createRoutes, match} from 'react-router'; import {ExtraErrorData} from '@sentry/integrations'; import * as Sentry from '@sentry/react'; -import * as Spotlight from '@spotlightjs/spotlight'; import {BrowserTracing} from '@sentry/react'; import {_browserPerformanceTimeOriginMode} from '@sentry/utils'; import {Event} from '@sentry/types'; @@ -170,12 +169,6 @@ export function initializeSdk(config: Config, {routes}: {routes?: Function} = {} }, }); - if (process.env.NODE_ENV !== 'production') { - if (sentryConfig.environment === 'development') { - /* #__PURE__ */ Spotlight.init(); - } - } - // Event processor to fill the debug_meta field with debug IDs based on the // files the error touched. (files inside the stacktrace) const debugIdPolyfillEventProcessor = async (event: Event, hint: Sentry.EventHint) => { diff --git a/static/app/types/system.tsx b/static/app/types/system.tsx index 90498c4477a383..05e806211531f9 100644 --- a/static/app/types/system.tsx +++ b/static/app/types/system.tsx @@ -166,7 +166,6 @@ export interface Config { dsn: string; release: string; tracePropagationTargets: string[]; - environment?: string; profilesSampleRate?: number; }; singleOrganization: boolean; diff --git a/webpack.config.ts b/webpack.config.ts index d1ffa8132ec2d1..0ea196e6c1e7fd 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -12,7 +12,6 @@ import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'; import MiniCssExtractPlugin from 'mini-css-extract-plugin'; import webpack from 'webpack'; import {Configuration as DevServerConfig} from 'webpack-dev-server'; -import WebpackHookPlugin from 'webpack-hook-plugin'; import FixStyleOnlyEntriesPlugin from 'webpack-remove-empty-scripts'; import IntegrationDocsFetchPlugin from './build-utils/integration-docs-fetch-plugin'; @@ -611,12 +610,6 @@ if ( }, }; appConfig.output!.publicPath = '/_static/dist/sentry/'; - - appConfig.plugins?.push( - new WebpackHookPlugin({ - onBuildStart: ['yarn run spotlight-sidecar'], - }) - ); } } diff --git a/yarn.lock b/yarn.lock index 37ee47da9ce52c..c782e4c403ff8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2701,24 +2701,6 @@ dependencies: "@sinonjs/commons" "^2.0.0" -"@spotlightjs/overlay@1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@spotlightjs/overlay/-/overlay-1.0.0.tgz#1fa67d3a631fc87db63eda931681ed4ac8df4203" - integrity sha512-PAytV9acAqF8UHFD4236eAMlvOrh46T14508UuhM4fTRKSpJPktNpm+EO5wIa1Z1V+DtycJRi93tskbm6H4Faw== - -"@spotlightjs/sidecar@1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@spotlightjs/sidecar/-/sidecar-1.0.0.tgz#fe5ef4909c065e15dd7bc9deaac692ca54871cfb" - integrity sha512-OVyIetoyF8+POvfLbKuW6U3+STjiudxF4ugpxwCWCM+KIp9ZMJNmtQyXAsxkCrXTbWVtt88Pj2duZRPsQiYr7Q== - -"@spotlightjs/spotlight@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@spotlightjs/spotlight/-/spotlight-1.0.0.tgz#9d89096c3de2ad95d712e77999cafd82e59c65a3" - integrity sha512-cYeKHUt6ntR6assWnwzm5NlEKF70bGlXJnzDAbpyGKgyE5wIawwEzSj5Jq80/c7BOx4NrETxhJX+mX3y9hztrA== - dependencies: - "@spotlightjs/overlay" "1.0.0" - "@spotlightjs/sidecar" "1.0.0" - "@styled/typescript-styled-plugin@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@styled/typescript-styled-plugin/-/typescript-styled-plugin-1.0.0.tgz#82723b57c2a49cfb4bb7ea456cd7350474ae423a" @@ -11579,11 +11561,6 @@ webpack-dev-server@^4.15.1: webpack-dev-middleware "^5.3.1" ws "^8.13.0" -webpack-hook-plugin@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/webpack-hook-plugin/-/webpack-hook-plugin-1.0.7.tgz#689c2a24e16df247be91d8649e9da048774308ec" - integrity sha512-8GJ+LiR+0rrShCSeeFMaKONX7xMMW3H9Hszmy5IsCereZUJ5AoLhJgn5BhySQChA4Q5lZ7/9KtidDypYHQDDmA== - webpack-merge@^5.7.3: version "5.7.3" resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-5.7.3.tgz#2a0754e1877a25a8bbab3d2475ca70a052708213"