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 ActivityHandled(ctx context.Context, activity, outcome string, took time.Duration)
- 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 EventPublished(ctx context.Context, event, outcome string)
- func HookCall(ctx context.Context, hook, outcome string, took time.Duration)
- func Panic(ctx context.Context, where string)
- func ReactorHandled(ctx context.Context, consumer, outcome string, took time.Duration)
- func ReactorPending(ctx context.Context, consumer string, waiting, unacked int64)
- func ReactorRedelivered(ctx context.Context, consumer string)
- func TransportConnected(ctx context.Context, transport string, connected bool)
Constants ¶
const ( OK = "ok" Error = "error" Applied = "applied" Rejected = "rejected" NoBinding = "no_binding" Timeout = "timeout" Ack = "ack" Nak = "nak" Dead = "dead" Terminal = "terminal" )
Outcomes shared by the counters.
const Meter = "github.com/backplane-labs/backplane"
Meter name.
Variables ¶
This section is empty.
Functions ¶
func ActivityHandled ¶
ActivityHandled records an activity execution.
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.
func EventPublished ¶
EventPublished counts a publish.
func ReactorHandled ¶
ReactorHandled records a reactor delivery.
func ReactorPending ¶ added in v0.6.111
ReactorPending records the consumer's lag: events not delivered yet and events delivered but not settled.
func ReactorRedelivered ¶ added in v0.6.111
ReactorRedelivered counts a delivery of an event the consumer had been given before.
Types ¶
This section is empty.