Versions in this module Expand all Collapse all v0 v0.6.1 Jul 31, 2023 v0.0.4 Jul 31, 2023 Changes in this version + func LogProcessor(profiles []*TagsProfile) error + func NewProfiler(processor Processor, interval, window time.Duration) *profiler + func Tag(ctx context.Context) + func Untag(ctx context.Context) + type Processor func(profiles []*TagsProfile) error + type Profiler interface + Lookup func(ctx context.Context, key string) (string, bool) + Pause func() + Prepare func(ctx context.Context) context.Context + Resume func() + Run func(ctx context.Context) (err error) + Stop func() + Tag func(ctx context.Context, tags ...string) context.Context + Untag func(ctx context.Context) + type TagsProfile struct + Key string + Percent float64 + Tags []string + Value int64