From c624b0f59029ea0a030478757d544715c7dc27b2 Mon Sep 17 00:00:00 2001 From: GuoLei Song <35319286+glmapper@users.noreply.github.com> Date: Fri, 15 Nov 2019 15:10:20 +0800 Subject: [PATCH] Sampled effect zipkin report (#300) --- .../plugins/zipkin/ZipkinSofaTracerSpanRemoteReporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sofa-tracer-plugins/sofa-tracer-zipkin-plugin/src/main/java/com/alipay/sofa/tracer/plugins/zipkin/ZipkinSofaTracerSpanRemoteReporter.java b/sofa-tracer-plugins/sofa-tracer-zipkin-plugin/src/main/java/com/alipay/sofa/tracer/plugins/zipkin/ZipkinSofaTracerSpanRemoteReporter.java index c0a98a47..062ab3ee 100644 --- a/sofa-tracer-plugins/sofa-tracer-zipkin-plugin/src/main/java/com/alipay/sofa/tracer/plugins/zipkin/ZipkinSofaTracerSpanRemoteReporter.java +++ b/sofa-tracer-plugins/sofa-tracer-zipkin-plugin/src/main/java/com/alipay/sofa/tracer/plugins/zipkin/ZipkinSofaTracerSpanRemoteReporter.java @@ -52,7 +52,7 @@ public ZipkinSofaTracerSpanRemoteReporter(RestTemplate restTemplate, String base @Override public void onSpanReport(SofaTracerSpan span) { - if (span == null) { + if (span == null || !span.getSofaTracerSpanContext().isSampled()) { return; } //convert