File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
proxy/src/main/java/com/wavefront/agent/sampler Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 11package com .wavefront .agent .sampler ;
22
3- import static com .wavefront .common .TraceConstants .PARENT_KEY ;
43import static com .wavefront .sdk .common .Constants .*;
54
65import com .github .benmanes .caffeine .cache .Caffeine ;
1615import java .util .logging .Logger ;
1716import java .util .stream .Collectors ;
1817import javax .annotation .Nonnull ;
19- import org .apache .commons .lang .StringUtils ;
2018import wavefront .report .Annotation ;
2119import wavefront .report .Span ;
2220
@@ -139,7 +137,7 @@ public boolean sample(@Nonnull Span span) {
139137 stats .edgeCount .getAndIncrement ();
140138 if (!stats .isSignificant ()) sampled = true ;
141139
142- if (annotationMap .containsKey (ERROR_TAG_KEY )) {
140+ if (annotationMap .containsKey (ERROR_TAG_KEY ) && "true" . equalsIgnoreCase ( annotationMap . get ( ERROR_TAG_KEY )) ) {
143141 stats .errorCount .getAndIncrement ();
144142 if (!sampled && stats .getErrorRatio () < 0.5 ) sampled = true ;
145143 }
You can’t perform that action at this time.
0 commit comments