I'm wondering if Stackdriver logging extension is called asynchronously or not?
Having no stackdriver call, my API response is being processed in Apigee for 10-15 ms according to trace information.
When I add Extension callout policy, trace shows request is being processed for 150 ms (extension callout takes 1-2 ms, but then there's big pause before next step).
First screenshot shows request processing with Stackdriver logging enabled.
Second screenshot taken with Stackdriver logging excluded from request processing.
Solved! Go to Solution.
Hi Sergei, thanks for using Extensions and asking about it here in the community!
Currently, Extension Callout Policies (ECP) are all processed synchronously. The added latency is a result of the ECP execution.
There is a known bug that essentially misplaces the latency of the policy's execution, which is why you see the ECP executing for 1-2ms.