feat(transactions): add single-node transaction support with session-aware reads, commits, aborts, and transaction metrics
This commit is contained in:
@@ -255,6 +255,10 @@ async fn handle_get_metrics(
|
||||
"collections": total_collections,
|
||||
"oplogEntries": oplog_stats.total_entries,
|
||||
"oplogCurrentSeq": oplog_stats.current_seq,
|
||||
"sessions": ctx.sessions.len(),
|
||||
"activeTransactions": ctx.transactions.len(),
|
||||
"authEnabled": ctx.auth.enabled(),
|
||||
"authUsers": ctx.auth.user_count(),
|
||||
"uptimeSeconds": uptime_secs,
|
||||
}),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user