Show / Hide Table of Contents

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.

Inheritance
object
CosmosRepositoryDiagnosticsOptions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.CosmosDb.Diagnostics
Assembly: Benday.CosmosDb.dll
Syntax
public sealed class CosmosRepositoryDiagnosticsOptions

Properties

| Edit this page View Source

CaptureIndexMetrics

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
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com