Skip to content

Commit 904f41a

Browse files
authored
Report discarded log in batch processor as log_byte
1 parent ed33deb commit 904f41a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry/src/main/java/io/sentry/logger/LoggerBatchProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void add(final @NotNull SentryLogEvent logEvent) {
6060
JsonSerializationUtils.byteSizeOf(options.getSerializer(), options.getLogger(), logEvent);
6161
options
6262
.getClientReportRecorder()
63-
.recordLostEvent(DiscardReason.QUEUE_OVERFLOW, DataCategory.Attachment, lostBytes);
63+
.recordLostEvent(DiscardReason.QUEUE_OVERFLOW, DataCategory.LogByte, lostBytes);
6464
return;
6565
}
6666
pendingCount.increment();

0 commit comments

Comments
 (0)