Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public Map<String, String> getResponseHeaders() {
*
* @return diagnostics information for the current request to Azure Cosmos DB service.
*/
public CosmosResponseDiagnostics getCosmosResponseDiagnosticsString() {
public CosmosResponseDiagnostics getCosmosResponseDiagnostics() {
return resourceResponseWrapper.getCosmosResponseDiagnostics();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ public void sessionTokenConsistencyCollectionDeleteCreateSameName() {
CosmosItemRequestOptions options = new CosmosItemRequestOptions();
options.setPartitionKey(new PartitionKey("mypkValue"));
CosmosAsyncItemResponse readDocumentResponse = item.read(options).block();
logger.info("Client 1 READ Document Client Side Request Statistics {}", readDocumentResponse.getCosmosResponseDiagnosticsString());
logger.info("Client 1 READ Document Client Side Request Statistics {}", readDocumentResponse.getCosmosResponseDiagnostics());
logger.info("Client 1 READ Document Latency {}", readDocumentResponse.getRequestLatency());

BridgeInternal.setProperty(document, "name", "New Updated Document");
CosmosAsyncItemResponse upsertDocumentResponse = collection.upsertItem(document).block();
logger.info("Client 1 Upsert Document Client Side Request Statistics {}", upsertDocumentResponse.getCosmosResponseDiagnosticsString());
logger.info("Client 1 Upsert Document Client Side Request Statistics {}", upsertDocumentResponse.getCosmosResponseDiagnostics());
logger.info("Client 1 Upsert Document Latency {}", upsertDocumentResponse.getRequestLatency());

// DELETE the existing collection
Expand All @@ -285,7 +285,7 @@ public void sessionTokenConsistencyCollectionDeleteCreateSameName() {
createDocument(collection2, newDocument);

readDocumentResponse = client1.getDatabase(dbId).getContainer(collectionId).getItem(newDocument.getId(), newDocument.get("mypk")).read().block();
logger.info("Client 2 READ Document Client Side Request Statistics {}", readDocumentResponse.getCosmosResponseDiagnosticsString());
logger.info("Client 2 READ Document Client Side Request Statistics {}", readDocumentResponse.getCosmosResponseDiagnostics());
logger.info("Client 2 READ Document Latency {}", readDocumentResponse.getRequestLatency());

CosmosItemProperties readDocument = readDocumentResponse.getProperties();
Expand Down