승인된 execution preset을 Edge 조정 경계와 Node workspace/tool 실행 경계로 연결해 단일 요청 수명주기와 관측 계약을 일관되게 처리한다.
18 lines
623 B
Go
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()
|
|
}
|