proxy-pool/internal/domain/health/metrics.go
youfak b35092ccdd
Some checks are pending
ci / proto (push) Waiting to run
ci / test (ubuntu-latest) (push) Waiting to run
ci / test (windows-latest) (push) Waiting to run
ci / race (push) Waiting to run
ci / integration (push) Waiting to run
feat: expose checker task metrics
2026-08-02 09:24:46 +08:00

17 lines
537 B
Go

package health
// TaskMetricsObserver accepts only the low-cardinality dimensions emitted by
// Checker task processing. Implementations must not add task, proxy, checker,
// endpoint, target URL, or credential values as metric labels.
type TaskMetricsObserver interface {
ObserveTaskDispatch(Level, int)
ObserveObservation(Level, ObservationMetricResult)
}
type ObservationMetricResult string
const (
ObservationMetricAccepted ObservationMetricResult = "accepted"
ObservationMetricRejected ObservationMetricResult = "rejected"
)