WEBBOOK CHAPTER

외부 인터페이스 엔지니어링: 26장. 관측과 비용

26장. 관측과 비용

provider, operation, status class, error code, attempt, latency, circuit state, rate remaining, contract version을 관측한다. user/token/provider ID는 metric label에 넣지 않는다. provider request ID는 제한된 trace/log에 둔다.

호출 수×단가, cache hit, retry amplification, egress를 비용으로 본다. 비용 급증을 fraud·loop·cache miss와 연결한다. quota와 budget alert를 별도로 둔다.