Interface ResponseDiagnosticsProcessor


public interface ResponseDiagnosticsProcessor
Interface for processing cosmosDB response
  • Method Details

    • processResponseDiagnostics

      void processResponseDiagnostics(@Nullable ResponseDiagnostics responseDiagnostics)
      Gets called after receiving response from CosmosDb. Response Diagnostics are collected from API responses and then set in ResponseDiagnostics object.

      In case of missing diagnostics from CosmosDb, responseDiagnostics will be null.

      NOTE: Since processResponseDiagnostics() API will get called in every cosmos spring data implementation API to capture the diagnostics details, it is highly recommended to not have any long running / CPU intensive work in the implementation of this API.

      Parameters:
      responseDiagnostics - responseDiagnostics object containing CosmosDb response diagnostics information