2023-12-05 23:13:57 +03:00
|
|
|
package stub
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2024-02-08 16:49:01 +03:00
|
|
|
"log/slog"
|
2023-12-05 23:13:57 +03:00
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
func HTTPClientObserveIgnore(ctx context.Context, log *slog.Logger, pkg, method string, statusCode int, err error, start time.Time) {
|
|
|
|
}
|
|
|
|
|
|
|
|
type Counter interface {
|
|
|
|
Inc()
|
|
|
|
}
|
|
|
|
|
|
|
|
type CounterIgnore struct{}
|
|
|
|
|
|
|
|
func (CounterIgnore) Inc() {}
|
|
|
|
|
|
|
|
type CounterVec interface {
|
|
|
|
IncLabels(labels ...string)
|
|
|
|
}
|
|
|
|
|
|
|
|
type CounterVecIgnore struct{}
|
|
|
|
|
|
|
|
func (CounterVecIgnore) IncLabels(labels ...string) {}
|
|
|
|
|
|
|
|
type Histogram interface {
|
|
|
|
Observe(float64)
|
|
|
|
}
|
|
|
|
|
|
|
|
type HistogramIgnore struct{}
|
|
|
|
|
|
|
|
func (HistogramIgnore) Observe(float64) {}
|
|
|
|
|
|
|
|
type HistogramVec interface {
|
|
|
|
ObserveLabels(v float64, labels ...string)
|
|
|
|
}
|
|
|
|
|
|
|
|
type HistogramVecIgnore struct{}
|
|
|
|
|
|
|
|
func (HistogramVecIgnore) ObserveLabels(v float64, labels ...string) {}
|