[
https://issues.apache.org/jira/browse/TAMAYA-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265464#comment-15265464
]
Anatole Tresch commented on TAMAYA-156:
---------------------------------------
Usage function added, Feedback is welcome. The functionality is disabled by
default. It can be enabled by settings {{-Dtamaya.usage-report=true}} or
programmatically by calling {{ConfigModelManager.enableUsageTracking(true);}}.
The tracking report can be accessed by
{noformat}
String info = ConfigModelManager.getUsageInfo();
{noformat}
Reporting can be reset by calling:
{noformat}
String info = ConfigModelManager.clearUsageInfo();
{noformat}
> Add Statistics Function about Configuration Usage
> -------------------------------------------------
>
> Key: TAMAYA-156
> URL: https://issues.apache.org/jira/browse/TAMAYA-156
> Project: Tamaya
> Issue Type: New Feature
> Components: Extensions
> Reporter: Anatole Tresch
> Assignee: Anatole Tresch
> Priority: Minor
> Labels: Metrics, Usage
> Fix For: 0.3-incubating
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Add some metrics about the number of configuration usage per key or for all
> properties, including the trace information of the code accessing the
> configuration. This can be added relatively easily to the model module.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)