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

本文标签: