Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit dab6b16

Browse files
committed
Add new metric (histogram) to track number of reads using _bulk_get
1 parent 7cffe7e commit dab6b16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/chttpd_db.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ db_req(#httpd{method='POST', path_parts=[_, <<"_bulk_get">>]}=Req, Db) ->
448448
undefined ->
449449
throw({bad_request, <<"Missing JSON list of 'docs'.">>});
450450
Docs ->
451+
couch_stats:increment_counter([couchdb, bulk_reads], length(Docs)),
451452
#doc_query_args{
452453
options = Options
453454
} = bulk_get_parse_doc_query(Req),

0 commit comments

Comments
 (0)