Documentation ¶
Index ¶
Constants ¶
View Source
const ( TransactionStatusActive = "active" TransactionStatusCommitted = "committed" TransactionStatusRollbacked = "rollbacked" TransactionStatusTimeout = "timeout" )
Variables ¶
View Source
var ( GlobalTransactionCounter = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: "dbpack", Subsystem: "global_transaction", Name: "count", Help: "global transaction count", }, []string{"appid", "transactionname", "status"}) BranchTransactionCounter = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: "dbpack", Subsystem: "branch_transaction", Name: "count", Help: "branch transaction count", }, []string{"appid", "resourceid", "status"}) BranchTransactionTimer = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: "dbpack", Subsystem: "branch_transaction", Name: "timer", Help: "global transaction timer", }, []string{"appid", "resourceid", "status"}) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.