Skip to content

Commit 3b1fc12

Browse files
authored
feat(platforms): Add Astro as a platform (backend) (#58151)
Adds Astro as a platform to the relevant places in the backend
1 parent 694790f commit 3b1fc12

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

src/sentry/api/endpoints/source_map_debug_blue_thunder_edition.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ def get_sdk_debug_id_support(event_data):
645645
official_sdks = [
646646
"sentry.javascript.angular",
647647
"sentry.javascript.angular-ivy",
648+
"sentry.javascript.astro",
648649
"sentry.javascript.browser",
649650
"sentry.javascript.capacitor",
650651
"sentry.javascript.cordova",

src/sentry/api/helpers/actionable_items_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class ActionPriority:
1010

1111

1212
sourcemap_sdks = [
13+
"sentry.javascript.astro",
1314
"sentry.javascript.browser",
1415
"sentry.javascript.node",
1516
"sentry.javascript.react",

src/sentry/dynamic_sampling/rules/helpers/time_to_adoptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"javascript": 11035,
6161
"javascript-angular": 5156,
6262
"javascript-angularjs": 11592,
63+
"javascript-astro": 5943,
6364
"javascript-backbone": 3463,
6465
"javascript-browser": 3552,
6566
"javascript-ember": 10246,

src/sentry/models/project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"java-spring-boot",
9393
"javascript",
9494
"javascript-angular",
95+
"javascript-astro",
9596
"javascript-ember",
9697
"javascript-gatsby",
9798
"javascript-nextjs",

src/sentry/tasks/check_am2_compatibility.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
# JavaScript
4444
"sentry-browser": "7.6.0",
4545
"sentry.javascript.angular": "7.6.0",
46+
"sentry.javascript.astro": "7.6.0",
4647
"sentry.javascript.browser": "7.6.0",
4748
"sentry.javascript.ember": "7.6.0",
4849
"sentry.javascript.gatsby": "7.6.0",

src/sentry/utils/event.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def is_event_from_browser_javascript_sdk(event):
7171
return False
7272

7373
return sdk_name.lower() in [
74+
"sentry.javascript.astro",
7475
"sentry.javascript.browser",
7576
"sentry.javascript.react",
7677
"sentry.javascript.gatsby",

src/sentry/utils/platform_categories.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"javascript-remix",
1717
"javascript-svelte",
1818
"javascript-sveltekit",
19+
"javascript-astro",
1920
"unity",
2021
]
2122

0 commit comments

Comments
 (0)