iop/apps/edge/internal/openai/single_request_metrics.go
toki dc9a9a8c59 feat(agent): 단일 요청 Agent 실행 경계를 구현한다
승인된 execution preset을 Edge 조정 경계와 Node workspace/tool 실행 경계로 연결해 단일 요청 수명주기와 관측 계약을 일관되게 처리한다.
2026-08-07 07:03:55 +09:00

18 lines
623 B
Go

package openai
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
// singleRequestIngressTotal counts accepted marked Anthropic HTTP admissions.
// It intentionally has no labels: request, principal, route, provider,
// credential, workspace, and stage identities are all forbidden here.
var singleRequestIngressTotal = promauto.NewCounter(prometheus.CounterOpts{
Name: "iop_anthropic_single_request_ingress_total",
Help: "Accepted marked Anthropic single-request ingress.",
})
func recordSingleRequestIngress() {
singleRequestIngressTotal.Inc()
}