java - Spring boot 3 with micrometer 1.4+, how to skip tracing but continue to report metrics - Stack Overflow

While upgrading to Spring boot 3.4 I'm struggling to figure out how to "only" skip traci

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745271628a4619783.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信