Hey Ben,
If you've only observed the issue on methods with an auth filter, and the gap in time is always before any other line than the authfilter, it's quite likely this is the cause, but here are some other things to check:
You could check the "ms" vs "cpu_ms" times in the log listing for that request, or even check if there's a "pending_ms" field. This could also indicate what's going on.
If "ms" is significantly higher than "cpu_ms", it means you're spending time waiting on remote calls. If "pending_ms" is high, this means the request spent time waiting in a pending queue to find an instance able to handle it (this would require a change to scaling settings to improve, allowing more idle instances to be ready).
So, after checking on that, it might come back to the fact that the auth filter is taking a while. The nature of the auth filter would be quite important to diagnosing that any further.
I hope this is helpful so far, let me know your findings!
Cheers,
Nick
Cloud Platform Community Support