Skip to content

Commit d313d50

Browse files
committed
Format latency as n0 per rest of system
1 parent 73bd648 commit d313d50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Equinox.CosmosStore/CosmosStoreLinq.fs

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module Internal =
9595
let interval = StopwatchInterval(startTicks, System.Diagnostics.Stopwatch.GetTimestamp())
9696
let log = let evt = Log.Metric.Index { database = container.Database.Id; container = container.Id; stream = cat + FsCodec.StreamName.Category.SeparatorStr
9797
interval = interval; bytes = totalOds; count = items; ru = totalRu } in log |> Log.event evt
98-
log.Information("EqxCosmos {action:l} {count} ({trips}r {totalRtt:f0}ms; {rdc}i {rds:f2}>{ods:f2} MiB) {rc:f2} RU {latency} ms",
98+
log.Information("EqxCosmos {action:l} {count} ({trips}r {totalRtt:f0}ms; {rdc}i {rds:f2}>{ods:f2} MiB) {rc:f2} RU {lat:n0} ms",
9999
"Index", items, responses, totalRtt.TotalMilliseconds, totalRdc, miB totalRds, miB totalOds, totalRu, interval.ElapsedMilliseconds) }
100100
/// Runs a query that can by hydrated as 'T
101101
let enum<'T> (log: ILogger) (container: Container) cat (queryDefinition: QueryDefinition): TaskSeq<'T> =
@@ -117,7 +117,7 @@ module Internal =
117117
let totalOds, totalRu = m.OutputDocumentSize, rsp.RequestCharge
118118
let log = let evt = Log.Metric.Index { database = container.Database.Id; container = container.Id; stream = cat + FsCodec.StreamName.Category.SeparatorStr
119119
interval = interval; bytes = int totalOds; count = -1; ru = totalRu } in log |> Log.event evt
120-
log.Information("EqxCosmos {action:l} {cat} {count} ({rdc}i {rds:f2}>{ods:f2} MiB) {rc} RU {latency} ms",
120+
log.Information("EqxCosmos {action:l} {cat} {count} ({rdc}i {rds:f2}>{ods:f2} MiB) {rc} RU {lat:n0} ms",
121121
op, cat, summary, m.RetrievedDocumentCount, miB m.RetrievedDocumentSize, miB totalOds, totalRu, interval.ElapsedMilliseconds)
122122
return res }
123123
/// Runs query.CountAsync, with instrumentation equivalent to what query provides

0 commit comments

Comments
 (0)