분별 통계 메트릭 로직 변경

- totoalCnt는 400시점으로 변경
- 시간 메트릭 생성 동작 기본값 false로 기본 처리하지 않도록 변경
This commit is contained in:
curry772
2026-05-18 10:46:43 +09:00
parent 6dbe557584
commit c34a2c019b
3 changed files with 5 additions and 3 deletions
@@ -63,10 +63,11 @@ public class HourStatsAggregator {
// 로그 시퀀스 100: 총 건수만 증가 (첫 호출)
if (logSeq == 100) {
totalCnt.incrementAndGet();
// totalCnt.incrementAndGet();
}
// 로그 시퀀스 400: 응답시간 및 에러 타입 기록
else if (logSeq == 400) {
totalCnt.incrementAndGet();
// 성공 여부 카운트
if (event.isSuccess()) {
successCnt.incrementAndGet();
@@ -63,10 +63,11 @@ public class MinuteStatsAggregator {
// 로그 시퀀스 100: 총 건수만 증가 (첫 호출)
if (logSeq == 100) {
totalCnt.incrementAndGet();
// totalCnt.incrementAndGet();
}
// 로그 시퀀스 400: 응답시간 및 에러 타입 기록
else if (logSeq == 400) {
totalCnt.incrementAndGet();
// 성공 여부 카운트
if (event.isSuccess()) {
successCnt.incrementAndGet();
@@ -22,7 +22,7 @@ public class ApiStatsConfig {
/** 기본값 상수 */
private static final boolean DEFAULT_ENABLED = true;
private static final boolean DEFAULT_MINUTE_ENABLED = true;
private static final boolean DEFAULT_HOUR_ENABLED = true;
private static final boolean DEFAULT_HOUR_ENABLED = false;
private final PropManager propManager;