
SlowQueryLog
- Namespace
- Rowles.LeanCorpus.Diagnostics
- Assembly
- Rowles.LeanCorpus.dll
Logs individual queries that exceed a configurable latency threshold. Output is one JSON object per line (JSON Lines format). Writes are offloaded to a background channel consumer so slow disk I/O never blocks the search hot path.
public sealed class SlowQueryLog : IDisposable
- Inheritance
-
SlowQueryLog
- Implements
SlowQueryLog(double, TextWriter, bool)
Creates a slow query log that writes to the given TextWriter.
IncludeExplain
Whether to include query explain output in log entries.
ThresholdMs
Minimum elapsed milliseconds before a query is logged.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
ToFile(double, string)
Creates a slow query log that appends to a file.