QuestionQ62

Analyzing and optimizing technical and business processes

A small subset of API requests to your microservices-based application takes a very long time. You know that each API request can traverse many services.

You want to identify which service takes the longest in those situations. What should you do?

  • A Set timeouts on your application so that you can fail requests faster
  • B Send custom metrics for each of your requests to Stackdriver Monitoring
  • C Use Stackdriver Monitoring to look for insights that show when your API latencies are high
  • D Instrument your application with Stackdriver Trace in order to break down the request latencies at each microservice
Explanation

Cloud Trace (formerly Stackdriver Trace) is a distributed tracing system that captures request latency and spans for operations such as RPC calls. Instrumenting each microservice lets a single request be traced across services and its per-service durations compared, revealing the service responsible for the longest portion of the request.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!