Skip to content

Commit

Permalink
Add statsd instrumentation for contact-search
Browse files Browse the repository at this point in the history
    Adds statsd counts and times for the contact_search request.

Change-Id: I721b4cfb2ae970bb37e6c072940f0496aa90458e
Reviewed-on: https://code.brigade.zone/28774
Tested-by: Leeroy Jenkins <[email protected]>
Reviewed-by: Dave Kincade <[email protected]>
  • Loading branch information
swarup-brigade committed Mar 26, 2018
1 parent a805fa4 commit 441d3b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def find_voter(id):


@app.route('/v1/voters/contact_search', methods=['POST'])
@statsd.timed('verifier.response_time.contact_search')
@validate_api_request
def contact_search(params):
""" Match voter records by name, phone and email """
Expand Down

0 comments on commit 441d3b6

Please sign in to comment.