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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processDiagnostics
(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
-
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 namecosmosDiagnostics
- the Cosmos diagnosticsactivityId
- the activity id (will be null in case of cross partition queries)requestCharge
- the request charge for the operation
-