Kamon是一组用于监控运行在JVM上的应用的工具和框架。
示例代码:
public class GetStarted { public static void main(String[] args) { Kamon.start(); final Histogram someHistogram = Kamon.metrics().histogram("some-histogram"); final Counter someCounter = Kamon.metrics().counter("some-counter"); someHistogram.record(42); someHistogram.record(50); someCounter.increment(); // This application wont terminate unless you shutdown Kamon. Kamon.shutdown(); }}实体对象:
评论