Skip to content

Commit 04fe352

Browse files
authored
sampled effect zipkin report (#298)
1 parent 6464e33 commit 04fe352

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sofa-tracer-plugins/sofa-tracer-zipkin-plugin/src/main/java/com/alipay/sofa/tracer/plugins/zipkin/ZipkinSofaTracerSpanRemoteReporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public ZipkinSofaTracerSpanRemoteReporter(RestTemplate restTemplate, String base
5252

5353
@Override
5454
public void onSpanReport(SofaTracerSpan span) {
55-
if (span == null) {
55+
if (span == null || !span.getSofaTracerSpanContext().isSampled()) {
5656
return;
5757
}
5858
//convert

0 commit comments

Comments
 (0)