Browse Source

chore(hybrid-cloud): remove logging from release registry (#69208)

Cathy Teng 10 months ago
parent
commit
6972846aee
2 changed files with 0 additions and 21 deletions
  1. 0 13
      src/sentry/integrations/aws_lambda/utils.py
  2. 0 8
      src/sentry/tasks/release_registry.py

+ 0 - 13
src/sentry/integrations/aws_lambda/utils.py

@@ -1,7 +1,6 @@
 import re
 from functools import wraps
 
-import sentry_sdk
 from django.conf import settings
 from django.core.cache import cache
 from django.utils.translation import gettext_lazy as _
@@ -9,7 +8,6 @@ from django.utils.translation import gettext_lazy as _
 from sentry import options
 from sentry.services.hybrid_cloud.project_key import ProjectKeyRole, project_key_service
 from sentry.shared_integrations.exceptions import IntegrationError
-from sentry.silo import SiloMode
 from sentry.tasks.release_registry import LAYER_INDEX_CACHE_KEY
 
 SUPPORTED_RUNTIMES = [
@@ -110,17 +108,6 @@ def get_option_value(function, option):
     key = f"aws-layer:{prefix}"
     cache_value = cache_options.get(key)
 
-    if SiloMode.get_current_mode() == SiloMode.REGION:
-        with sentry_sdk.push_scope() as scope:
-            scope.set_context(
-                "aws_lambda_cache",
-                {
-                    "cache_options": cache_options,
-                    "key": key,
-                },
-            )
-            sentry_sdk.capture_message("Fetching aws layer from cache")
-
     if cache_value is None:
         raise IntegrationError(f"Could not find cache value with key {key}")
 

+ 0 - 8
src/sentry/tasks/release_registry.py

@@ -47,10 +47,6 @@ def fetch_release_registry_data(**kwargs):
 
     More details about the registry: https://github.com/getsentry/sentry-release-registry/
     """
-    logger.info(
-        "release_registry.fetch.starting",
-        extra={"release_registry_baseurl": str(settings.SENTRY_RELEASE_REGISTRY_BASEURL)},
-    )
     if not settings.SENTRY_RELEASE_REGISTRY_BASEURL:
         logger.warning("Release registry URL is not specified, skipping the task.")
         return
@@ -65,8 +61,4 @@ def fetch_release_registry_data(**kwargs):
 
     # AWS Layers
     layer_data = _fetch_registry_url("/aws-lambda-layers")
-    logger.info(
-        "release_registry.fetch.aws-lambda-layers",
-        extra={"layer_data": layer_data},
-    )
     cache.set(LAYER_INDEX_CACHE_KEY, layer_data, CACHE_TTL)