We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a6ff71 commit 90510e5Copy full SHA for 90510e5
pkg/sql/conn_executor_exec.go
@@ -4201,13 +4201,12 @@ func (ex *connExecutor) recordTransactionFinish(
4201
txnStart crtime.Mono,
4202
txnErr error,
4203
) error {
4204
- recordingStart := timeutil.Now()
+ recordingStart := crtime.NowMono()
4205
defer func() {
4206
- recordingOverhead := timeutil.Since(recordingStart)
4207
ex.server.
4208
ServerMetrics.
4209
StatsMetrics.
4210
- SQLTxnStatsCollectionOverhead.RecordValue(recordingOverhead.Nanoseconds())
+ SQLTxnStatsCollectionOverhead.RecordValue(recordingStart.Elapsed().Nanoseconds())
4211
}()
4212
4213
txnEnd := timeutil.Now()
0 commit comments