Versions in this module Expand all Collapse all v2 v2.4.3 Mar 21, 2022 Changes in this version + var ErrIntOverflowStats = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthStats = fmt.Errorf("proto: negative length found during unmarshaling") + func IsEnabled(ctx context.Context) bool + func ShouldTrackHTTPGRPCResponse(r *httpgrpc.HTTPResponse) bool + type Stats struct + FetchedChunkBytes uint64 + FetchedSeriesCount uint64 + WallTime time.Duration + func ContextWithEmptyStats(ctx context.Context) (*Stats, context.Context) + func FromContext(ctx context.Context) *Stats + func (*Stats) Descriptor() ([]byte, []int) + func (*Stats) ProtoMessage() + func (m *Stats) GetFetchedChunkBytes() uint64 + func (m *Stats) GetFetchedSeriesCount() uint64 + func (m *Stats) GetWallTime() time.Duration + func (m *Stats) Marshal() (dAtA []byte, err error) + func (m *Stats) MarshalTo(dAtA []byte) (int, error) + func (m *Stats) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Stats) Reset() + func (m *Stats) Size() (n int) + func (m *Stats) Unmarshal(dAtA []byte) error + func (m *Stats) XXX_DiscardUnknown() + func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Stats) XXX_Merge(src proto.Message) + func (m *Stats) XXX_Size() int + func (m *Stats) XXX_Unmarshal(b []byte) error + func (s *Stats) AddFetchedChunkBytes(bytes uint64) + func (s *Stats) AddFetchedSeries(series uint64) + func (s *Stats) AddWallTime(t time.Duration) + func (s *Stats) LoadFetchedChunkBytes() uint64 + func (s *Stats) LoadFetchedSeries() uint64 + func (s *Stats) LoadWallTime() time.Duration + func (s *Stats) Merge(other *Stats) + func (this *Stats) Equal(that interface{}) bool + func (this *Stats) GoString() string + func (this *Stats) String() string + type WallTimeMiddleware struct + func NewWallTimeMiddleware() WallTimeMiddleware + func (m WallTimeMiddleware) Wrap(next http.Handler) http.Handler Other modules containing this package github.com/pao214/loki/v3