public long sizeInBytes() {
        return LogSegments.sizeInBytes(values());
    }
The active segment that is currently taking appends
storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegments.java