Versions in this module Expand all Collapse all v0 v0.1.1 Nov 14, 2023 v0.1.0 Oct 2, 2023 Changes in this version + const COMPILATION_TIME + const DATA_DOCUMENTS_LOADED + const INPUT_IDX + const MODULES_LOADED + const PACKAGE + const POLICIES_LOADED + const POLICY_ERRORS + const PROVIDERS_LOAD_TIME + const RESULTS_PRODUCED + const RULES_EVALUATED + const RULE_EVAL_TIME + const RULE_SELECTION_TIME + const TOTAL_RULE_EVAL_TIME + type Buckets []float64 + type Counter interface + Add func(val float64) + Inc func() + func NewLocalCounter(name, description string, labels Labels) Counter + type Histogram interface + Observe func(val float64) + type Labels = map[string]string + func MergeLabels(labels ...Labels) Labels + type LocalCounter struct + func (l *LocalCounter) Add(val float64) + func (l *LocalCounter) Count() float64 + func (l *LocalCounter) Inc() + type LocalMetrics struct + func NewLocalMetrics(logger logging.Logger) *LocalMetrics + func (l *LocalMetrics) Counter(_ context.Context, name, description string, labels Labels) Counter + func (l *LocalMetrics) Log(ctx context.Context) + func (l *LocalMetrics) Timer(_ context.Context, name, description string, labels Labels) Timer + type LocalTimer struct + func (l *LocalTimer) Duration() time.Duration + func (l *LocalTimer) Record(d time.Duration) + type Metrics interface + Counter func(ctx context.Context, name, description string, labels Labels) Counter + Timer func(ctx context.Context, name, description string, labels Labels) Timer + type Timer interface + Record func(d time.Duration) + func NewLocalTimer(name, description string, labels Labels) Timer