fix(registries): notification.queue.depth 행이 옮긴 worker 파일을 가리킨다

문제: main 99cc4f59(#38 병합) push run의 :app-bootstrap:documentContractTest가
MetricsRegistryCodeAlignmentTest.everyRowNamesTheMainFileThatRegistersIt에서
실패한다. #38의 2d274a684가 NotificationSchedulerWorker를
adapter:outbound:notification(platform/dispatch)에서
composition:notification-platform(composition/notification)으로 옮겼는데,
metrics.yaml의 notification.queue.depth 행 registered_by는 옛 경로를
가리킨다. 이 대조 시험은 main 단계(mainCheck)에서만 돌아 #38의 PR run은
초록이었다. #37은 이 파일을 건드리지 않았다.

방법: 코드가 맞다. 옮긴 것은 #38의 의도한 구조 변경이고 gauge는 새 파일
96줄에서 NotificationMetricName.QUEUE_DEPTH로 등록된다. 그래서 registry의
registered_by만 새 경로로 바꾼다.

같은 모양: #37·#38이 지우거나 옮긴 파일 27개의 옛 경로와 클래스 이름을
살아 있는 문서·registry에서 찾았다. 남은 것은 이 행 하나다.

검증: desktop, 트리 fcc67388, `./gradlew :app-bootstrap:documentContractTest
--rerun --no-build-cache` rc=0, 79개 통과(실패 0). 로그
~/be-main-red2-logs/c-doccontract.log. 수정 전 실패는 main run의 같은 태스크
(79개 중 1개 실패).

Fixes: 2d274a684e3a ("refactor(application)!: 시스템 쓰기와 운영자 연산을 유스케이스 계약 안으로 옮긴다")
This commit is contained in:
DongHyeonka
2026-11-18 21:03:54 +09:00
parent 99cc4f59ae
commit b43fd78c23
+1 -1
View File
@@ -875,7 +875,7 @@ metrics:
required_test: contract-verification:metrics-cardinality
source: "src/application/notification/src/main/java/dev/caskeleton/application/notification/platform/observation/NotificationMetricName.java"
constant: NotificationMetricName.QUEUE_DEPTH
registered_by: "src/adapter/outbound/notification/src/main/java/dev/caskeleton/adapter/outbound/notification/platform/dispatch/NotificationSchedulerWorker.java"
registered_by: "src/bootstrap/notification-platform/src/main/java/dev/caskeleton/composition/notification/NotificationSchedulerWorker.java"
# === outbound HTTP client (adapter:outbound:httpclient를 켤 때) ===
# Spring의 RestClient observation은 끄고 이 이름으로 기록한다(tag 이름도 이 leaf 것이다). attempt의 outcome은