Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Async call of Apigee Stackdriver Extension

Not applicable

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.

7427-screen-shot-2018-09-11-at-162310.png

Second screenshot taken with Stackdriver logging excluded from request processing.

7428-screen-shot-2018-09-11-at-162406.png

Solved Solved
2 4 414
1 ACCEPTED 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.

View solution in original post

4 REPLIES 4