Namespace Benday.CosmosDb.Diagnostics
Classes
CosmosDiagnosticsRegistry
Singleton registry that holds per-entity-type diagnostic options for
CosmosRepository<T>. Repositories resolve this from DI in
their constructor and look up their own options via
GetFor<TEntity>().
CosmosFileLogSinkOptions
Configuration options for FileCosmosQueryLogSink.
CosmosQueryDiagnostics
Structured payload describing a single Cosmos DB query execution event.
Delivered to CosmosRepository<T>.OnQueryDiagnostics for point
operations, per-page feed responses, and query totals.
CosmosRepositoryDiagnosticsOptions
Per-entity diagnostics toggles read by CosmosRepository<T> at
query time. Configure these through the
ConfigureDiagnostics<TEntity>(Action<CosmosRepositoryDiagnosticsOptions>)
and ConfigureDiagnosticsDefault(Action<CosmosRepositoryDiagnosticsOptions>)
helpers; the repository looks up its options from
CosmosDiagnosticsRegistry in its constructor.
FileCosmosQueryLogSink
An ICosmosQueryLogSink that appends each diagnostics event as a single line of JSON (NDJSON / JSON Lines) to a file.
NoOpCosmosQueryLogSink
Default implementation of ICosmosQueryLogSink that discards every event. Registered automatically by the library's DI setup as the default sink when no other implementation is provided.
Interfaces
ICosmosQueryLogSink
A sink for Cosmos query diagnostics. Implementations receive a CosmosQueryDiagnostics event for every query execution the library captures — point operations, feed response pages, and query totals.
Enums
CosmosQueryEventKind
Distinguishes the three kinds of events that CosmosQueryDiagnostics can represent. Sinks use the kind to route, filter, and aggregate events.