From the course: Google Cloud Platform Essential Training for Developers: Cloud-Native Development with Gemini

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Diagnosing latency with Cloud Trace

Diagnosing latency with Cloud Trace

All right, so now we're going to talk about Cloud Trace and latency. So if your users are telling you your app is slow, but you don't know where, you don't know if it's a database, or it's the API, or maybe some external service, Cloud Trace is going to help us find that answer and help us get our problem resolved, because we're going to know exactly where to look. So first things first, we're going to need to enable the API. Now, I'm going to do this through the console simply for the fact that Cloud Trace, they have a lot of different API changes and new features being enabled. So we're gonna do it right here and hit enable. And since it could take a few minutes, we'll give it some time. And then once it's back, we'll run some commands and see what we can come up with. All right, so now what we're gonna do is we're gonna take a look at this Trace Explorer. Now, the cool thing about this is when you're thinking about Trace Explorer and logs and latency and all that good stuff, think…

Contents