metrics

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Metrics = newCelMetrics()

Metrics provides access to CEL metrics.

Functions

This section is empty.

Types

type CelMetrics

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

func (*CelMetrics) ObserveCompilation

func (m *CelMetrics) ObserveCompilation(elapsed time.Duration)

ObserveCompilation records a CEL compilation with the time the compilation took.

func (*CelMetrics) ObserveEvaluation

func (m *CelMetrics) ObserveEvaluation(elapsed time.Duration)

ObserveEvaluation records a CEL evaluation with the time the evaluation took.

Jump to

Keyboard shortcuts

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