metrics

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivePromise

func ActivePromise(ctx context.Context)

ActivePromise increases the promises.current metric. This should be called when a promise is created.

func Init

func Init(meter metric.Meter) error

Init initializes the arn sdk model metrics. This should only be called by the tattler constructor or tests.

func Promise

func Promise(ctx context.Context, err error)

Promise increases the promises.completed metric with timeout label. This also decrements the current promise count. This should be called on promise completion.

func SendEventFailure

func SendEventFailure(ctx context.Context, elapsed time.Duration, inline bool, dataSize int64)

SendEventFailure increases the events.sent metric with success == false and records the latency.

func SendEventSuccess

func SendEventSuccess(ctx context.Context, elapsed time.Duration, inline bool, dataSize int64)

SendEventSuccess increases the events.sent metric with success == true and records the latency.

Types

This section is empty.

Jump to

Keyboard shortcuts

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