如何跳过对 http OPTIONS 请求的跟踪

How to skip tracing of http OPTIONS requests

是否可以将 sleuth 配置为忽略 http OPTIONS 请求?在我的例子中,是浏览器发出的 CORS 预检请求?

您可以使用 SpanHandler or prevent sampling them using a SamplerFunction

过滤范围