From b9efb96c1de1e8394131846d71e3d5c859d56376 Mon Sep 17 00:00:00 2001 From: brkolla Date: Thu, 5 May 2016 09:22:15 -0400 Subject: [PATCH] Add new metric (histogram) to track number of reads using _bulk_get --- src/chttpd_db.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl index 9347c1a..cc113ab 100644 --- a/src/chttpd_db.erl +++ b/src/chttpd_db.erl @@ -448,6 +448,7 @@ db_req(#httpd{method='POST', path_parts=[_, <<"_bulk_get">>]}=Req, Db) -> undefined -> throw({bad_request, <<"Missing JSON list of 'docs'.">>}); Docs -> + couch_stats:update_histogram([couchdb, httpd, bulk_reads], length(Docs)), #doc_query_args{ options = Options } = bulk_get_parse_doc_query(Req),