From the course: DevOps Foundations: Distributed Tracing

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Tracing web calls server-side

Tracing web calls server-side

From the course: DevOps Foundations: Distributed Tracing

Start my 1-month free trial

Tracing web calls server-side

- [Instructor] Let's configure our back end services to automatically instreaming the incoming web requests. So I'll open our back end class again, and I'll start with our APIJ service. Now in this case, essentially what we will do is replace the current example scope with another scope that we've created in the tracing configuration Jaeger class. And so first I'll swap that out and then I'll show you what this, how this new scope is configured. So comment this out. And then we're going to create a new one. It will be called scope again so we don't have to change all the code. And again I'm going to fetch that scope from the tracing configuration Jaeger class. Notice we have a method called start server span, so that's what I'm going to invoke. And here, we're going to pass our tracer. And we're going to pass the headers that we're receiving in this web service. And I'll give this span a new name, we'll call it APIJ. This will automatically create a parent span for the incoming web…

Contents