Show / Hide Table of Contents

Namespace Benday.CosmosDb.Diagnostics

Classes

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.

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.

In this article
Back to top Copyright © www.benday.com | info@benday.com