Skip to content

Commit e8920e7

Browse files
Fix inverted condition in LegacySpanProcessorInstrumentation#finishSpans (#8145)
1 parent f08b49c commit e8920e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/trace/src/main/java/io/opentelemetry/sdk/trace/export/LegacySpanProcessorInstrumentation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void dropSpans(int count) {
5858
@Override
5959
public void finishSpans(int count, @Nullable String error) {
6060
// Legacy metrics only record when no error.
61-
if (error != null) {
61+
if (error == null) {
6262
processedSpans().add(count, standardAttrs);
6363
}
6464
}

0 commit comments

Comments
 (0)