Versions in this module Expand all Collapse all v1 v1.1.0 Apr 23, 2026 Changes in this version + func Gather() []*dto.MetricFamily + type CounterSmoother struct + Alpha float64 + func (s *CounterSmoother) Update(currentTotal float64) float64 + type RequestsCodeTotal struct + Code string + Count float64 + func CollectorRequestsCodeTotal() []*RequestsCodeTotal v1.0.0 Jan 20, 2026 Changes in this version + func MustParseRequestID(h http.Header) string + func NewContext(ctx context.Context, metric *RequestMetric) context.Context + func RequestID() log.Valuer + type RequestMetric struct + CacheStatus string + FirstResponseTime time.Time + RecvReq uint64 + RemoteAddr string + RequestID string + SentResp uint64 + StartAt time.Time + StoreUrl string + func FromContext(ctx context.Context) *RequestMetric + func WithRequestMetric(req *http.Request) (*http.Request, *RequestMetric) + func (r *RequestMetric) Clone() *RequestMetric