Skip to content

Commit 103847a

Browse files
Abdkhan14Abdullah Khan
andauthored
feat(source-map-config-issues): Logging extra data on occurrence trigger for UI validation (#112091)
- Logs on first trigger - Will help identify orgs with occurrences for ui testing + end-to-end pipeline validation --------- Co-authored-by: Abdullah Khan <abdullahkhan@PG9Y57YDXQ.local>
1 parent 0dc0fdd commit 103847a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/sentry/processing_errors/detection.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,20 @@ def _detect_for_config(
161161
if result.is_triggered:
162162
_set_detector_triggered(config, project_id)
163163
metrics.incr(f"processing_errors.{config.slug}.triggered")
164+
error_types = sorted(
165+
config.handler_cls.error_types.intersection(
166+
filter(None, (e.get("type") for e in errors))
167+
)
168+
)
169+
logger.info(
170+
"processing_errors.%s.occurrence_created",
171+
config.slug,
172+
extra={
173+
"organization_slug": event.project.organization.slug,
174+
"project_id": project_id,
175+
"error_types": error_types,
176+
},
177+
)
164178

165179

166180
def detect_processing_issues(job: PostProcessJob) -> None:

0 commit comments

Comments
 (0)