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 SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidprocessDiagnostics(String operationName, @Nullable com.azure.cosmos.CosmosDiagnostics cosmosDiagnostics, @Nullable String activityId, double requestCharge) Process diagnostics from the Cosmos response.
- 
Field Details- 
CREATE_DATABASE_IF_NOT_EXISTS- See Also:
 
- 
REPLACE_DATABASE_THROUGHPUT- See Also:
 
- 
CREATE_CONTAINER_IF_NOT_EXISTS- See Also:
 
- 
REPLACE_CONTAINER_THROUGHPUT- See Also:
 
- 
REPLACE_CONTAINER- See Also:
 
- 
QUERY_ITEMS- See Also:
 
- 
EXECUTE_BULK- See Also:
 
- 
CREATE_ITEM- See Also:
 
- 
REPLACE_ITEM- See Also:
 
- 
DELETE_ITEM- See Also:
 
 
- 
- 
Method Details- 
processDiagnosticsvoid 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
 
 
-