Skip to content

[Fix] Sentry trace metric 시계열 집계 오류 수정 - #494

Merged
Roy-wonji merged 1 commit into
devfrom
fix/sentry-tracemetrics-count
Sep 14, 2026
Merged

Roy-wonji merged 1 commit into
devfrom
fix/sentry-tracemetrics-count

Conversation

@Roy-wonji

Copy link
Copy Markdown
Contributor

#️⃣ 연관된 이슈

📝 작업 내용

🐛 Fix

내용 검증
Sentry tracemetrics 시계열 집계식을 count(metric)으로 수정 Picke iOS/Android 실제 API HTTP 200
데이터셋별 집계식 회귀 테스트 추가 SentryClientTest 통과

📌 공유 사항

Sentry Explore API는 일반 데이터셋의 count()는 허용하지만 tracemetrics에서는 인자 1개를 요구해 HTTP 400을 반환합니다. 실제 운영 토큰으로 count(metric) 응답이 두 프로젝트 모두 200임을 확인했습니다.

✅ 체크리스트

  • 개발 브랜치 기준으로 수정했습니다.
  • 대상 테스트와 git diff --check를 통과했습니다.
  • 비밀값을 출력하지 않고 실제 Sentry 응답 상태를 확인했습니다.

💬 리뷰 요구사항

데이터셋별 yAxis 분기가 Sentry API 계약에 맞는지 확인 부탁드립니다.

tracemetrics 데이터셋은 인자 없는 count를 거절하므로 metric 필드를 명시해 집계한다.

Constraint: Sentry Explore API가 tracemetrics count()를 HTTP 400으로 거절

Rejected: tracemetrics 카드 제거 | 활성 계측 데이터를 관리자에게 보여줘야 함

Confidence: high

Scope-risk: narrow

Directive: tracemetrics 집계식은 count(metric)을 유지

Tested: SentryClientTest; live Sentry iOS and Android HTTP 200; git diff --check

Not-tested: authenticated AdminWeb visual data comparison
@Roy-wonji
Roy-wonji merged commit df9acca into dev Sep 14, 2026
1 check passed
@Roy-wonji
Roy-wonji deleted the fix/sentry-tracemetrics-count branch September 14, 2026 03:04
Roy-wonji added a commit that referenced this pull request Sep 14, 2026
## #️⃣ 연관된 이슈

- #494

## 📝 작업 내용

### 🐛 Fix

| 내용 | PR |
|------|-----|
| Sentry `tracemetrics` 시계열을 `count(metric)`으로 조회해 400 응답 제거 | #494 |
| 일반 데이터셋과 trace metric의 집계식 차이를 회귀 테스트로 고정 | #494 |

## 📌 공유 사항

> 1. 기존 `count()`는 Sentry가 `Invalid number of arguments for count`로 거절해
AdminWeb에 `UNAVAILABLE`로 표시됐습니다.
> 2. `count(metric)`은 Picke iOS/Android 프로젝트 모두 실제 Sentry API HTTP 200을
확인했습니다.
> 3. PR #494 CI와 개발 Railway `dev@df9acca` 배포가 성공했습니다.

## ✅ 체크리스트

- [x] dev 브랜치에 먼저 반영했습니다.
- [x] 개발 Railway 배포를 확인했습니다.
- [x] SentryClient 대상 테스트를 통과했습니다.
- [x] 실제 Sentry iOS/Android 응답 상태를 확인했습니다.

## 📸 스크린샷

- AdminWeb Sentry 탭의 `커스텀 메트릭 / tracemetrics` 카드가 수정된 Server 응답을 사용합니다.

## 💬 리뷰 요구사항

> `tracemetrics`만 `count(metric)`을 사용하고 나머지 데이터셋은 기존 `count()`를 유지하는 분기를
확인 부탁드립니다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant