Interface CosmosDiagnosticsProcessor


public interface CosmosDiagnosticsProcessor
The Cosmos diagnostics processor interface. Implementations can log diagnostics or perform some metrics, but it is important that processing doesn't take much time since it is being called from all Cosmos operations.
Since:
3.9.0
Author:
radovanradic
  • Field Details

  • Method Details

    • processDiagnostics

      void processDiagnostics(String operationName, @Nullable @Nullable com.azure.cosmos.CosmosDiagnostics cosmosDiagnostics, @Nullable @Nullable String activityId, double requestCharge)
      Process diagnostics from the Cosmos response.
      Parameters:
      operationName - the operation name
      cosmosDiagnostics - the Cosmos diagnostics
      activityId - the activity id (will be null in case of cross partition queries)
      requestCharge - the request charge for the operation