Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBurrowStatsCounter ¶
func NewBurrowStatsCounter(logger log.Logger, reg prometheus.Registerer, name string, options ...Option) *burrowStatsCounter
NewBurrowStatsCounter creates a new StatsCounter.
RecordLoadSuccess and RecordLoadError methods are called by Get methods on a successful and failed load respectively. Get method only called by LoadingCache implementation.
Types ¶
type Option ¶
type Option func(c *burrowStatsCounter)
Option add options for default Cache.
func WithTrackLoadingCacheStats ¶
func WithTrackLoadingCacheStats() Option
WithTrackLoadingCacheStats enables tracking of loading cache stats. It is disabled by default.
Click to show internal directories.
Click to hide internal directories.