metrics

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package metrics is the SDK's own instrumentation, on meter github.com/backplane-labs/backplane. Instruments are created once on the global provider, which delegates to the one telemetry installs, so they may be used before telemetry starts.

Index

Constants

View Source
const (
	OK       = "ok"
	Error    = "error"
	Applied  = "applied"
	Rejected = "rejected"
)

Outcomes shared by the counters.

View Source
const Meter = "github.com/backplane-labs/backplane"

Meter name.

Variables

This section is empty.

Functions

func ConfigDegraded

func ConfigDegraded(ctx context.Context, degraded bool)

ConfigDegraded records whether the Consul layer is stale.

func ConfigUpdate

func ConfigUpdate(ctx context.Context, outcome string)

ConfigUpdate counts an applied or rejected configuration update.

func DependencyProvide

func DependencyProvide(ctx context.Context, node, outcome string)

DependencyProvide counts a provide attempt.

func DependencyReady

func DependencyReady(ctx context.Context, node string, ready bool)

DependencyReady records whether node's dependency is provided.

func Panic

func Panic(ctx context.Context, where string)

Panic counts a recovered panic.

func TransportConnected

func TransportConnected(ctx context.Context, transport string, connected bool)

TransportConnected records SDK transport connectivity.

Types

This section is empty.

Jump to

Keyboard shortcuts

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