분별 통계 메트릭 로직 변경
- totoalCnt는 400시점으로 변경 - 시간 메트릭 생성 동작 기본값 false로 기본 처리하지 않도록 변경
This commit is contained in:
@@ -63,10 +63,11 @@ public class HourStatsAggregator {
|
|||||||
|
|
||||||
// 로그 시퀀스 100: 총 건수만 증가 (첫 호출)
|
// 로그 시퀀스 100: 총 건수만 증가 (첫 호출)
|
||||||
if (logSeq == 100) {
|
if (logSeq == 100) {
|
||||||
totalCnt.incrementAndGet();
|
// totalCnt.incrementAndGet();
|
||||||
}
|
}
|
||||||
// 로그 시퀀스 400: 응답시간 및 에러 타입 기록
|
// 로그 시퀀스 400: 응답시간 및 에러 타입 기록
|
||||||
else if (logSeq == 400) {
|
else if (logSeq == 400) {
|
||||||
|
totalCnt.incrementAndGet();
|
||||||
// 성공 여부 카운트
|
// 성공 여부 카운트
|
||||||
if (event.isSuccess()) {
|
if (event.isSuccess()) {
|
||||||
successCnt.incrementAndGet();
|
successCnt.incrementAndGet();
|
||||||
|
|||||||
+2
-1
@@ -63,10 +63,11 @@ public class MinuteStatsAggregator {
|
|||||||
|
|
||||||
// 로그 시퀀스 100: 총 건수만 증가 (첫 호출)
|
// 로그 시퀀스 100: 총 건수만 증가 (첫 호출)
|
||||||
if (logSeq == 100) {
|
if (logSeq == 100) {
|
||||||
totalCnt.incrementAndGet();
|
// totalCnt.incrementAndGet();
|
||||||
}
|
}
|
||||||
// 로그 시퀀스 400: 응답시간 및 에러 타입 기록
|
// 로그 시퀀스 400: 응답시간 및 에러 타입 기록
|
||||||
else if (logSeq == 400) {
|
else if (logSeq == 400) {
|
||||||
|
totalCnt.incrementAndGet();
|
||||||
// 성공 여부 카운트
|
// 성공 여부 카운트
|
||||||
if (event.isSuccess()) {
|
if (event.isSuccess()) {
|
||||||
successCnt.incrementAndGet();
|
successCnt.incrementAndGet();
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class ApiStatsConfig {
|
|||||||
/** 기본값 상수 */
|
/** 기본값 상수 */
|
||||||
private static final boolean DEFAULT_ENABLED = true;
|
private static final boolean DEFAULT_ENABLED = true;
|
||||||
private static final boolean DEFAULT_MINUTE_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;
|
private final PropManager propManager;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user