Description
Hi, I use this library in my GCP project App Engine application, and I found that the quota Log ingestion requests
is easily exhausted when load testing.
When a log entry is appended, the log is wrapped as singleton list, and it is passed to google-cloud-logging library.
https://github.com/googleapis/java-logging-logback/blob/master/src/main/java/com/google/cloud/logging/logback/LoggingAppender.java#L232
Finally the singleton list seems to be converted to one WriteLogEntriesRequest
.
This means one log entry causes one WriteLogEntriesRequest API call.
https://github.com/googleapis/java-logging/blob/8cbf0af1c63dd14392bd819c9a33e0141d7aad2f/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java#L510
I think it's better to support batch send option in order to reduce request number and save Log ingestion requests
quota.
Is my idea correct?