I am using cloud logging (java, google-api-services-logging:v2beta1-rev23-1.22.0) in Standard App Engine.
When I write a single log entry, it takes almost 120ms.
Following is the example code:
------------------------------------------------------------
long start = System.currentTimeMillis();
WriteLogEntriesRequest content = (new WriteLogEntriesRequest()).setEntries(entries);
WriteLogEntriesResponse response = logging.entries().write(content).execute();
long end = System.currentTimeMillis();
------------------------------------------------------------
I am wondering the 120ms is the typical time to take.
If it is, I have to change the way to write log entry for performance.
Is there any way to reduce the latency time to write the logEntry, such as async way?
Thanks in advance.