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

Amit Gupta commented on SLING-4080:
-----------------------------------

>why not use an existing metrics library?

A Metrics util is added is provided to ease the task of integrating the metrics 
in application code, there is no need to instantiate the MetricsRegistry, or 
create Timer object (for example). Some of the common tasks will be simplified, 
idea was that it should be as simple as Logger to use.

Other idea is that adding an api as part of sling, keeps the option of changing 
the implementation open and also protect sling based applications from third 
party api changes.

[0] 
https://svn.apache.org/repos/asf/sling/whiteboard/amitgupt/monitoring/src/main/java/org/apache/sling/monitoring/api/Metrics.java

> API to capture/measure application-level metrics
> ------------------------------------------------
>
>                 Key: SLING-4080
>                 URL: https://issues.apache.org/jira/browse/SLING-4080
>             Project: Sling
>          Issue Type: New Feature
>          Components: API
>            Reporter: Amit Gupta
>            Assignee: Amit Gupta
>            Priority: Minor
>
> Provide an api that can help capture/measure application level metrics i.e. 
> timing, counter etc.
> When running large/mid scale applications, it is good to know some statistics 
> i..e number of requests, time taken to process a request, number of active 
> requests, number of active jobs.



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

Reply via email to