[ 
https://issues.apache.org/jira/browse/LENS-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317595#comment-14317595
 ] 

Amareshwari Sriramadasu commented on LENS-286:
----------------------------------------------

bq. We shall put the path of the uri and method(GET/POST/PUT/DELETE) in the 
name of the timer.

We can use event.getUriInfo().getMatchedModelResource().getName() which 
identifies the method being called. We should take of NPE in case of 404 errors.

We can have separate latency numbers for successful requests and errors.

> Add latency metering metrics for all api exposed through REST
> -------------------------------------------------------------
>
>                 Key: LENS-286
>                 URL: https://issues.apache.org/jira/browse/LENS-286
>             Project: Apache Lens
>          Issue Type: Improvement
>          Components: server
>            Reporter: Amareshwari Sriramadasu
>             Fix For: 2.1
>
>
> To understand the latencies provided by lens server, we want to include 
> metering for all the api.
> We can explore meters in 
> https://dropwizard.github.io/metrics/3.1.0/manual/core/#meters



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to