metrics

package
v0.26.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 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