Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Remove Sentry from all services (#5824)
Dhruv Bhanushalida17b8703a29
diff --git a/.github/workflows-disabled/sentry-release.yml b/.github/workflows-disabled/sentry-release.ymldeleted file mode 100644index 313b496f0..000000000--- a/.github/workflows-disabled/sentry-release.yml+++ /dev/null@@ -1,20 +0,0 @@-name: Push Release to Sentry--on:- push:- branches: [master]--jobs:- deploy:- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v4- - name: Sentry Release- uses: getsentry/[email protected]- env:- SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}- SENTRY_ORG: ${{ secrets.SENTRY_ORG }}- SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}- with:- environment: production- sourcemaps: ./dist/jsdiff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.ymlindex 7c327c941..f5204bc2e 100644--- a/.github/workflows/ci_cd.yml+++ b/.github/workflows/ci_cd.yml@@ -183,9 +183,6 @@ jobs:- name: Build image `${{ matrix.image }}`uses: docker/build-push-action@v7with:- # The Sentry auth token is only set for the production release of the frontend (on push to main or manual release).- secrets: |- ${{ matrix.image == 'frontend' && ((github.event_name == 'push' && github.repository == 'WordPress/openverse') || (github.event_name == 'workflow_dispatch' && inputs.perform_deploy)) && format('sentry_auth_token={0}', secrets.SENTRY_AUTH_TOKEN) || '' }}context: ${{ matrix.context }}target: ${{ matrix.target }}push: falsediff --git a/api/Dockerfile b/api/Dockerfileindex e91e8af18..1e502780c 100644--- a/api/Dockerfile+++ b/api/Dockerfile@@ -116,7 +116,6 @@ RUN env \# Add the release version to the docker containerARG SEMANTIC_VERSIONENV SEMANTIC_VERSION=$SEMANTIC_VERSION-ENV SENTRY_RELEASE=$SEMANTIC_VERSION# Exposes# - 8000: Dev server for API Django appdiff --git a/api/api/utils/check_dead_links/__init__.py b/api/api/utils/check_dead_links/__init__.pyindex 40d0a26a8..5db716d50 100644--- a/api/api/utils/check_dead_links/__init__.py+++ b/api/api/utils/check_dead_links/__init__.py@@ -45,7 +45,7 @@ _ERROR_STATUS = -1# Used to filter network errors during liveness checks that we believe-# we should get errors (rather than warnings) for, e.g., a Sentry issue.+# we should get errors (rather than warnings) for.# As such, this should exclude errors where we don't think we have the# ability to control the outcome, whether now or in the future.# Some things, like SSL errors and timeouts, may be used for detecting@@ -91,7 +91,7 @@ async def _head(except (TimeoutError, aiohttp.ClientError) as exception:# only log non-timeout exceptions. Timeouts are more or less expected# and we have means of visibility into them (e.g., querying for timings- # that exceed the timeout); they do _not_ need to be in the error log or go to Sentry+ # that exceed the timeout); they do _not_ need to be in the error log# The timeout exception class aiohttp uses is a subclass of `ClientError` and `TimeoutError`,# so we have to explicitly check that the error is _not_ a timeout error, not that it# _is_ an aiohttp error. When it is a timeout error, it will be both `TimeoutError` anddiff --git a/api/api/utils/exceptions.py b/api/api/utils/exceptions.pyindex 05bc00526..39f9607cb 100644--- a/api/api/utils/exceptions.py+++ b/api/api/utils/exceptions.py@@ -13,8 +13,8 @@ from api.utils.es_transport import SearchCapacityExceededlogger = structlog.get_logger(__name__)# Elasticsearch failing to answer is a backend outage the client can only wait-# out, so it is reported as one. Answering here also keeps these out of Sentry,-# which otherwise receives one 500 per timed-out search.+# out, so it is reported as one. Answering here also keeps these out of the+# error logs, which otherwise receive one 500 per timed-out search.SEARCH_BACKEND_FAILURES = {SearchCapacityExceeded: (status.HTTP_503_SERVICE_UNAVAILABLE,diff --git a/api/api/utils/image_proxy/extension.py b/api/api/utils/image_proxy/extension.pyindex bb45e0b2e..6c979a0da 100644--- a/api/api/utils/image_proxy/extension.py+++ b/api/api/utils/image_proxy/extension.py@@ -22,7 +22,7 @@ _HEAD_TIMEOUT = aiohttp.ClientTimeout(settings.THUMBNAIL_EXTENSION_REQUEST_TIMEO# Used to filter network errors during extension checks that we believe-# we should get errors (rather than warnings) for, e.g., a Sentry issue.+# we should get errors (rather than warnings) for.# As such, this should exclude errors where we don't think we have the# ability to control the outcome, whether now or in the future.# Some things, like SSL errors and timeouts, may be used to inform liveness@@ -83,7 +83,7 @@ async def get_image_extension(media_info: MediaInfo) -> str | None:# we'll skip generating this thumbnail. In the future, we might adjust# timeouts with per-provider granularity, but for now, we just have to# accept they will happen and are part of the set of non-actionable- # networking errors that we don't need to report as errors to Sentry.+ # networking errors that we don't need to report as errors.if not isinstance(exc, TimeoutError):if isinstance(exc, _NON_ACTIONABLE_NETWORK_EXCEPTIONS):log = logger.warningdiff --git a/api/api/utils/sentry.py b/api/api/utils/sentry.pydeleted file mode 100644index a96b955a0..000000000--- a/api/api/utils/sentry.py+++ /dev/null@@ -1,58 +0,0 @@-"""-Utilities for scrubbing sensitive infrastructure values out of Sentry events.--``send_default_pii=False`` and Sentry's server-side scrubbing only cover known-PII fields by key. Infrastructure hostnames such as the database DNS name can-still reach Sentry as free text — inside breadcrumbs, span descriptions or-exception messages — where key-based scrubbing never sees them. This redacts-those known-sensitive values from an event before it leaves the process.--See https://github.com/WordPress/openverse/issues/670.-"""--from collections.abc import Callable, Iterable-from typing import Any---FILTERED = "[Filtered]"--# Hostnames that are not sensitive and are too broad to be worth redacting.-IGNORED_HOSTS = frozenset({"", "localhost", "127.0.0.1", "::1"})---def _redact(value: Any, secrets: list[str]) -> Any:- if isinstance(value, str):- for secret in secrets:- value = value.replace(secret, FILTERED)- return value- if isinstance(value, dict):- return {key: _redact(item, secrets) for key, item in value.items()}- if isinstance(value, list):- return [_redact(item, secrets) for item in value]- if isinstance(value, tuple):- return tuple(_redact(item, secrets) for item in value)- return value---def make_sensitive_value_scrubber(hostnames: Iterable[str]) -> Callable:- """- Build a Sentry ``before_send`` / ``before_send_transaction`` hook that- replaces the given hostnames wherever they appear, as substrings, anywhere- in the event.-- Longer hostnames are redacted first so that a host which is a substring of- another (e.g. ``db.example.com`` inside ``replica.db.example.com``) does not- leave a partial value behind.- """- secrets = sorted(- {host for host in hostnames if host not in IGNORED_HOSTS},- key=len,- reverse=True,- )-- def before_send(event: Any, hint: Any = None) -> Any:- if not secrets:- return event- return _redact(event, secrets)-- return before_senddiff --git a/api/conf/settings/__init__.py b/api/conf/settings/__init__.pyindex e4848a53d..f69ea8900 100644--- a/api/conf/settings/__init__.py+++ b/api/conf/settings/__init__.py@@ -38,7 +38,6 @@ include(# additional packages"oauth2.py","rest_framework.py",- "sentry.py","spectacular.py","thumbnails.py",# Openverse-specific settingsdiff --git a/api/conf/settings/logging.py b/api/conf/settings/logging.pyindex 90797f8c0..8810e9e06 100644--- a/api/conf/settings/logging.py+++ b/api/conf/settings/logging.py@@ -1,9 +1,7 @@-import loggingfrom logging import LogRecordimport structlogfrom decouple import config-from structlog_sentry import SentryProcessorfrom conf.settings.base import ENVIRONMENT, INSTALLED_APPS, MIDDLEWAREfrom conf.settings.security import DEBUG@@ -51,17 +49,6 @@ shared_processors = [}),structlog.processors.StackInfoRenderer(),- # https://github.com/kiwicom/structlog-sentry - for Sentry integration- # Must go after `add_logger_name` and `add_log_level`,- # but before `format_exc_info`- SentryProcessor(- event_level=logging.ERROR,- # `level` here dictates which log levels will be included in breadcrumbs- # Set to WARNING for now to prevent PII/sensitive info from appearing there- level=logging.WARNING,- # Also ignore any Django SQL logs entirely in case they get enabled- ignore_loggers=["django.db.backends"],- ),structlog.processors.format_exc_info,structlog.processors.UnicodeDecoder(),]diff --git a/api/conf/settings/sentry.py b/api/conf/settings/sentry.pydeleted file mode 100644index 2a16e4658..000000000--- a/api/conf/settings/sentry.py+++ /dev/null@@ -1,114 +0,0 @@-import sentry_sdk-from decouple import config-from psycopg_pool import PoolTimeout-from sentry_sdk.integrations.django import DjangoIntegration-from sentry_sdk.integrations.logging import LoggingIntegration, ignore_logger--from api.utils.sentry import make_sensitive_value_scrubber-from conf.settings.base import ENVIRONMENT-from conf.settings.databases import DATABASES-from conf.settings.security import DEBUG---SENTRY_DSN = config("SENTRY_DSN", default="")--SENTRY_TRACES_SAMPLE_RATE: float = config(- "SENTRY_TRACES_SAMPLE_RATE", default=0, cast=float-)-SENTRY_PROFILES_SAMPLE_RATE: float = config(- "SENTRY_PROFILES_SAMPLE_RATE", default=0, cast=float-)---def profiles_sampler(sampling_context) -> float:- """- Control the performance profile sampling.- See https://docs.sentry.io/platforms/python/profiling/-- Returns a float between 0.0 and 1.0.- """- url_path = sampling_context.get("url.path", "")-- if "healthcheck" in url_path:- return 0.0 # Exclude the health check URL from profiling-- # All the other instances- return SENTRY_PROFILES_SAMPLE_RATE---def _is_pool_timeout(exc: BaseException | None) -> bool:- # Django wraps the pool's ``PoolTimeout`` in its own ``OperationalError``,- # so the type to match is somewhere down the exception chain.- seen = set()- while exc is not None and id(exc) not in seen:- if isinstance(exc, PoolTimeout):- return True- seen.add(id(exc))- exc = exc.__cause__ or exc.__context__- return False---# Redact infrastructure hostnames (e.g. the database DNS name) that can leak-# into events as free text, where key-based scrubbing never sees them.-scrub_sensitive_values = make_sensitive_value_scrubber([DATABASES["default"]["HOST"]])---def before_send(event, hint):- """- Drop events that only report infrastructure noise.-- - DB connection pool timeouts: the pool is saturated and the request can- only be retried; there is nothing to fix at the call site.- - uvloop's "Fatal error on SSL protocol" log: the remote end of an outbound- HTTPS request closed the connection. The request itself succeeds, but- asyncio logs this at ERROR, which ``SentryProcessor`` turns into an event.-- Events that are kept have sensitive values scrubbed from them.- """- exc_info = hint.get("exc_info")- if exc_info and _is_pool_timeout(exc_info[1]):- return None-- message = event.get("message") or ""- if event.get("logger") == "asyncio" and message.startswith(- "Fatal error on SSL protocol"- ):- return None-- return scrub_sensitive_values(event, hint)---INTEGRATIONS = [- # See https://docs.sentry.io/platforms/python/integrations/django/- DjangoIntegration(),- # This prevents two errors from being sent to Sentry (one with the correct- # information and the other with the logged JSON as the error name), since we- # use JSON-logging as well which can conflict with the way Sentry expects alerts.- # https://github.com/kiwicom/structlog-sentry?tab=readme-ov-file#logging-as-json- LoggingIntegration(event_level=None, level=None),-]--if not DEBUG and SENTRY_DSN:- sentry_sdk.init(- dsn=SENTRY_DSN,- integrations=INTEGRATIONS,- traces_sample_rate=SENTRY_TRACES_SAMPLE_RATE,- profiles_sampler=profiles_sampler,- before_send=before_send,- send_default_pii=False,- environment=ENVIRONMENT,- before_send_transaction=scrub_sensitive_values,- )-- # ALLOW_HOSTS is correctly configured so ignore this to prevent- # spammy bots like https://github.com/robertdavidgraham/masscan- # from pushing un-actionable alerts to Sentry like- # https://sentry.io/share/issue/9af3cdf8ef74420aa7bbb6697760a82c/- ignore_logger("django.security.DisallowedHost")- # ``django-structlog`` writes ERROR logs when a response has a 5xx response- # code, which can be registered by Sentry and obscure the underlying reason- # why 5xx response was returned in the first place.- ignore_logger("django_structlog.middlewares.request")- # These errors can occur in large volumes and so we don't want them to fill- # up in Sentry and overwhelm us with Slack notifications.- ignore_logger("api.utils.check_dead_links._head")diff --git a/api/env.template b/api/env.templateindex 8978a9a97..8aea83d4d 100644--- a/api/env.template+++ b/api/env.template@@ -58,10 +58,6 @@ SEMANTIC_VERSION=1.0.0#DEBUG_SCORES=False#USE_RANK_FEATURES=True-#SENTRY_DSN=-#SENTRY_TRACES_SAMPLE_RATE=0-#SENTRY_PROFILES_SAMPLE_RATE=0-FILTER_DEAD_LINKS_BY_DEFAULT=FalseENABLE_FILTERED_INDEX_QUERIES=True# SHOW_COLLECTION_DOCS=Truediff --git a/api/pyproject.toml b/api/pyproject.tomlindex 398fc5e97..b7baa7d1d 100644--- a/api/pyproject.toml+++ b/api/pyproject.toml@@ -33,10 +33,8 @@ dependencies = ["pillow >=13, <14","psycopg[pool] >=3.2.3, <4","python-decouple >=3.8, <4",- "sentry-sdk >=2.19, <3","uvicorn[standard] >=0.54, <0.55","openverse-attribution",- "structlog-sentry >=2.2.1, <3",][tool.uv]diff --git a/api/test/unit/configuration/test_sentry.py b/api/test/unit/configuration/test_sentry.pydeleted file mode 100644index 292b7e744..000000000--- a/api/test/unit/configuration/test_sentry.py+++ /dev/null@@ -1,85 +0,0 @@-import sys--from django.db.utils import OperationalError--import pytest-from psycopg_pool import PoolTimeout--from api.utils.sentry import FILTERED, make_sensitive_value_scrubber-from conf.settings.sentry import before_send---SSL_LOG_MESSAGE = (- "Fatal error on SSL protocol\n"- "protocol: <uvloop.loop.SSLProtocol object at 0x7fc2e0f5e820>\n"- "transport: <TCPTransport closed=True reading=False 0x558f2baa0e70>"-)---def _exc_info(raise_exc):- try:- raise_exc()- except Exception:- return sys.exc_info()---def _raise_wrapped_pool_timeout():- # Mirrors ``django.db.utils.DatabaseErrorWrapper``.- try:- raise PoolTimeout("couldn't get a connection after 10.00 sec")- except PoolTimeout as exc:- raise OperationalError(str(exc)) from exc---def _raise_operational_error():- raise OperationalError("server closed the connection unexpectedly")--- "event, raise_exc",- [- pytest.param({}, _raise_wrapped_pool_timeout, id="pool_timeout"),- pytest.param(- {"logger": "asyncio", "message": SSL_LOG_MESSAGE},- None,- id="asyncio_ssl_log",- ),- ],-)-def test_drops_noise(event, raise_exc):- hint = {"exc_info": _exc_info(raise_exc)} if raise_exc else {}-- assert before_send(event, hint) is None--- "event, raise_exc",- [- pytest.param({}, _raise_operational_error, id="other_db_error"),- pytest.param(- {"logger": "asyncio", "message": "Task exception was never retrieved"},- None,- id="other_asyncio_log",- ),- pytest.param(- {"logger": "api.views", "message": SSL_LOG_MESSAGE},- None,- id="ssl_message_from_other_logger",- ),- pytest.param({"logger": "asyncio"}, None, id="asyncio_without_message"),- ],-)-def test_keeps_other_events(event, raise_exc):- hint = {"exc_info": _exc_info(raise_exc)} if raise_exc else {}-- assert before_send(event, hint) == event---def test_scrubs_kept_events(monkeypatch):- monkeypatch.setattr(- "conf.settings.sentry.scrub_sensitive_values",- make_sensitive_value_scrubber(["db.internal.example.com"]),- )- event = {"message": "could not connect to db.internal.example.com"}-- assert before_send(event, {}) == {"message": f"could not connect to {FILTERED}"}diff --git a/api/test/unit/conftest.py b/api/test/unit/conftest.pydeleted file mode 100644index e4090fbe2..000000000--- a/api/test/unit/conftest.py+++ /dev/null@@ -1,11 +0,0 @@-from unittest.mock import MagicMock--import pytest--[email protected](autouse=True)-def sentry_capture_exception(monkeypatch):- mock = MagicMock()- monkeypatch.setattr("sentry_sdk.capture_exception", mock)-- yield mockdiff --git a/api/test/unit/utils/test_image_proxy.py b/api/test/unit/utils/test_image_proxy.pyindex 45efedb56..69213439d 100644--- a/api/test/unit/utils/test_image_proxy.py+++ b/api/test/unit/utils/test_image_proxy.py@@ -456,7 +456,6 @@ def test_get_exception_handles_error(exc,exc_name,count_start,- sentry_capture_exception,setup_request_exception,is_cache_reachable,cache_name,@@ -473,8 +472,6 @@ def test_get_exception_handles_error(with capture_logs() as cap_logs, pytest.raises(UpstreamThumbnailException):photon_get(TEST_MEDIA_INFO)- sentry_capture_exception.assert_not_called()-if is_cache_reachable:assert cache.get(key) == str(count_start + 1).encode()else:@@ -498,7 +495,6 @@ def test_get_http_exception_handles_error(status_code,text,count_start,- sentry_capture_exception,is_cache_reachable,cache_name,request,@@ -514,8 +510,6 @@ def test_get_http_exception_handles_error(pook.get(PHOTON_URL_FOR_TEST_IMAGE).reply(status_code, text)photon_get(TEST_MEDIA_INFO)- sentry_capture_exception.assert_not_called()-if is_cache_reachable:assert cache.get(key) == str(count_start + 1).encode()assert (diff --git a/api/test/unit/utils/test_sentry_scrubber.py b/api/test/unit/utils/test_sentry_scrubber.pydeleted file mode 100644index 11e2e89ca..000000000--- a/api/test/unit/utils/test_sentry_scrubber.py+++ /dev/null@@ -1,48 +0,0 @@-import pytest--from api.utils.sentry import FILTERED, make_sensitive_value_scrubber---def test_redacts_hostname_anywhere_in_a_nested_event():- scrub = make_sensitive_value_scrubber(["db.internal.example.com"])- event = {- "message": "could not connect to db.internal.example.com:5432",- "breadcrumbs": {- "values": [{"message": "SELECT 1 -- db.internal.example.com"}],- },- "extra": {"hosts": ("db.internal.example.com", "unrelated-host")},- }-- scrubbed = scrub(event)-- assert "db.internal.example.com" not in repr(scrubbed)- assert FILTERED in scrubbed["message"]- assert scrubbed["breadcrumbs"]["values"][0]["message"].endswith(FILTERED)- # unrelated values are left untouched (and tuples stay tuples)- assert scrubbed["extra"]["hosts"] == (FILTERED, "unrelated-host")--[email protected]("hostname", ["", "localhost", "127.0.0.1", "::1"])-def test_ignores_non_sensitive_default_hosts(hostname):- scrub = make_sensitive_value_scrubber([hostname])- event = {"message": f"connected to {hostname}"}-- # nothing to redact, so the event is returned unchanged- assert scrub(event) is event---def test_returns_event_unchanged_when_no_hostnames_given():- scrub = make_sensitive_value_scrubber([])- event = {"message": "hello"}-- assert scrub(event) is event---def test_redacts_longer_overlapping_hostname_first():- scrub = make_sensitive_value_scrubber(["db.example.com", "replica.db.example.com"])- event = {"message": "replica.db.example.com and db.example.com"}-- scrubbed = scrub(event)-- assert "example.com" not in scrubbed["message"]- assert scrubbed["message"] == f"{FILTERED} and {FILTERED}"diff --git a/api/uv.lock b/api/uv.lockindex 1c65ab30e..1f8a7e4fb 100644--- a/api/uv.lock+++ b/api/uv.lock@@ -989,8 +989,6 @@ dependencies = [{ name = "pillow" },{ name = "psycopg", extra = ["pool"] },{ name = "python-decouple" },- { name = "sentry-sdk" },- { name = "structlog-sentry" },{ name = "uvicorn", extra = ["standard"] },]@@ -1042,8 +1040,6 @@ requires-dist = [{ name = "pillow", specifier = ">=13,<14" },{ name = "psycopg", extras = ["pool"], specifier = ">=3.2.3,<4" },{ name = "python-decouple", specifier = ">=3.8,<4" },- { name = "sentry-sdk", specifier = ">=2.19,<3" },- { name = "structlog-sentry", specifier = ">=2.2.1,<3" },{ name = "uvicorn", extras = ["standard"], specifier = ">=0.54,<0.55" },]@@ -1576,19 +1572,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/88/22/e1430396daa9f5169d266311b8ce16ac4f15f240bd3e79c82e31ff133e36/schemathesis-4.33.4-py3-none-any.whl", hash = "sha256:17967c0bc57b4d81b2bab8e3536dbe83d3af76ff03145fe580e0d5c2f181368c", size = 1303891, upload-time = "2026-11-12T16:27:38.908Z" },]-[[package]]-name = "sentry-sdk"-version = "2.19.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "certifi" },- { name = "urllib3" },-]-sdist = { url = "https://files.pythonhosted.org/packages/a2/0e/cc0e60f0e0cfd5a9e42622ff5a227301c6475a56bcfa82e8e893bc209f20/sentry_sdk-2.19.0.tar.gz", hash = "sha256:ee4a4d2ae8bfe3cac012dcf3e4607975904c137e1738116549fc3dbbb6ff0e36", size = 298045, upload-time = "2024-11-21T15:42:12.815Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/c6/6b/191ca63f05d3ecc7600b5b3abd493a4c1b8468289c9737a7735ade1fedca/sentry_sdk-2.19.0-py2.py3-none-any.whl", hash = "sha256:7b0b3b709dee051337244a09a30dbf6e95afe0d34a1f8b430d45e0982a7c125b", size = 322158, upload-time = "2024-11-21T15:42:10.335Z" },-]-[[package]]name = "setproctitle"version = "1.3.3"@@ -1666,19 +1649,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/bf/65/813fc133609ebcb1299be6a42e5aea99d6344afb35ccb43f67e7daaa3b92/structlog-24.4.0-py3-none-any.whl", hash = "sha256:597f61e80a91cc0749a9fd2a098ed76715a1c8a01f73e336b746504d1aad7610", size = 67180, upload-time = "2024-07-17T12:38:41.043Z" },]-[[package]]-name = "structlog-sentry"-version = "2.2.1"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "sentry-sdk" },- { name = "structlog" },-]-sdist = { url = "https://files.pythonhosted.org/packages/a9/c8/a6d66c4a691a47c9c572ab84640012bb70c8c4f710763bd544236d98f278/structlog_sentry-2.2.1.tar.gz", hash = "sha256:78cf8751c7712e361d9d5e82fcde6c3f692a67e3e67068ccdd46448014636138", size = 6855, upload-time = "2024-11-12T14:31:51.695Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/e3/ba/1b1226db704c16426d59e1fcbeaf5138dbc5a50d424aab92b453d33add47/structlog_sentry-2.2.1-py3-none-any.whl", hash = "sha256:868c82348bc18b7d51ef8f878c57e82835c1758dba38f7589fa02a267096a95d", size = 11218, upload-time = "2024-11-12T14:31:50.594Z" },-]-[[package]]name = "tabulate"version = "0.10.0"diff --git a/documentation/general/contribution/maintainer_tasks.md b/documentation/general/contribution/maintainer_tasks.mdindex 9b4fc33c8..c5e563067 100644--- a/documentation/general/contribution/maintainer_tasks.md+++ b/documentation/general/contribution/maintainer_tasks.md@@ -15,8 +15,6 @@ if they already have several PRs with reviews requested.- If an older implementation plan is assigned and hasn't been started and youcould pick it up, consider pinging the current assignee to offer to take ifoff their plate-- Search through Sentry for older issues that might be getting worse; see- [section below for details](#sentry-review)- Read and respond to[active discussions](https://github.com/WordPress/openverse/discussions)- Research unknown/under-documented parts of the project; see@@ -27,29 +25,6 @@ if they already have several PRs with reviews requested.- Proofread documentation; see[the documentation review page for advice](/meta/documentation/review.md)-## Sentry review--While the Openverse Mini-Support Rotation[^msr] covers recording and triaging-_new_ Sentry issues, it does not include regularly checking the frequency of-existing issues. You can review Sentry issues by frequency by visiting the-following links:--[^msr]:- The Openverse Mini-Support Rotation is managed by the core maintainers. Each- week, one of the maintainers takes on several responsibilities for regular- maintenance tasks, one of which is to check Sentry for new events that need- to be converted into GitHub issues.--- [Django API](https://openverse.sentry.io/issues/?project=6107216&query=is%3Aunresolved&referrer=issue-list&sort=freq&statsPeriod=30d)-- [Frontend](https://openverse.sentry.io/issues/?project=5799642&query=is%3Aunresolved&referrer=issue-list&sort=freq&statsPeriod=30d)-- [Ingestion Server](https://openverse.sentry.io/issues/?project=4504934126059520&query=is%3Aunresolved&referrer=issue-list&sort=freq&statsPeriod=30d)--If you see an issue with heaps of events and see that the GitHub issue is not-being worked on or has been prioritised such that it will not be picked up soon,-use your best judgement to determine whether it needs to be worked on-immediately (it could be the next code contribution you work on) or if it's safe-enough to just add to the weekly dev chat agenda.-## Unknown/under-documented parts of the projectThere are a handful of issues in our backlog that request documentation fordiff --git a/documentation/meta/release_and_deployment/runbooks/api.md b/documentation/meta/release_and_deployment/runbooks/api.mdindex be4355b3d..4f89ab6b6 100644--- a/documentation/meta/release_and_deployment/runbooks/api.md+++ b/documentation/meta/release_and_deployment/runbooks/api.md@@ -16,8 +16,8 @@ the deployment in the maintainers `#openverse-notifications` channel and in the## Post-deployment steps-1. Check for any Sentry errors in the maintainer's `#openverse-alerts` channel,- or in the Sentry UI.+1. Check for any alarms in the maintainer's `#openverse-alerts` channel, and for+ errors in the service's CloudWatch logs.1. Review and Approve the automatically-generated changelog pull request in therepository.1. In the event of errors or problems,diff --git a/documentation/meta/release_and_deployment/runbooks/catalog.md b/documentation/meta/release_and_deployment/runbooks/catalog.mdindex 54b583f7b..25cab0c84 100644--- a/documentation/meta/release_and_deployment/runbooks/catalog.md+++ b/documentation/meta/release_and_deployment/runbooks/catalog.md@@ -47,8 +47,8 @@ the app is built and tagged, deploy production:## Post-deployment steps-1. Check for any Sentry errors in the maintainer's `#openverse-alerts` channel,- or in the Sentry UI.+1. Check for any alarms in the maintainer's `#openverse-alerts` channel, and for+ errors in the service's CloudWatch logs.1. Ensure that Airflow is accessible at <https://airflow.openverse.org>.1. If an Airflow version upgrade was deployed, ensure that the version iscorrect in the Airflow UI (bottom left of the footer on any page).diff --git a/documentation/meta/release_and_deployment/runbooks/frontend.md b/documentation/meta/release_and_deployment/runbooks/frontend.mdindex e41bfa8b1..33620d376 100644--- a/documentation/meta/release_and_deployment/runbooks/frontend.md+++ b/documentation/meta/release_and_deployment/runbooks/frontend.md@@ -16,8 +16,8 @@ the deployment in the maintainers `#openverse-notifications` channel and in the## Post-deployment steps-1. Check for any Sentry errors in the maintainer's `#openverse-alerts` channel,- or in the Sentry UI.+1. Check for any alarms in the maintainer's `#openverse-alerts` channel, and for+ errors in the service's CloudWatch logs.1. Visit[https://openverse.org/version.json](https://openverse.org/version.json) andverify the SHA is the same as the value you deployed.diff --git a/documentation/meta/release_and_deployment/runbooks/ingestion_server.md b/documentation/meta/release_and_deployment/runbooks/ingestion_server.mdindex 89690ac09..32b643d0d 100644--- a/documentation/meta/release_and_deployment/runbooks/ingestion_server.md+++ b/documentation/meta/release_and_deployment/runbooks/ingestion_server.md@@ -34,8 +34,8 @@ sure a data refresh isn't occurring.## Post-deployment steps-1. Check for any Sentry errors in the maintainer's `#openverse-alerts` channel,- or in the Sentry UI.+1. Check for any alarms in the maintainer's `#openverse-alerts` channel, and for+ errors in the service's CloudWatch logs.1. Review and Approve the automatically-generated changelog pull request in therepository.1. Push up a PR to the infrastructure repository with the Terraform changes youdiff --git a/frontend/.gitignore b/frontend/.gitignoreindex 5ef899f0c..9acba1eab 100644--- a/frontend/.gitignore+++ b/frontend/.gitignore@@ -43,6 +43,3 @@ src/locales/scripts/wp-locales.json# To prevent accidentally adding a hardcoded robots.txt, see# /src/server-middleware/robots.js for the robots.txt file.src/static/robots.txt--# Sentry Config File-.env.sentry-build-plugindiff --git a/frontend/Dockerfile b/frontend/Dockerfileindex 5698127dd..b0de462e9 100644--- a/frontend/Dockerfile+++ b/frontend/Dockerfile@@ -54,14 +54,7 @@ ENV NODE_ENV=productionENV NODE_OPTIONS="--max_old_space_size=4096"ENV SEMANTIC_VERSION=${SEMANTIC_VERSION}-# Use the Sentry auth token secret to send the sourcemaps to Sentry only if the secret is provided.-# The token is only exported for `pnpm build`, never written to a file, so it does not end up in the image.-RUN --mount=type=secret,id=sentry_auth_token,mode=0444 \- sh -c 'if [ -f /run/secrets/sentry_auth_token ]; then \- export SENTRY_AUTH_TOKEN="$(cat /run/secrets/sentry_auth_token)"; \- else \- echo "No Sentry Auth Token provided"; \- fi && pnpm build'+RUN pnpm build############diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.tsindex 7a6b9366e..7c6ccbbfb 100644--- a/frontend/nuxt.config.ts+++ b/frontend/nuxt.config.ts@@ -79,15 +79,6 @@ export default defineNuxtConfig({site: {trailingSlash: false,},- sentry: {- dsn: "",- environment: "local",- // Overridden by NUXT_PUBLIC_SENTRY_TRACES_SAMPLE_RATE- tracesSampleRate: 0.05,- },- // Release is a build time variable. However, due to the way Sentry is set up, setting it in app.config.ts- // does not work, so we set it here using `process.env` to bake in the value at build time.- sentryRelease: process.env.SEMANTIC_VERSION,plausible: {ignoredHostnames: ["localhost", "staging.openverse.org"],logIgnoredEvents: true,@@ -113,7 +104,6 @@ export default defineNuxtConfig({"@nuxt/test-utils/module","@nuxtjs/sitemap","@nuxtjs/robots",- "@sentry/nuxt/module",],routeRules: {"/photos/**": { redirect: { to: "/image/**", statusCode: 301 } },@@ -173,20 +163,4 @@ export default defineNuxtConfig({alternateLinkCanonicalQueries: false,},},- sentry: {- telemetry: false,- org: "openverse",- project: "openverse-frontend",- /**- * This token is only used in the CI to upload source maps to Sentry when building the production- * image of the frontend.- */- authToken: process.env.SENTRY_AUTH_TOKEN,- release: {- name: process.env.SEMANTIC_VERSION,- },- },- sourcemap: {- client: "hidden",- },})diff --git a/frontend/package.json b/frontend/package.jsonindex 367ba2cc6..faebfaf52 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -55,7 +55,6 @@"@nuxtjs/robots": "^7.0.2","@nuxtjs/sitemap": "^9.0.0","@pinia/nuxt": "^1.0.0",- "@sentry/nuxt": "^11.10.0","@tailwindcss/typography": "^0.5.20","@tailwindcss/vite": "^4.3.3","@vueuse/core": "^15.0.0",diff --git a/frontend/sentry.client.config.ts b/frontend/sentry.client.config.tsdeleted file mode 100644index cfc18a87a..000000000--- a/frontend/sentry.client.config.ts+++ /dev/null@@ -1,22 +0,0 @@-import { useRuntimeConfig } from "#imports"--import * as Sentry from "@sentry/nuxt"--import { sentryDataCollection } from "#shared/constants/sentry"--Sentry.init({- dsn: useRuntimeConfig().public.sentry.dsn,- environment: useRuntimeConfig().public.sentry.environment,- release: useRuntimeConfig().public.sentryRelease,- ignoreErrors: [- // Can be safely ignored, @see https://github.com/WICG/resize-observer/issues/38- /ResizeObserver loop limit exceeded/i,- // Nuxt app manifest fetches fail when Cloudflare serves a bot challenge (403) instead of the JSON- /\/_nuxt\/builds\/(meta|latest)\b/,- ],-- tracesSampleRate: useRuntimeConfig().public.sentry.tracesSampleRate,- dataCollection: sentryDataCollection,-})-Sentry.setContext("render context", { platform: "client" })-Sentry.setTag("platform", "client")diff --git a/frontend/sentry.server.config.ts b/frontend/sentry.server.config.tsdeleted file mode 100644index 02aa5f54f..000000000--- a/frontend/sentry.server.config.ts+++ /dev/null@@ -1,21 +0,0 @@-import * as Sentry from "@sentry/nuxt"-import { config } from "dotenv"--import { sentryDataCollection } from "#shared/constants/sentry"--// Necessary for loading environment variables before Nuxt is loaded-// @see the section on server setup: https://nuxt.com/modules/sentry-config()--Sentry.init({- dsn: process.env.NUXT_PUBLIC_SENTRY_DSN,- environment: process.env.NUXT_PUBLIC_SENTRY_ENVIRONMENT,- release: process.env.SEMANTIC_VERSION,-- tracesSampleRate: Number(- process.env.NUXT_PUBLIC_SENTRY_TRACES_SAMPLE_RATE ?? 0.05- ),- dataCollection: sentryDataCollection,-})-Sentry.setContext("render context", { platform: "server" })-Sentry.setTag("platform", "server")diff --git a/frontend/shared/constants/sentry.ts b/frontend/shared/constants/sentry.tsdeleted file mode 100644index 8be789962..000000000--- a/frontend/shared/constants/sentry.ts+++ /dev/null@@ -1,15 +0,0 @@-// Sentry v11 collects user info, cookies and request bodies by default; keep the v10 defaults.-// @see https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md#if-you-want-to-keep-the-v10-default-behavior-const piiDeny = { deny: ["forwarded", "-ip", "remote-", "via", "-user"] }--export const sentryDataCollection = {- userInfo: false,- cookies: false,- httpHeaders: { request: piiDeny, response: piiDeny },- httpBodies: [],- urlQueryParams: piiDeny,- genAI: { inputs: false, outputs: false },- databaseQueryData: false,- queues: false,- graphQL: { document: false, variables: false },-}diff --git a/frontend/shared/types/analytics.ts b/frontend/shared/types/analytics.tsindex 306a01029..0787865fc 100644--- a/frontend/shared/types/analytics.ts+++ b/frontend/shared/types/analytics.ts@@ -471,8 +471,8 @@ export type Events = {}/*** Description: Recorded when a network error occurs. Recorded in Plausible,- * rather than Sentry, because we never have sufficient information in Sentry- * to identify patterns that could be relevant, like regional issues.+ * rather than only logged, so that we can identify patterns that could be+ * relevant, like regional issues.*/NETWORK_ERROR: {/** The kind of request the network error occurred during */diff --git a/frontend/src/pages/preferences.vue b/frontend/src/pages/preferences.vueindex 070277eaf..5691e3db0 100644--- a/frontend/src/pages/preferences.vue+++ b/frontend/src/pages/preferences.vue@@ -1,5 +1,5 @@<script setup lang="ts">-import { definePageMeta, useNuxtApp } from "#imports"+import { definePageMeta } from "#imports"import { computed } from "vue"import { SWITCHABLE, ON, OFF } from "#shared/constants/feature-flag"@@ -52,10 +52,6 @@ const featureGroups = computed(() => {})const { doneHydrating } = useHydrating()--const captureException = () => {- useNuxtApp().$captureException(new Error("Test Sentry Exception"))-}</script><template>@@ -137,14 +133,5 @@ const captureException = () => {<h2>{{ $t("prefPage.storeState") }}</h2><pre><code>{{ flags }}</code></pre>-- <!-- eslint-disable @intlify/vue-i18n/no-raw-text -->- <VButton- v-if="$config.public.sentry.environment === 'local'"- variant="bordered-gray"- size="medium"- @click="captureException"- >Capture Sentry Exception</VButton- ><!-- eslint-enable --></VContentPage></template>diff --git a/frontend/src/plugins/01.api-token.server.ts b/frontend/src/plugins/01.api-token.server.tsindex 4bc5387a5..a59132b33 100644--- a/frontend/src/plugins/01.api-token.server.ts+++ b/frontend/src/plugins/01.api-token.server.ts@@ -2,7 +2,6 @@ import { defineNuxtPlugin, useRuntimeConfig } from "#imports"import { Mutex, MutexInterface } from "async-mutex"import axios from "axios"-import * as Sentry from "@sentry/nuxt"import { debug, warn } from "~/utils/console"@@ -99,7 +98,6 @@ const refreshApiAccessToken = async ((e as AxiosError).message}`warn((e as AxiosError).message)- Sentry.captureException(e)}}@@ -166,7 +164,7 @@ export default defineNuxtPlugin(async () => {try {openverseApiToken = await getApiAccessToken()} catch (e) {- Sentry.captureException(e)+ console.error(e)}return {provide: {diff --git a/frontend/src/plugins/04.errors.ts b/frontend/src/plugins/04.errors.tsindex 86f2e1124..2a73580c4 100644--- a/frontend/src/plugins/04.errors.ts+++ b/frontend/src/plugins/04.errors.ts@@ -1,7 +1,6 @@import { defineNuxtPlugin } from "#imports"import { isAxiosError } from "axios"-import * as Sentry from "@sentry/nuxt"import { ERR_UNKNOWN, ErrorCode, errorCodes } from "#shared/constants/errors"import type { SupportedSearchType } from "#shared/constants/media"@@ -146,7 +145,7 @@ export function recordError(* 3. There isn't much we can do other than monitor for an anomalously high* number of 404 responses from the frontend server that could indicate a frontend* implementation or configuration error suddenly causing malformed- * identifiers to be used. Neither Sentry nor Plausible are the right tool+ * identifiers to be used. Neither error logs nor Plausible are the right tool* for that task. If the 404s are caused by an API issue, we'd see that in* API response code monitoring, where we can more easily trace the cause*/@@ -156,10 +155,8 @@ export function recordError(if (import.meta.client && fetchingError.code === "ERR_NETWORK") {/*** Record network errors in Plausible so that we can evaluate potential- * regional or device configuration issues, for which Sentry is not- * as good a tool. Additionally, the number of these events are trivial- * for Plausible, but do actually affect our Sentry quota enough that it- * is worth diverting them.+ * regional or device configuration issues, for which error logs are not+ * as good a tool.*/const { $sendCustomEvent } = nuxtApp$sendCustomEvent("NETWORK_ERROR", {@@ -167,7 +164,7 @@ export function recordError(searchType: fetchingError.searchType,})} else {- Sentry.captureException(originalError, { extra: { fetchingError } })+ nuxtApp.$captureException(originalError, { fetchingError })}}diff --git a/frontend/src/plugins/error-reporting.ts b/frontend/src/plugins/error-reporting.tsnew file mode 100644index 000000000..db29112ab--- /dev/null+++ b/frontend/src/plugins/error-reporting.ts@@ -0,0 +1,16 @@+import { defineNuxtPlugin } from "#imports"++/**+ * Errors are logged rather than sent to a third-party service. On the server,+ * these logs end up in CloudWatch; on the client, only in the browser console.+ */+export default defineNuxtPlugin(() => ({+ provide: {+ captureException: (error: unknown, extra?: Record<string, unknown>) => {+ console.error(error, ...(extra ? [extra] : []))+ },+ captureMessage: (message: string) => {+ console.warn(message)+ },+ },+}))diff --git a/frontend/src/plugins/polyfills.client.ts b/frontend/src/plugins/polyfills.client.tsindex 5917dbe58..4dd5198a7 100644--- a/frontend/src/plugins/polyfills.client.ts+++ b/frontend/src/plugins/polyfills.client.ts@@ -1,7 +1,6 @@// This plugin is used to load any necessary client-side browser polyfills.-// Purpose: Sentry issue for issue with Chrome < 69 and our useStorage composable:-// https:openverse.sentry.io/share/issue/2b2635c85f1c4cecbe7560df5d4892b5/+// Purpose: `Array.prototype.flatMap` is missing in Chrome < 69 and breaks our useStorage composable.import "core-js/actual/array/flat-map"import { defineNuxtPlugin } from "#imports"diff --git a/frontend/src/plugins/sentry.client.ts b/frontend/src/plugins/sentry.client.tsdeleted file mode 100644index aa6bb5f06..000000000--- a/frontend/src/plugins/sentry.client.ts+++ /dev/null@@ -1,13 +0,0 @@-import { defineNuxtPlugin } from "#imports"--import * as Sentry from "@sentry/nuxt"--export default defineNuxtPlugin(() => {- const { captureException, captureMessage } = Sentry- return {- provide: {- captureException,- captureMessage,- },- }-})diff --git a/frontend/test/playwright/e2e/search.spec.ts b/frontend/test/playwright/e2e/search.spec.tsindex 82df57182..1d9023819 100644--- a/frontend/test/playwright/e2e/search.spec.ts+++ b/frontend/test/playwright/e2e/search.spec.ts@@ -116,8 +116,8 @@ for (const renderMode of ["CSR", "SSR"] as const) {}) => {// This tests a _negative_, which isn't ideal, but seeing as we have tests for the error handling plugin, and the previous test,// `send errors to Plausible`, proves the plugin is being used (ignoring the possibility of conditionally calling the error- // handling function), so there shouldn't be any network error events. Everything would get sent to Sentry, but we don't have a- // way to assert Sentry requests in Playwright, so this approach will have to do.+ // handling function), so there shouldn't be any network error events. Everything else is only logged, which we don't+ // assert in Playwright, so this approach will have to do.const analyticsEvents = collectAnalyticsEvents(context)await context.route((url) => {diff --git a/frontend/test/storybook/functional/smoke-test.spec.ts b/frontend/test/storybook/functional/smoke-test.spec.tsindex f3c79eee5..84d392ff3 100644--- a/frontend/test/storybook/functional/smoke-test.spec.ts+++ b/frontend/test/storybook/functional/smoke-test.spec.ts@@ -21,7 +21,6 @@ type StoryProblems = {const ignoredProblems = [/\[Plausible] Ignoring event because website is running locally/,/Failed to load resource: net::ERR_CONNECTION_REFUSED/,- /Sentry DSN wasn't provided/,// Errors from the Storybook nuxt module// TypeError or Va/\[nuxt] error caught during app initialization \S*: Cannot read properties of undefined \(reading 'cdnURL'\)/,diff --git a/frontend/typings/extend.d.ts b/frontend/typings/extend.d.tsindex 4b017deab..561f29c4a 100644--- a/frontend/typings/extend.d.ts+++ b/frontend/typings/extend.d.ts@@ -3,8 +3,6 @@ import type {ComponentCustomProperties as _ComponentCustomProperties,} from "vue"-import type { Sentry } from "@sentry/node"-// Fix until the libraries are updated to correctly augment `vue`.// See https://nuxt.com/blog/v3-13#vue-typescript-changesdeclare module "@vue/runtime-core" {@@ -14,15 +12,10 @@ declare module "@vue/runtime-core" {interface ComponentCustomOptions extends _ComponentCustomOptions {}}-declare module "@sentry/nuxt" {- const Sentry: Sentry- export = Sentry-}-declare module "#app" {interface NuxtApp {- $captureException: Sentry["captureException"]- $captureMessage: Sentry["captureMessage"]+ $captureException: (error: unknown, extra?: Record<string, unknown>) => void+ $captureMessage: (message: string) => void}}diff --git a/indexer_worker/Dockerfile b/indexer_worker/Dockerfileindex 738f89574..0673fac5b 100644--- a/indexer_worker/Dockerfile+++ b/indexer_worker/Dockerfile@@ -87,7 +87,4 @@ COPY --chown=ov_user . /indexer_worker/# Expose Gunicorn server to indexer worker Falcon appEXPOSE 8003-ARG SEMANTIC_VERSION-ENV SENTRY_RELEASE=$SEMANTIC_VERSION-CMD ["gunicorn", "--bind", "0.0.0.0:8003", "api:api"]diff --git a/indexer_worker/pyproject.toml b/indexer_worker/pyproject.tomlindex 0735934da..182844575 100644--- a/indexer_worker/pyproject.toml+++ b/indexer_worker/pyproject.toml@@ -23,7 +23,6 @@ dependencies = ["python-decouple ~= 3.8","PyYAML ~= 6.0","tldextract ~= 5.0",- "sentry-sdk[falcon] ~=2.18",][tool.uv]diff --git a/indexer_worker/uv.lock b/indexer_worker/uv.lockindex 7f2fd4b92..e7f88166a 100644--- a/indexer_worker/uv.lock+++ b/indexer_worker/uv.lock@@ -349,7 +349,6 @@ dependencies = [{ name = "psycopg" },{ name = "python-decouple" },{ name = "pyyaml" },- { name = "sentry-sdk", extra = ["falcon"] },{ name = "tldextract" },]@@ -379,7 +378,6 @@ requires-dist = [{ name = "psycopg", specifier = ">=3.2.3,<4" },{ name = "python-decouple", specifier = "~=3.8" },{ name = "pyyaml", specifier = "~=6.0" },- { name = "sentry-sdk", extras = ["falcon"], specifier = "~=2.18" },{ name = "tldextract", specifier = "~=5.0" },]@@ -672,24 +670,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/83/37/395cdb6ee92925fa211e55d8f07b9f93cf93f60d7d4ce5e66fd73f1ea986/s3transfer-0.10.1-py3-none-any.whl", hash = "sha256:ceb252b11bcf87080fb7850a224fb6e05c8a776bab8f2b64b7f25b969464839d", size = 82168, upload-time = "2024-03-14T19:11:04.538Z" },]-[[package]]-name = "sentry-sdk"-version = "2.18.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "certifi" },- { name = "urllib3" },-]-sdist = { url = "https://files.pythonhosted.org/packages/24/cc/0d87cc8246f52d92228aa6718a24e1988a2893f4abe2f64ec5a8bcba4185/sentry_sdk-2.18.0.tar.gz", hash = "sha256:0dc21febd1ab35c648391c664df96f5f79fb0d92d7d4225cd9832e53a617cafd", size = 293615, upload-time = "2024-11-04T13:58:17.093Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/76/9b/2d512efdb0de203d1f0312fae53433c3009ba70b0078421d25baaedc960a/sentry_sdk-2.18.0-py2.py3-none-any.whl", hash = "sha256:ee70e27d1bbe4cd52a38e1bd28a5fadb9b17bc29d91b5f2b97ae29c0a7610442", size = 317514, upload-time = "2024-11-04T13:58:15.166Z" },-]--[package.optional-dependencies]-falcon = [- { name = "falcon" },-]-[[package]]name = "six"version = "1.17.0"diff --git a/ingestion_server/Dockerfile b/ingestion_server/Dockerfileindex a08ba314d..d32829319 100644--- a/ingestion_server/Dockerfile+++ b/ingestion_server/Dockerfile@@ -85,7 +85,4 @@ COPY --chown=ov_user . /ingestion_server/# - 8002: Gunicorn server for `indexer_worker` Falcon appEXPOSE 8001 8002-ARG SEMANTIC_VERSION-ENV SENTRY_RELEASE=$SEMANTIC_VERSION-CMD ["gunicorn", "--bind", "0.0.0.0:8001", "api:api"]diff --git a/ingestion_server/Pipfile b/ingestion_server/Pipfileindex 6b96ac285..1f838d86b 100644--- a/ingestion_server/Pipfile+++ b/ingestion_server/Pipfile@@ -25,7 +25,6 @@ psycopg2 = "~=2.9"python-decouple = "~=3.8"PyYAML = "~=6.0"tldextract = "~=5.0"-sentry-sdk = {extras = ["falcon"], version = "*"}[requires]python_version = "3.11"diff --git a/ingestion_server/Pipfile.lock b/ingestion_server/Pipfile.lockindex 100bccc59..e9eb70435 100644--- a/ingestion_server/Pipfile.lock+++ b/ingestion_server/Pipfile.lock@@ -1,7 +1,7 @@{"_meta": {"hash": {- "sha256": "c1df2e3f1b1e4a4a51a0184b8495c827d2945e64134b31214941ada95234b626"+ "sha256": "edf4f5d776eb12e0b7ad36faeec4e8d8f87443ad05ad723c3a4b49eaba2e92d3"},"pipfile-spec": 6,"requires": {@@ -662,17 +662,6 @@"markers": "python_version >= '3.10'","version": "==0.19.3"},- "sentry-sdk": {- "extras": [- "falcon"- ],- "hashes": [- "sha256:9a10e97de2cbd42ad7e4a6e02a0d5af19de9811eb02445077d41ba14c08e170c",- "sha256:c38ac2d4b2435c11da821e173bb9d9088c98f41ae92f559ce0e424170a8e1a29"- ],- "markers": "python_version >= '3.6'",- "version": "==2.75.0"- },"six": {"hashes": ["sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274",diff --git a/ingestion_server/ingestion_server/api.py b/ingestion_server/ingestion_server/api.pyindex 9156c5613..d70b5edef 100644--- a/ingestion_server/ingestion_server/api.py+++ b/ingestion_server/ingestion_server/api.py@@ -1,7 +1,6 @@"""A small RPC API server for scheduling data refresh and indexing tasks."""import logging-import osimport timeimport uuidfrom collections import defaultdict@@ -10,9 +9,7 @@ from pathlib import Pathfrom urllib.parse import urlparseimport falcon-import sentry_sdkfrom falcon.media.validators import jsonschema-from sentry_sdk.integrations.falcon import FalconIntegrationfrom ingestion_server import slackfrom ingestion_server.constants.media_types import MEDIA_TYPES, MediaType@@ -32,15 +29,6 @@ ACTION = "action"CALLBACK_URL = "callback_url"SINCE_DATE = "since_date"-sentry_sdk.init(- dsn=os.environ.get("SENTRY_DSN"),- integrations=[- FalconIntegration(),- ],- traces_sample_rate=os.environ.get("SENTRY_SAMPLE_RATE", 1.0),- environment=os.environ.get("ENVIRONMENT"),-)-class HealthResource:@staticmethod@@ -200,7 +188,6 @@ class TaskResource(BaseTaskResource):active_workers = Value("i", int(False))is_bad_request = Value("i", 0)- task_sentry_hub = sentry_sdk.Hub(sentry_sdk.Hub.current)task = Process(target=perform_task,kwargs={@@ -219,7 +206,6 @@ class TaskResource(BaseTaskResource):"destination_index_suffix": destination_index_suffix,"alias": alias,"force_delete": force_delete,- "sentry_hub": task_sentry_hub,},)task.start()diff --git a/ingestion_server/ingestion_server/tasks.py b/ingestion_server/ingestion_server/tasks.pyindex 513546a3c..47479e8d3 100644--- a/ingestion_server/ingestion_server/tasks.py+++ b/ingestion_server/ingestion_server/tasks.py@@ -6,8 +6,6 @@ from enum import Enum, autofrom functools import wrapsfrom multiprocessing import Value-import sentry_sdk-from ingestion_server import slackfrom ingestion_server.constants.media_types import MediaTypefrom ingestion_server.es_helpers import elasticsearch_connect@@ -161,47 +159,24 @@ class TaskTracker:return {"task_id": task_id} | self.serialize_task_info(task_id, task_info)-def _with_sentry(fn):+def _log_exceptions(fn):"""- Wrap the decorated function for Sentry multiprocessing.-- Convenience function to wrap ``perform_task`` in such a way- to extract the ``sentry_hub`` kwarg passed by ``api.py``, send- exceptions to Sentry, and fully flush the client's Sentry- queue before the worker exits.-- We cannot use the convenient ``ThreadingIntegration`` because it- does not support ``multiprocessing``, only the legacy ``threading``- module (we use ``multiprocessing``)+ Log, rather than raise, exceptions from the task so that they end up in+ the worker's logs before the process exits."""@wraps(fn)- def fn_with_sentry(*args, **kwargs):- hub = kwargs.pop("sentry_hub")- with hub:- try:- result = fn(*args, **kwargs)- except Exception as exc:- result = None- logging.error(exc, exc_info=exc)- sentry_sdk.capture_exception(exc)-- client = hub.client- if client is not None:- # Sentry does not send events right away (it handles messages async)- # and because the task finishing will shut down the worker thread- # we need to flush the client before exiting the function.- # ``client.flush`` will block until all messages in Sentry's queue are sent.- # We do this _outside_ the try/except so that _anything_ passed to sentry- # (like messages, etc) also get sent before the worker thread is closed.- client.flush(timeout=5)-- return result-- return fn_with_sentry---@_with_sentry+ def fn_logging_exceptions(*args, **kwargs):+ try:+ return fn(*args, **kwargs)+ except Exception as exc:+ logging.error(exc, exc_info=exc)+ return None++ return fn_logging_exceptions+++@_log_exceptionsdef perform_task(task_id: str,model: MediaType,diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 2ea48e486..bd0c0afa9 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -253,9 +253,6 @@ importers:'@pinia/nuxt':specifier: ^1.0.0version: 1.0.3(@nuxt/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])))- '@sentry/nuxt':- specifier: ^11.10.0- version: 11.10.0(f4deca0044e19544bf4565c911ecf900)'@tailwindcss/typography':specifier: ^0.5.20version: 0.5.20([email protected])@@ -1701,12 +1698,6 @@ packages:cpu: [arm]os: [android]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-393VtirINkae4XHBTkq/yQxhOwEr4V+r0et37P2fp+sYZSdYgZTRDPo5Um8vBh0QjMZ+RmaMy4PP0qwr4cTMwA==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm]- os: [android]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-BcWu25dMwMjHpaDCEidmpAi7rGg1qZoihJeUUH9bD55pVZ0z4Wa5CQgqSTo0R41H81oozisQKW3WqvAN2m77IQ==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1719,12 +1710,6 @@ packages:cpu: [arm64]os: [android]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-iYFcExATJNZ0rZj0o02THbD1Nc9jAW0nVgIQPee6ejbSASpbZXlIMw8jxtpzaG14JQTWwGSZ6U5dEtRJXE6V3Q==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [android]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-9l5rdp2DhRqVriBHsNpu5cEf+hizZ4B58rt93HzyQEBUgZiC6qe2oFpaAAnXGCxHGnQExI1s7S2G0QhFacUZ6w==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1737,12 +1722,6 @@ packages:cpu: [arm64]os: [darwin]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-fnU+DfUzi5/rFy0LzmipYRz06PAUUkOS8kCJQ3Eg6oqlunC1XZXoffFqxmdL51RmcbYtUG3P8DVG1U5fckoa2A==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [darwin]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-EcpsyRXHhENDpekpG4QNaSZj2F/BAz4Gh4o89zZwNss86R8KyRSQ6sXbAj74Xyeb4z3j/yBZZ6joQZhraIWyfw==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1755,12 +1734,6 @@ packages:cpu: [x64]os: [darwin]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-Y3U2okryWTs7hDld6UhjJwLNf8/do+x4g4C+1U5SiGwrTLwbO83WJYJA8+l9iFSilWBgnfpd/+U76tfeNxUHzA==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [darwin]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-hlj80HUQy07/2lYp6rmxH+3u+H2ik3rjLR52CUdPApxmZCNxASDUf/+ykTzAHS/fehftmVMATKvPaWmuLHuasg==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1773,12 +1746,6 @@ packages:cpu: [x64]os: [freebsd]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-XkhkRrrPffEw+ZLv/d/5pEni0buxinm/E/N6fLbJCunD1DBbeCTtVP23ESV+4CWCWdSz397asks1ViGslpmWiQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [freebsd]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-fWRcv2pMSh1qtez46MOu8vuUJ5fiaQZPHSphbWulbL7SHBMKfRgZl2PzjXZYQJbq7NEXyXbgIuIuUm+/Rmkv8w==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1791,12 +1758,6 @@ packages:cpu: [arm]os: [linux]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-MLzsRRbdfmdzo6JEhbC1yKU9ItfvM8tEf18HM32jCiNYZEz6J3bRBRl3cTkKR0vBdrk9ZVlcARXtwHccs+epDA==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm]- os: [linux]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-paZeUK1GXShl/bOJQET1/8AQxayFeuN4SIWAkgTRxE7ZQwv9uYSB2n0648smygP22N7jcI3zxAm0Z+ALNiIKxg==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1809,12 +1770,6 @@ packages:cpu: [arm]os: [linux]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-HHerTEJz7Iy10Ji6BGsk4gqG6PU0UzFuBu91jIEOX89FnrI5ECWSEr7BLpkYQhp7U0QFtMnBhNfQKI0hYZK78w==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm]- os: [linux]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-qFPp5NwMf4K1C0O+DCVGmcbOaYyYAq98Rvv9p4VSfb777iUwlJCqMUxf6QG9N5f5ls4TEX6LitOZHi+6GL6rYQ==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1828,13 +1783,6 @@ packages:os: [linux]libc: [glibc]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-9Bb8GyzZ2uSLzRDZ27usaKokr07mxiBe2dDF5b6bd2janmaJTT1gL51UfP7AU30yFiXrJvcRyFKREAgKwZYs0w==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [linux]- libc: [glibc]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-oufEhZCX7saeo27Logra8cvBR1jQ/yw2zUI2hHmWw3qA/XYqEW31FOvLQBv7DWN32NjVdlcaP11WBBZTJo4k9g==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1849,13 +1797,6 @@ packages:os: [linux]libc: [musl]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-om7iDMUroI74A/lfRRWY9/Ev3VWrVsrUZ4tyvyh8raBey/sdcfyAD7tYWc+iykAiotnmftyKTpUKFr1QnaBrAQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [linux]- libc: [musl]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-zXYzuAqng85h6+LI3iRm0zeMLX1/K2z41ZAMWxVRgt0D10VvZUaV5q+TEB46KDhoKBpdexoTLC6QoB/EiP2oqQ==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1870,13 +1811,6 @@ packages:os: [linux]libc: [glibc]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-Lf1OL2lMTqwDMFC6jnRb30B+WYHKV0XT+bPHcFM6xHtNVwxpobiTzUIvKH6a0LWpvfwyru8Yu6zCGHqqFHH+gg==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [ppc64]- os: [linux]- libc: [glibc]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-J7+NLwLEzdkKM9cKyPHH/AjXXstWOs98KYgLrPPnO4N9MO8EZRBfPNnBcS3S67uMOBkRpUmCl2FhRnWdQ5CbBA==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1891,13 +1825,6 @@ packages:os: [linux]libc: [glibc]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-BYWSMQK+YJ9ZILStPcmmiSVq8KEG9Qdq/c4BHPC3rUEq/fEDCVjUIwdj5ZzjgZ9P9is9PKu0tcAXzq1ZXg4urQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [riscv64]- os: [linux]- libc: [glibc]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-sD0K11GQTLWylln54nPMMTtgmBbQrR5It/vMpZpy/fogiw8O2AvIE+9LuWUXddrWk9zvFIHGRcSgFn4IHOfoYg==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1912,13 +1839,6 @@ packages:os: [linux]libc: [musl]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-d2LqHNNNqdH185sRK5dPKWZu201JrNu9/CRFuVEuT+ht7n/QaVblEMWT9MALQPrDWYvhG10P+NSKJFquDWZ09w==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [riscv64]- os: [linux]- libc: [musl]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-7L66uql2BhvSz51LwfExjOdn6et/ydTiQxl23VApdKzJhTc3TczA1Qt6VR/UcvlQrL2ZbytIJb447vh7p5wmUw==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1933,13 +1853,6 @@ packages:os: [linux]libc: [glibc]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-8gBeHt5rA/8+pKhHl+zLggfa3L/V/L2at96p7ty6pBE7id6lFO19nFUc15u2PcjC4OYeYK465MKy1fhhbpFIGw==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [s390x]- os: [linux]- libc: [glibc]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-hXV3T7mNyrPR19rbPYkglkQJtoM/UNo/xwbZeeqdAxEg8PXgb4LXXuxPpGgI4bzRRCWwLUxdDSS58xIyC2u1TA==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1954,13 +1867,6 @@ packages:os: [linux]libc: [glibc]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-ltgrSF6L+yPTVsIdaAyqKq3zTqzj/1VlNbxWZuxAe8flR3sWdyNsKvdXukoO8/ucJbLickhmieRBge+o/e8Ugw==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [linux]- libc: [glibc]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-Da8Vqs1xdtoDYtEjmozD7wGgJeLBQkMbR0WUBECOSxodyX5DXy8ySlvJWbukyO2Q0+TM9EK+4LT6tbq0jCg4hQ==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1975,13 +1881,6 @@ packages:os: [linux]libc: [musl]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-LcMp6BvrBnewSfdkLHoSqidhoAq4syKOTBV5TYHWd+2VnGkfD/nPRRVIzTBt/Lkbt7pfOFDGtkiTntFS0p6sQQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [linux]- libc: [musl]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-zGAPxNTIIw6X5WyTRscIFE/oDjpdNtrrl32ing6NOXdGjzRucadnxBilexLdeYQ9YxixF93GujpXyQ0jw7ddSg==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1995,12 +1894,6 @@ packages:cpu: [arm64]os: [openharmony]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-jbhoMCslVxzRCRNQ8TSHxjYdSKRvk8O6ciLVDkahJvmyHDzBqba/bMQHM6ULKj/rgHNNbSzlIiakdx8SEfkJzA==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [openharmony]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-GoHzpqP5XyPIp9DHokoEdCp+K4UPl/h1neFj1uXnUB3pJYyOQ7NOhFVOttNUgCGcj2eywAvu5cRivTOSq4S10g==}engines: {node: ^20.19.0 || >=22.12.0}@@ -2018,12 +1911,6 @@ packages:cpu: [arm64]os: [win32]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-JZYVlhv36mr/nertnRB7vchJECOBb1Lz6lltalILsB+o9M/is+H6BEDRLQKdqA4JKs6NjJszo46+iM5sfwj6jQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [win32]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-xGcy12tO9k7zFbeyQzEuilfWfQpyRq23/fLPfN3wjSWuWv58k46fQT1hsO1KFNykZuVGW9xSJE/z592TmAoSDA==}engines: {node: ^20.19.0 || >=22.12.0}@@ -2036,12 +1923,6 @@ packages:cpu: [ia32]os: [win32]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-1X9oganvVsunRH0lH10UU05N+H9atpX6WsOybByUjwnfcd3h/0tYwvuv16XuHglrIUOnxV2TodbLVEwwafd64g==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [ia32]- os: [win32]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-o1ykUjWncvXX6N5a4KebgLjtD8zRui+f1llMhSGoSC9oP2KOqapRpdwmZ3NcNG0axFouwVKmhGBjd+IhA8BksA==}engines: {node: ^20.19.0 || >=22.12.0}@@ -2054,12 +1935,6 @@ packages:cpu: [x64]os: [win32]- '@oxc-parser/[email protected]':- resolution: {integrity: sha512-sw0M80/dn9rcpu+Rqqph/C+MjvDDce6MlXmFjsNQtPEymha0eJy3ml6+foSUTqFfpDIDyHZZ4eoJ43IoMe8bJw==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [win32]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-gxQz7G96Up136fd+2zWrP+o6FYGs9NO4Dyv55IoeJFJUDwLFHcLYY11hhA5wQKs0HoM57Q8esQ3nEVhnCdsjAQ==}engines: {node: ^20.19.0 || >=22.12.0}@@ -2069,9 +1944,6 @@ packages:'@oxc-project/[email protected]':resolution: {integrity: sha512-S4as7z0j0xQkXcJlyY5ehntwK8/wRkQb9Cyqw+J/N2rkWGQGK0SxD6X6DhQTc7qsxVTBxXbxZtBJh3mr3PtIzQ==}- '@oxc-project/[email protected]':- resolution: {integrity: sha512-oM/5rLBm2tPkg0iBgkH/FOeR3PCDpY19GTgAZjMFM8h9WI9VW7cLgzp6nwtarYKmovavIQZ+Fe/RKX/8C8O/Rw==}-'@oxc-project/[email protected]':resolution: {integrity: sha512-jSNrRIyvPVLL5E1z/tS5zLAprosGz/FuI1PWwEOz59j3E4TTTzSpqKb/RDGqJhhW0QHYISGXxq582wGx6T11Tw==}@@ -2749,102 +2621,6 @@ packages:'@sec-ant/[email protected]':resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==}- '@sentry/[email protected]':- resolution: {integrity: sha512-P/bYHTgj76sYBYCZa524YoZ/hZac2XCW3i3qShrMXnh7s63x1cweUjD7BDVDb0L/lGMwtuObuZeRnCif4hWLNg==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}-- '@sentry/[email protected]':- resolution: {integrity: sha512-kU8Inx3K/PaaDGqTu4lBW8XCYNsYNTwwPIZNIRDas/mTXtepXpM7M0KxxrTSZXBTWX0RfDU4t7vsL9ay0o4+NQ==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}-- '@sentry/[email protected]':- resolution: {integrity: sha512-+ngJ485rIYll5uOhWSvSO+Vx4S24MGe5KcLKlUZghr+BXK+ib32uBOZNG294wGyeauLTDvdjncLEYwiaBnP/5w==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}- peerDependencies:- rollup: '>=3.2.0'- webpack: '>=5.1.0'- peerDependenciesMeta:- rollup:- optional: true- webpack:- optional: true-- '@sentry/[email protected]':- resolution: {integrity: sha512-S9x1ZFHnM1BLh2FVzCKO+2QLG0rCtLsZjYn3ZhHfyT6RN3jwh73So1RT/gE1dsAZj+xq8lr2ptTPmv/ATsYc7w==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}- peerDependencies:- '@cloudflare/workers-types': ^4.x || ^5.x- vite: ^6.1.0 || ^7.0.0 || ^8.0.0- wrangler: ^4.x- peerDependenciesMeta:- '@cloudflare/workers-types':- optional: true- vite:- optional: true- wrangler:- optional: true-- '@sentry/[email protected]':- resolution: {integrity: sha512-kYq9/HJ/l6MYP/srIc20dy1W4mWyJfCF0OWFF+RhBGZwyr/wCmtabRFKyw7kqM+DTwZXQOjSTSZUcJhDowcInQ==}- engines: {node: '>=14'}-- '@sentry/[email protected]':- resolution: {integrity: sha512-l/OtTo1v+TQgZtHG2Q5N4IX+gFdAE1tZ27K/P21UCzJglWk54TPEm+d9T2lulPqMK06kZcLwDgRAhE2GO4YS5w==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}-- '@sentry/[email protected]':- resolution: {integrity: sha512-jZqxVHPoUeZ6W7xSlhJdTMuM/GUJLA/K4U9OFmkP+g+TvtXhdwWxeiT23m2Wm5NmTHjaB07jSc05ayuflD8ETw==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}-- '@sentry/[email protected]':- resolution: {integrity: sha512-ZsndrSn1NjL9AslpUdxz/kYPcv/i+plVZoyPe1ivlr5XPUpocB8pUL5noYbIUl96Wd/yGvPBw6zqO8d69rRKQQ==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}-- '@sentry/[email protected]':- resolution: {integrity: sha512-qCaWB/DIKj2PWCv0eHLl1OSOKdP0J6U/KKMkP/RDSsx7qsWi1o2U/0JBHzgj/FulTIEiDo46ezboO0/M+b2/CQ==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}- peerDependencies:- nitro: 2.x || 3.x || 3.0.260311-beta || 3.0.260415-beta || 3.0.260429-beta || 3.0.260522-beta || 3.0.260603-beta || 3.0.260610-beta || 3.0.260903-beta- nuxt: '>=3.7.0 || 4.x || 5.x'- peerDependenciesMeta:- nitro:- optional: true-- '@sentry/[email protected]':- resolution: {integrity: sha512-YMV4ZgaRlW7QPCcMScVpSBvYOdvDlY+alqRT3KOTcmPKFZtf8O2hXHWFhl/M33kKDEfqOk2XtEVeHs3mZFOCaw==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}- peerDependencies:- '@opentelemetry/api': ~1.10.0-- '@sentry/[email protected]':- resolution: {integrity: sha512-i0Fsjbl8ChzTMntLVhZvn72+p395tGNtL4iflsprnzPhTVSOGW9IYgUYfO87UcujUf5CmYn7ELBKUc5V0Ipfdg==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}-- '@sentry/[email protected]':- resolution: {integrity: sha512-0rcg+43tkO278VyrKcbmg0JQm2yxuguXKLbr9ieiNsynaxj22JC8baie4Uxizf2jM2ukfqA3O+o0Pbqaed8P2Q==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}-- '@sentry/[email protected]':- resolution: {integrity: sha512-1nc+HNPldrPEov16sL5m2cOLVgNJ+FsR7QtaWGOOv8qYFJkSp95lyc2qzLnaG2L72UzSMOv10peGRioAKrrZQQ==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}-- '@sentry/[email protected]':- resolution: {integrity: sha512-m/MVCvPzQJJZZCTFlVPCrTuoncT7SR80+QKg1K7ul25AsL0byABr5KsHCbXVpOYXLVz04Omk+pOOR5Cv2IAlrA==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}-- '@sentry/[email protected]':- resolution: {integrity: sha512-jxoJzXQGsS8lm/RcAwHSEr8rwQ1e7Izv2qR1WG65YKP5iqI6BhlazC99XAVQC5k11viW3DTn6SMnymr4MDrZwQ==}- engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'}- peerDependencies:- '@tanstack/vue-router': ^1.64.0- pinia: 2.x || 3.x || 4.x- vue: 2.x || 3.x- peerDependenciesMeta:- '@tanstack/vue-router':- optional: true- pinia:- optional: true-'@sindresorhus/[email protected]':resolution: {integrity: sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==}engines: {node: '>=18'}@@ -5998,10 +5774,6 @@ packages:resolution: {integrity: sha512-uFkGGr1KMWd6aWv9UAqooYrN78trw8MWWmoPvgWokfBEUq1+eiIQ+qfj3wokhy0fxtZWZk+0dHoS7/yRTJtd6w==}engines: {node: ^20.19.0 || >=22.12.0}- resolution: {integrity: sha512-ZztsZgaCWmPeKYMdoTT5e0oV/oxD1NeLWNR3kAtr/G707cUPYaaozRlVDHLCGnszHJRszN9mJwmPNpqgwloC0A==}- engines: {node: ^20.19.0 || >=22.12.0}-resolution: {integrity: sha512-cEnpyyV1OJRXv++SFNw0z8i+2o/cr88rVLaOYJafELDoHM5yHvCAbwGRLvxuany6SNLcbblSMUyZaGzH+quSYg==}engines: {node: ^20.19.0 || >=22.12.0}@@ -6530,11 +6302,6 @@ packages:resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==}engines: {node: '>= 18'}- resolution: {integrity: sha512-kgmEbLlC22lL7uneeUm9Sjz65rp5cvwYOMTxXbZCmBum4sbVre/lLT3zTV3kwXHJ9/BM8ZS0/GhZe9Cl1t6WyA==}- engines: {node: '>=20.0'}- hasBin: true-resolution: {integrity: sha512-FqlEuoTq/zRmA4Lg6aOqyH3lCHbUtCB0bmHCeFniX2GBdDqMJM3FwdvEhlE5Pim1dlt2FfBdVPmUNNiGhhKqpw==}engines: {node: '>=20.0.0'}@@ -6759,10 +6526,6 @@ packages:resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}engines: {node: '>=8'}- resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}- engines: {node: '>=10'}-resolution: {integrity: sha512-VL+lNrEoIXww1coLPOmiEmK/0sGigko5COxI09KzHc2VJXJsQ37UaQ+8quuxjDeA7+KnLGTWRyOXSLLR2Wb4jw==}engines: {node: '>=12'}@@ -7462,9 +7225,6 @@ packages:resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==}engines: {node: '>=18'}- resolution: {integrity: sha512-Dmy+vdO1UPMqXiAtZSNayhl4f794Bxfd94W4HIj2HlYtczEQfEOon969memlcpcHrTuOKLa5baFjX7WbgmOq+A==}-resolution: {integrity: sha512-RiMReJrTAiA+mBjGONMnjVDP2u3p9R1vkcGz6gDIrOMT3oGuYwX2WRMYI9ipkphSuE5XKEhydbhNEJh4NY9mlw==}@@ -9230,151 +8990,104 @@ snapshots:'@open-draft/[email protected]': {}- '@opentelemetry/[email protected]': {}+ '@opentelemetry/[email protected]':+ optional: true'@ota-meshi/[email protected]': {}'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true@@ -9388,34 +9101,23 @@ snapshots:'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-parser/[email protected]':optional: true- '@oxc-parser/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true'@oxc-project/[email protected]': {}- '@oxc-project/[email protected]': {}-'@oxc-project/[email protected]': {}'@oxc-project/[email protected]': {}@@ -9868,136 +9570,6 @@ snapshots:'@sec-ant/[email protected]': {}- '@sentry/[email protected]':- dependencies:- '@sentry/conventions': 0.29.0- '@sentry/core': 11.10.0- web-vitals: 6.2.3-- '@sentry/[email protected]':- dependencies:- '@sentry/browser-utils': 11.10.0- '@sentry/conventions': 0.29.0- '@sentry/core': 11.10.0- '@sentry/feedback': 11.10.0- '@sentry/replay': 11.10.0- '@sentry/replay-canvas': 11.10.0-- '@sentry/[email protected]([email protected])':- dependencies:- '@sentry/core': 11.10.0- dotenv: 17.4.2- glob: 13.0.6- magic-string: 1.4.4- oxc-parser: 0.152.0- sentry: 0.45.0- supports-color: 8.1.1- optionalDependencies:- rollup: 4.68.2-- '@sentry/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':- dependencies:- '@opentelemetry/api': 1.10.0- '@sentry/conventions': 0.29.0- '@sentry/core': 11.10.0- '@sentry/opentelemetry': 11.10.0(@opentelemetry/[email protected])- '@sentry/server-utils': 11.10.0- magic-string: 0.30.21- optionalDependencies:- vite: 8.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])-- '@sentry/[email protected]': {}-- '@sentry/[email protected]':- dependencies:- '@sentry/conventions': 0.29.0-- '@sentry/[email protected]':- dependencies:- '@sentry/core': 11.10.0-- '@sentry/[email protected]([email protected])':- dependencies:- '@opentelemetry/api': 1.10.0- '@sentry/bundler-plugins': 11.10.0([email protected])- '@sentry/conventions': 0.29.0- '@sentry/core': 11.10.0- '@sentry/opentelemetry': 11.10.0(@opentelemetry/[email protected])- '@sentry/server-runtime-injection': 11.10.0- '@sentry/server-utils': 11.10.0- transitivePeerDependencies:- - rollup- - webpack-- '@sentry/[email protected](f4deca0044e19544bf4565c911ecf900)':- dependencies:- '@nuxt/kit': 4.6.3(@nuxt/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])))- '@sentry/browser': 11.10.0- '@sentry/bundler-plugins': 11.10.0([email protected])- '@sentry/cloudflare': 11.10.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))- '@sentry/conventions': 0.29.0- '@sentry/core': 11.10.0- '@sentry/node': 11.10.0([email protected])- '@sentry/server-runtime-injection': 11.10.0- '@sentry/server-utils': 11.10.0- '@sentry/vue': 11.10.0([email protected]([email protected])([email protected]([email protected])))([email protected]([email protected]))- nuxt: 4.6.4(@babel/[email protected](@babel/[email protected]([email protected])))(@babel/[email protected](@babel/[email protected]([email protected])))(@oxc-project/[email protected])(@types/[email protected])(@vue/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])- transitivePeerDependencies:- - '@cloudflare/workers-types'- - '@nuxt/schema'- - '@tanstack/vue-router'- - confbox- - dotenv- - giget- - jiti- - magic-string- - mlly- - oxc-parser- - pinia- - rolldown- - rollup- - unplugin- - vite- - vue- - webpack- - wrangler-- '@sentry/[email protected](@opentelemetry/[email protected])':- dependencies:- '@opentelemetry/api': 1.10.0- '@sentry/conventions': 0.29.0- '@sentry/core': 11.10.0-- '@sentry/[email protected]':- dependencies:- '@sentry/core': 11.10.0- '@sentry/replay': 11.10.0-- '@sentry/[email protected]':- dependencies:- '@sentry/browser-utils': 11.10.0- '@sentry/core': 11.10.0-- '@sentry/[email protected]':- dependencies:- '@sentry/core': 11.10.0- '@sentry/server-utils': 11.10.0-- '@sentry/[email protected]':- dependencies:- '@opentelemetry/api': 1.10.0- '@sentry/conventions': 0.29.0- '@sentry/core': 11.10.0-- '@sentry/[email protected]([email protected]([email protected])([email protected]([email protected])))([email protected]([email protected]))':- dependencies:- '@sentry/browser': 11.10.0- '@sentry/conventions': 0.29.0- '@sentry/core': 11.10.0- vue: 3.5.44([email protected])- optionalDependencies:-'@sindresorhus/[email protected]': {}'@sindresorhus/[email protected]': {}@@ -13611,30 +13183,6 @@ snapshots:'@oxc-parser/binding-win32-ia32-msvc': 0.141.0'@oxc-parser/binding-win32-x64-msvc': 0.141.0- dependencies:- '@oxc-project/types': 0.152.0- optionalDependencies:- '@oxc-parser/binding-android-arm-eabi': 0.152.0- '@oxc-parser/binding-android-arm64': 0.152.0- '@oxc-parser/binding-darwin-arm64': 0.152.0- '@oxc-parser/binding-darwin-x64': 0.152.0- '@oxc-parser/binding-freebsd-x64': 0.152.0- '@oxc-parser/binding-linux-arm-gnueabihf': 0.152.0- '@oxc-parser/binding-linux-arm-musleabihf': 0.152.0- '@oxc-parser/binding-linux-arm64-gnu': 0.152.0- '@oxc-parser/binding-linux-arm64-musl': 0.152.0- '@oxc-parser/binding-linux-ppc64-gnu': 0.152.0- '@oxc-parser/binding-linux-riscv64-gnu': 0.152.0- '@oxc-parser/binding-linux-riscv64-musl': 0.152.0- '@oxc-parser/binding-linux-s390x-gnu': 0.152.0- '@oxc-parser/binding-linux-x64-gnu': 0.152.0- '@oxc-parser/binding-linux-x64-musl': 0.152.0- '@oxc-parser/binding-openharmony-arm64': 0.152.0- '@oxc-parser/binding-win32-arm64-msvc': 0.152.0- '@oxc-parser/binding-win32-ia32-msvc': 0.152.0- '@oxc-parser/binding-win32-x64-msvc': 0.152.0-dependencies:'@oxc-project/types': 0.153.0@@ -14157,8 +13705,6 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]: {}-@@ -14372,10 +13918,6 @@ snapshots:dependencies:has-flag: 4.0.0- dependencies:- has-flag: 4.0.0-@@ -15011,8 +14553,6 @@ snapshots:dependencies:xml-name-validator: 5.0.0- [email protected]: {}-