client

package
v0.0.0-...-23a414b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 30 minutes
	METRICS_DAEMON_LOOP_DELAY_MS       uint32 = 30 * 60 * 1000
	METRICS_DAEMON_LOOP_DELAY_DURATION        = time.Duration(METRICS_DAEMON_LOOP_DELAY_MS)
)

Functions

func RunMetricsDaemonTaskLoop

func RunMetricsDaemonTaskLoop(
	ctx context.Context,
	logger log.Logger,
)

RunMetricsDaemonTaskLoop contains the logic to emit metrics about the application running.

func Start

func Start(
	ctx context.Context,
	logger log.Logger,
)

Start begins a job that periodically: 1) Emits metrics about app version and git commit. Note: the metrics daemon is such a simple go-routine that we don't bother implementing a health-check for this service. The task loop does not produce any errors because the telemetry calls themselves are not error-returning, so in effect this daemon would never become unhealthy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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