Class 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.
Inherited Members
Namespace: Benday.CosmosDb.Diagnostics
Assembly: Benday.CosmosDb.dll
Syntax
public sealed class CosmosRepositoryDiagnosticsOptions
Properties
| Edit this page View SourceCaptureIndexMetrics
When true, the repository sets
QueryRequestOptions.PopulateIndexMetrics = true on every query
it issues, and copies FeedResponse.IndexMetrics into the
IndexMetrics field for sinks
to record. Defaults to false — Microsoft recommends only
enabling this while debugging slow queries because it adds
measurable RU and latency overhead per request.
Declaration
public bool CaptureIndexMetrics { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |