有什么方法可以将Slf4jReporter
与 metrics-json 包结合在日志中生成 JSON 吗?
reporter = Slf4jReporter.forRegistry(registry)
.outputTo(logger)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build();
有没有向记者/记录器注册 metrics-json 的示例。