Api::V1::ElementTracesController#refresh (avg 27714ms, max 27714ms)
Service
cupixworks-api
Occurrences
15
Status
Reported
Confidence
85%
Actionability
28%
Cluster ID
8a18b22e-81e2-410e-9d19-3c6fb04e0903
First Seen
2026-06-30 22:35 UTC
Last Seen
2026-08-04 21:45 UTC
Actions
Api::V1::ElementTracesController#refresh (avg 27714ms, max 27714ms)
What Happened#
2026-07-01 07:35 KST 경 cupixworks-api의 PUT /api/v1/element_traces/refresh 요청 하나가 약 27.7초 동안 실행되었다. 요청은 최종적으로 HTTP 200으로 성공했지만 Datadog APM에서 duration > 500ms 기준의 latency outlier로 감지되었다. 원인은 특정 record_id(capture 135047)에 매달린 다수의 ElementTrace를 단일 요청 안에서 하나의 배치로 재색인(Elasticsearch bulk index)하는 동기 처리 경로 때문이다.
Quick Facts#
| Field | Value |
|---|---|
| resource_name | Api::V1::ElementTracesController#refresh |
| service | cupixworks-api |
| top_frame | app/repositories/concerns/document_refreshable_repository.rb:15 |
| avg_duration_ms | 27714 |
| max_duration_ms | 27714 |
| sample_trace_id | 2948493950061695559 |
| tenant | cupix |
| env | production, us-west-2 |
Affected Teams#
| Team / Domain | Error Count | Impact |
|---|---|---|
| cupixworks-api (siteinsights element traces) | 1 (this cluster) | Sitetrack 후처리 완료 시 refresh 호출자가 최대 수십 초 대기. 사용자 응답 지연 및 upstream(sitetrack 처리 파이프라인) 블로킹 위험 |
Timeline#
- 2026-07-01 07:35:25 KST — 동일 서비스에서
svc:cupixworks-api::unknown인시던트 시작 (2026-06-30-svc-cupixworks-api--unknown-1) — 관련 컨텍스트, 근접 시간대에 다수 클러스터 동시 발생 - 2026-07-01 07:35:36 KST — 문제의
refresh요청 시작 (cluster first_seen) - 2026-07-01 07:35:39 KST —
[DocumentRefreshable][ElementTrace] on {:record_id=>"135047"} batch#1/1로그 기록 (단일 배치 처리 시작) - 2026-07-01 07:36:04 KST —
[200] PUT /api/v1/element_traces/refresh응답 성공 (총 ~27.7s) - 2026-07-01 07:36:05 KST —
ElementTrace.bulk_operation!완료 로그index - id: 128397208 - 128397322 - 2026-07-01 08:58:01 KST — 관련 svc:* 인시던트 자동 해소
Scoring#
Confidence 85% · Actionability 28%
Confidence#
| Dimension | Score | Detail |
|---|---|---|
| Evidence completeness | 5/5 | 13 code refs, 6 log queries |
| Code path explicitness | 3/3 | 13 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 | 13 file(s) |
| Single repo | 1/3 | 5 service(s) |
| Immediate actions | 0/3 | absent |
| Testability | 0/3 | no test info |
| External dependency | 1/3 | external deps found |
| Data migration | 3/3 | no migration |