analytics

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisSink

type RedisSink struct {
	// contains filtered or unexported fields
}

RedisSink writes execution counts to Redis. Best-effort: errors are logged internally and never propagated.

func NewRedisSink

func NewRedisSink(client *redis.Client) *RedisSink

NewRedisSink creates a new Redis analytics sink.

func (*RedisSink) Record

func (s *RedisSink) Record(ctx context.Context, event domain.TriggerEvent, config domain.AnalyticsConfig)

Record increments the execution count for the given event's minute bucket. Returns immediately if analytics is not enabled. Errors are logged but never returned; analytics must not affect dispatch correctness.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL