Package com.azure.cosmos
Class CosmosDiagnosticsRequestInfo
java.lang.Object
com.azure.cosmos.CosmosDiagnosticsRequestInfo
This class represents diagnostic information for transport requests (calls to a replica in direct mode, calls to
the Gateway for example to get metadata like physical addresses of replica for a partition.
-
Method Summary
Modifier and TypeMethodDescriptionGets the Activity used to track this request in the Cosmos DB service.Gets the backend latency if available or null when backend latency isn't available for a requestGets the total duration for processing this request.Gets the identifier for the physical partition/shard this request was processed in or null when the request was not targeting a replica/partition directly.Gets the PartitionKeyRangeId for the physical partition/shard this request was processed in or null when the request was not targeting a replica/partition directly.Gets more granular information about different stages of the request pipeline.Gets the type of requestGets the start time of the request.
-
Method Details
-
getActivityId
Gets the Activity used to track this request in the Cosmos DB service.- Returns:
- the Activity used to track this request in the Cosmos DB service.
-
getPartitionId
Gets the identifier for the physical partition/shard this request was processed in or null when the request was not targeting a replica/partition directly.- Returns:
- the identifier for the physical partition/shard this request was processed in or null when the request was not targeting a replica/partition directly.
-
getPartitionKeyRangeId
Gets the PartitionKeyRangeId for the physical partition/shard this request was processed in or null when the request was not targeting a replica/partition directly.- Returns:
- the PartitionKeyRangeId for the physical partition/shard this request was processed in or null when the request was not targeting a replica/partition directly.
-
getRequestType
Gets the type of request- Returns:
- the type of the request
-
getStartTime
Gets the start time of the request.- Returns:
- the start time of the request.
-
getDuration
Gets the total duration for processing this request.- Returns:
- the total duration for processing this request.
-
getBackendLatency
Gets the backend latency if available or null when backend latency isn't available for a request- Returns:
- the backend latency if available or null when backend latency isn't available for a request
-
getRequestPipelineEvents
Gets more granular information about different stages of the request pipeline.- Returns:
- more granular information about different stages of the request pipeline.
-