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
- func ConfigDegraded(ctx context.Context, degraded bool)
- func ConfigUpdate(ctx context.Context, outcome string)
- func DependencyProvide(ctx context.Context, node, outcome string)
- func DependencyReady(ctx context.Context, node string, ready bool)
- func Panic(ctx context.Context, where string)
- func TransportConnected(ctx context.Context, transport string, connected bool)
Constants ¶
const ( OK = "ok" Error = "error" Applied = "applied" Rejected = "rejected" )
Outcomes shared by the counters.
const Meter = "github.com/backplane-labs/backplane"
Meter name.
Variables ¶
This section is empty.
Functions ¶
func ConfigDegraded ¶
ConfigDegraded records whether the Consul layer is stale.
func ConfigUpdate ¶
ConfigUpdate counts an applied or rejected configuration update.
func DependencyProvide ¶
DependencyProvide counts a provide attempt.
func DependencyReady ¶
DependencyReady records whether node's dependency is provided.
Types ¶
This section is empty.