Skip to content

Commit e40dca3

Browse files
fix: correct condition for recording successful log processing metrics (#8226)
1 parent 34c5b1f commit e40dca3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/logs/src/main/java/io/opentelemetry/sdk/logs/export/LegacyLogRecordProcessorInstrumentation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void dropLogs(int count) {
5050
@Override
5151
public void finishLogs(int count, @Nullable String error) {
5252
// Legacy metrics only record when no error.
53-
if (error != null) {
53+
if (error == null) {
5454
processedLogs().add(count, standardAttrs);
5555
}
5656
}

0 commit comments

Comments
 (0)