metrics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 3 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

Index

Constants

This section is empty.

Variables

View Source
var BalanceCreatedTotal metric.Int64Counter

BalanceCreatedTotal counts newly created balances.

View Source
var ChainBacklog metric.Int64Gauge

ChainBacklog is the number of transactions still waiting to be sealed into the hash chain (the chainer's backlog).

View Source
var ChainHeadSeq metric.Int64Gauge

ChainHeadSeq is the sequence number of the chain head — total transactions sealed.

View Source
var ChainLagSeconds metric.Float64Gauge

ChainLagSeconds is the age of the chain head: seconds since the chainer last advanced it.

View Source
var HotpairsContentionTotal metric.Int64Counter

HotpairsContentionTotal counts lock contention events.

View Source
var HotpairsLaneRoutedTotal metric.Int64Counter

HotpairsLaneRoutedTotal counts transactions routed to queue lanes. Attributes: lane (normal, hot)

View Source
var InflightCommitTotal metric.Int64Counter

InflightCommitTotal counts committed inflight transactions.

View Source
var InflightVoidTotal metric.Int64Counter

InflightVoidTotal counts voided inflight transactions.

View Source
var QueueBackpressureRejectedTotal metric.Int64Counter

QueueBackpressureRejectedTotal counts enqueue attempts rejected by backpressure.

View Source
var QueueEnqueuedTotal metric.Int64Counter

QueueEnqueuedTotal counts transactions enqueued for async processing. Attributes: queue_name

View Source
var QueueProcessingDuration metric.Float64Histogram

QueueProcessingDuration records the time spent processing a transaction in the worker. Attributes: result (success, error, retry)

View Source
var SearchBackpressureRetryTotal metric.Int64Counter

SearchBackpressureRetryTotal counts indexing operations deferred after Typesense rejects a write at its native memory limit. Attribute: source (worker, reindex)

View Source
var TransactionBatchSize metric.Int64Histogram

TransactionBatchSize records the number of transactions in a coalesced batch.

View Source
var TransactionBatchTotal metric.Int64Counter

TransactionBatchTotal counts coalescing attempts. Attributes: result (success, failure, skipped)

View Source
var TransactionDuration metric.Float64Histogram

TransactionDuration records the wall-clock time of RecordTransaction(). Attributes: status

View Source
var TransactionRejectedTotal metric.Int64Counter

TransactionRejectedTotal counts rejected transactions broken down by reason. Attributes: reason (insufficient_funds, overdraft_limit, lock_contention, max_retries)

View Source
var TransactionTotal metric.Int64Counter

TransactionTotal counts transactions that reach a terminal or significant state. Attributes: status (APPLIED, REJECTED, INFLIGHT, VOID, COMMIT), currency

View Source
var WorkerRetriesTotal metric.Int64Counter

WorkerRetriesTotal counts worker retry events. Attributes: reason (insufficient_funds, lock_contention, other)

Functions

func Init

func Init() error

Init creates all metric instruments. It should be called once during application startup. Safe to call even when observability is disabled

Types

This section is empty.

Jump to

Keyboard shortcuts

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