janiussyafiq commented on code in PR #13659:
URL: https://github.com/apache/apisix/pull/13659#discussion_r3527514479


##########
apisix/plugins/ai-cache.lua:
##########
@@ -313,6 +315,12 @@ end
 
 
 function _M.log(conf, ctx)
+    if ctx.ai_cache_status then
+        exporter.inc_ai_cache_status(ctx, ctx.ai_cache_status, 
ctx.ai_cache_hit_layer)
+    end
+    if ctx.ai_cache_embedding_latency then
+        exporter.observe_ai_cache_embedding_latency(ctx, 
ctx.ai_cache_embedding_latency)
+    end

Review Comment:
   agreed, that'd be cleaner. fixed



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to