|
@@ -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}")
|
|
|
|