diff --git a/src/sentry/api/endpoints/source_map_debug_blue_thunder_edition.py b/src/sentry/api/endpoints/source_map_debug_blue_thunder_edition.py index 4d010c5afb7f75..f5786082e3ddf2 100644 --- a/src/sentry/api/endpoints/source_map_debug_blue_thunder_edition.py +++ b/src/sentry/api/endpoints/source_map_debug_blue_thunder_edition.py @@ -634,6 +634,7 @@ def get_sdk_debug_id_support(event_data): "sentry.javascript.browser", "sentry.javascript.capacitor", "sentry.javascript.cordova", + "sentry.javascript.cloudflare", "sentry.javascript.electron", "sentry.javascript.gatsby", "sentry.javascript.nextjs", @@ -660,32 +661,41 @@ def get_sdk_debug_id_support(event_data): if sdk_name == "sentry.javascript.react-native": return ( - "full" - if Version(sdk_version) >= Version(MIN_REACT_NATIVE_SDK_VERSION_FOR_DEBUG_IDS) - else "needs-upgrade", + ( + "full" + if Version(sdk_version) >= Version(MIN_REACT_NATIVE_SDK_VERSION_FOR_DEBUG_IDS) + else "needs-upgrade" + ), MIN_REACT_NATIVE_SDK_VERSION_FOR_DEBUG_IDS, ) if sdk_name == "sentry.javascript.electron": return ( - "full" - if Version(sdk_version) >= Version(MIN_ELECTRON_SDK_VERSION_FOR_DEBUG_IDS) - else "needs-upgrade", + ( + "full" + if Version(sdk_version) >= Version(MIN_ELECTRON_SDK_VERSION_FOR_DEBUG_IDS) + else "needs-upgrade" + ), MIN_ELECTRON_SDK_VERSION_FOR_DEBUG_IDS, ) if sdk_name == "sentry.javascript.nextjs" or sdk_name == "sentry.javascript.sveltekit": return ( - "full" - if Version(sdk_version) >= Version(MIN_NEXTJS_AND_SVELTEKIT_SDK_VERSION_FOR_DEBUG_IDS) - else "needs-upgrade", + ( + "full" + if Version(sdk_version) + >= Version(MIN_NEXTJS_AND_SVELTEKIT_SDK_VERSION_FOR_DEBUG_IDS) + else "needs-upgrade" + ), MIN_NEXTJS_AND_SVELTEKIT_SDK_VERSION_FOR_DEBUG_IDS, ) return ( - "full" - if Version(sdk_version) >= Version(MIN_JS_SDK_VERSION_FOR_DEBUG_IDS) - else "needs-upgrade", + ( + "full" + if Version(sdk_version) >= Version(MIN_JS_SDK_VERSION_FOR_DEBUG_IDS) + else "needs-upgrade" + ), MIN_JS_SDK_VERSION_FOR_DEBUG_IDS, ) diff --git a/src/sentry/models/project.py b/src/sentry/models/project.py index 3c0d29641846d4..62a08ad6fcdb68 100644 --- a/src/sentry/models/project.py +++ b/src/sentry/models/project.py @@ -99,6 +99,7 @@ "javascript", "javascript-angular", "javascript-astro", + "javascript-cloudflare", "javascript-ember", "javascript-gatsby", "javascript-nextjs", diff --git a/src/sentry/utils/event.py b/src/sentry/utils/event.py index f950f4d1c706fa..348c8f0089c148 100644 --- a/src/sentry/utils/event.py +++ b/src/sentry/utils/event.py @@ -77,6 +77,7 @@ def is_event_from_browser_javascript_sdk(event: dict[str, Any]) -> bool: return sdk_name.lower() in [ "sentry.javascript.astro", "sentry.javascript.browser", + "sentry.javascript.cloudflare", "sentry.javascript.react", "sentry.javascript.gatsby", "sentry.javascript.ember", diff --git a/src/sentry/utils/platform_categories.py b/src/sentry/utils/platform_categories.py index 4ca5ab3e78a6e3..ec8b30aa980b0e 100644 --- a/src/sentry/utils/platform_categories.py +++ b/src/sentry/utils/platform_categories.py @@ -72,6 +72,7 @@ "java-logging", "java-spring-boot", "java-spring", + "javascript-cloudflare", "kotlin", "native", "node", @@ -118,6 +119,7 @@ SERVERLESS = { "dotnet-awslambda", "dotnet-gcpfunctions", + "javascript-cloudflare", "node-awslambda", "node-azurefunctions", "node-gcpfunctions", diff --git a/src/sentry/utils/tag_normalization.py b/src/sentry/utils/tag_normalization.py index c7cdb2d965cb35..b68776c1ff5f3e 100644 --- a/src/sentry/utils/tag_normalization.py +++ b/src/sentry/utils/tag_normalization.py @@ -20,6 +20,7 @@ "sentry.javascript.browser", "sentry.javascript.capacitor", "sentry.javascript.cordova", + "sentry.javascript.cloudflare", "sentry.javascript.deno", "sentry.javascript.electron", "sentry.javascript.ember",