Skip to content

Commit 3def060

Browse files
committed
feat(playstation): Always fetch dumps from tempest, forward config to relay
1 parent 55473f9 commit 3def060

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/sentry/relay/config/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,12 @@ def _get_project_config(
12451245
except Exception:
12461246
capture_exception()
12471247

1248+
# PlayStation / Tempest configuration
1249+
if features.has("organizations:relay-playstation-ingestion", project.organization):
1250+
config["playstationConfig"] = {
1251+
"storeProsperodump": project.get_option("sentry:tempest_fetch_dumps", False)
1252+
}
1253+
12481254
return ProjectConfig(project, **cfg)
12491255

12501256

src/sentry/tempest/tasks.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,8 @@ def poll_tempest_crashes(credentials_id: int, **kwargs) -> None:
146146
project_id=project_id, trigger="tempest:poll_tempest_crashes"
147147
)
148148

149-
# Check if we should attach screenshots and or dumps (opt-in features)
149+
# Check if we should attach screenshots (opt-in feature)
150150
attach_screenshot = credentials.project.get_option("sentry:tempest_fetch_screenshots")
151-
attach_dump = credentials.project.get_option("sentry:tempest_fetch_dumps")
152151

153152
response = fetch_items_from_tempest(
154153
org_id=org_id,
@@ -159,7 +158,7 @@ def poll_tempest_crashes(credentials_id: int, **kwargs) -> None:
159158
offset=int(credentials.latest_fetched_item_id),
160159
limit=options.get("tempest.poll-limit"),
161160
attach_screenshot=attach_screenshot,
162-
attach_dump=attach_dump,
161+
attach_dump=True, # Always fetch for symbolication
163162
)
164163
else:
165164
raise ValueError(
@@ -227,7 +226,7 @@ def fetch_items_from_tempest(
227226
offset: int,
228227
limit: int = 10,
229228
attach_screenshot: bool = False,
230-
attach_dump: bool = False,
229+
attach_dump: bool = True,
231230
time_out: int = 50, # Since there is a timeout of 45s in the middleware anyways
232231
) -> Response:
233232
payload = {

0 commit comments

Comments
 (0)