admin管理员组文章数量:1417676
While upgrading to Spring boot 3.4 I'm struggling to figure out how to "only" skip tracing for certain uris/paths while continuing to report metrics.
For some endpoints like actuators and heart-beats I need metrics to be exported, but I don't want to report tracing.
First tried using the ObservationPredicate
, but quickly realized this affects "all" observations (both metrics and tracing). So not quite what I need.
Then found SamplerFunction
, but this was deprecated and no in latest micrometer versions removed.
What is the new way to only suppress tracing or metrics?
Many thanks, Mike
本文标签:
版权声明:本文标题:java - Spring boot 3 with micrometer 1.4+, how to skip tracing but continue to report metrics - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745271628a2650928.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论