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
    • Method Detail

      • processDiagnostics

        void processDiagnostics​(java.lang.String operationName,
                                @Nullable
                                com.azure.cosmos.CosmosDiagnostics cosmosDiagnostics,
                                @Nullable
                                java.lang.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