Api::V1::WorkspacesController#trash (avg 10249ms, max 10249ms)
Service
cupixworks-api
Occurrences
2
Status
Reported
Confidence
85%
Actionability
36%
Cluster ID
9e40701b-cef2-4c1a-83f6-aafcbd5a6781
First Seen
2026-06-07 07:11 UTC
Last Seen
2026-06-12 04:02 UTC
Actions
Api::V1::WorkspacesController#trash (avg 10249ms, max 10249ms)
What Happened#
2026-06-07 16:11 KST에 Api::V1::WorkspacesController#trash 엔드포인트에서 workspace 4288을 trash 처리할 때 응답 시간이 10,249ms로 측정되었다. 원인은 trash 실행 시 동기적으로 수행되는 다수의 after_trash 콜백이 자식 레코드(facilities, records, captures)를 순회하며 N+1 쿼리를 발생시키기 때문이다.
Quick Facts#
| Field | Value |
|---|---|
| resource_name | Api::V1::WorkspacesController#trash |
| avg_duration | 10,249ms |
| top_frame | app/controllers/concerns/cyclable_controller.rb:7 |
| env | production, us-west-2 |
Timeline#
- 2026-06-07 16:10:54 KST — Workspace 5073 trash 요청 정상 완료 (빠름)
- 2026-06-07 16:11:22 KST — Workspace 4288
flush_child_cycle_state콜백 로그 기록 - 2026-06-07 16:11:32 KST — Workspace 4288 trash 요청 204 응답 완료 (약 10초 소요)
- 2026-06-07 16:11:32 KST — 에러 스위퍼 latency 클러스터 감지
Scoring#
Confidence 85% · Actionability 36%
Confidence#
| Dimension | Score | Detail |
|---|---|---|
| Evidence completeness | 5/5 | 20 code refs, 2 log queries |
| Code path explicitness | 3/3 | 20 file:line refs |
| Log evidence | 3/3 | section, query, pattern |
| RCA structure | 3/3 | 3/3 sections |
| Revision history | 0/3 | 0 revision(s) |
| Agent execution | 3/3 | success |
Actionability#
| Dimension | Score | Detail |
|---|---|---|
| Fix complexity | 1/5 | critical |
| Affected files | 1/5 | 11 file(s) |
| Single repo | 1/3 | 3 service(s) |
| Immediate actions | 0/3 | absent |
| Testability | 0/3 | no test info |
| External dependency | 3/3 | no external deps |
| Data migration | 3/3 | no migration |