chetanmeh commented on a change in pull request #4652: Capture document size, RU usage, retry stats for get and put in CosmosDB URL: https://github.com/apache/openwhisk/pull/4652#discussion_r329873752
########## File path: common/scala/src/main/scala/org/apache/openwhisk/core/database/cosmosdb/CosmosDBArtifactStore.scala ########## @@ -476,10 +488,11 @@ class CosmosDBArtifactStore[DocumentAbstraction <: DocumentSerializer](protected (clusterId, clusterIdValue)) val fieldsToRemove = Seq(_id, _rev) val mapped = transform(json, fieldsToAdd, fieldsToRemove) + val jsonString = mapped.compactPrint val doc = new Document(mapped.compactPrint) Review comment: Missed that while refactoring. Reused existing computed json ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services