Rowles.LeanCorpus.Diagnostics
Classes
DefaultMetricsCollector
Lock-free metrics collector using Interlocked operations.
FileSystemDiagnostics
Process-wide counters for low-level filesystem operations.
IndexSizeCalculator
Calculates and reports the on-disk size of an index and its segments.
IndexSizeReport
Overall index size report.
MeterMetricsCollector
IMetricsCollector backed by Meter. Instruments are published under the meter name
Rowles.LeanCorpusand can be consumed by any MeterListener — including OpenTelemetry OTLP exporters.
MetricsSnapshot
Point-in-time snapshot of operational metrics.
NullMetricsCollector
No-op metrics collector — the default when no metrics are configured.
SearchAnalytics
Thread-safe ring buffer of per-search events. Events are captured in Search(Query, int) when wired via SearchAnalytics.
SearchEvent
A single search event captured by SearchAnalytics.
SegmentSizeReport
Per-segment size breakdown.
SlowQueryLog
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.
Structs
FileSystemDiagnosticsSnapshot
Point-in-time process-wide filesystem counters.
Interfaces
IMetricsCollector
Interface for collecting operational metrics from IndexSearcher, IndexWriter, and QueryCache.