Section navigation

Public classSealed 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

Public constructor SlowQueryLog(double, TextWriter, bool)

Creates a slow query log that writes to the given TextWriter.

Public property IncludeExplain

Whether to include query explain output in log entries.

Public property ThresholdMs

Minimum elapsed milliseconds before a query is logged.

Public method Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Public method ToFile(double, string)

Creates a slow query log that appends to a file.