tysonnorris 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_r329686031
 
 

 ##########
 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:
   maybe should avoid calling `mapped.compactPrint` twice? 

----------------------------------------------------------------
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

Reply via email to