Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error defines the metrics chore errors class. Error = errs.Class("metrics") )
Functions ¶
This section is empty.
Types ¶
type Chore ¶
Chore implements the metrics chore.
architecture: Chore
type Counter ¶
type Counter struct { // number of objects that has at least one remote segment RemoteObjects int64 // number of objects that has all inline segments InlineObjects int64 // contains filtered or unexported fields }
Counter implements the segment loop observer interface for data science metrics collection.
architecture: Observer
func NewCounter ¶
func NewCounter() *Counter
NewCounter instantiates a new counter to be subscribed to the metainfo loop.
func (*Counter) InlineSegment ¶
func (counter *Counter) InlineSegment(ctx context.Context, segment *segmentloop.Segment) (err error)
InlineSegment increments the count for inline objects.
func (*Counter) LoopStarted ¶ added in v1.27.3
LoopStarted is called at each start of a loop.
func (*Counter) RemoteSegment ¶
func (counter *Counter) RemoteSegment(ctx context.Context, segment *segmentloop.Segment) (err error)
RemoteSegment increments the count for objects with remote segments.
Click to show internal directories.
Click to hide internal directories.