metrics

package
v0.1.98-pre-1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Enabled = true

Functions

func FlushPending

func FlushPending()

func RecordCommandContext added in v0.0.550

func RecordCommandContext(ctx context.Context)

func RecordCommandFinish added in v0.0.550

func RecordCommandFinish(cmd *cobra.Command)

func Send

func Send[T any](ctx context.Context, metricSlug string, value T)

func SendJson

func SendJson(ctx context.Context, metricSlug string, payload json.RawMessage)

func SendNoData

func SendNoData(ctx context.Context, metricSlug string)

func StartTiming

func StartTiming(ctx context.Context, metricSlug string) func()

func Started

func Started(ctx context.Context, metricSlug string)

func Status

func Status(ctx context.Context, metricSlug string, success bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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