metrics

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder interface {
	RecordCommandProcessed(ctx context.Context, editor string, setting *keymapv1.Keymap)
	Shutdown(ctx context.Context) error
}

Recorder is the interface for recording metrics.

func New

func New(
	ctx context.Context,
	version string,
	logger *slog.Logger,
	mappingConfig *mappings.MappingConfig,
) (Recorder, error)

New creates a new Recorder and initializes the OpenTelemetry provider.

func NewNoop

func NewNoop() Recorder

NewNoop returns a no-op Recorder.

Jump to

Keyboard shortcuts

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