【发布时间】:2021-12-13 09:21:26
【问题描述】:
只是一个简单的例子:
fun main(): String? {
val response: String? = null
meterRegistry.timer("name").record {
response = getResponse() // throws exception
}
return response
}
在这种情况下 getResponse() 会抛出异常,并且 main 方法中没有捕获。 它仍然记录到grafana吗?
【问题讨论】:
标签: spring-boot kotlin timer grafana micrometer