Rowles.LeanLucene.Diagnostics
Classes
DefaultMetricsCollector
Lock-free metrics collector using Interlocked operations.
IndexSizeCalculator
Calculates and reports the on-disk size of an index and its segments.
IndexSizeReport
Overall index size report.
LeanLuceneActivitySource
Shared System.Diagnostics.ActivitySource for LeanLucene instrumentation. Activities are only allocated when a listener is attached — zero overhead otherwise.
MeterMetricsCollector
IMetricsCollector backed by System.Diagnostics.Metrics.Meter. Instruments are published under the meter name
Rowles.LeanLuceneand can be consumed by any System.Diagnostics.Metrics.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).
Interfaces
IMetricsCollector
Interface for collecting operational metrics from IndexSearcher, IndexWriter, and QueryCache.