From the course: DevOps Foundations: Distributed Tracing

Unlock the full course today

Join today to access over 22,600 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] In our backend class we configured several spring web services to show how we can create our own spans or instruments database or message queue frameworks. Let's set up instrumentation for the API query DB and put MQ web service controllers. Tracing is configured for web services through Servlet interceptors. So notice here in the tracing configuration class I have commented out our place where we register the server interceptor. So to get things working I'll remove the comments. So now our tracing interceptors will automatically instrument the web controllers. In addition, in the initializer class we are also delegating tracing filter which we'll also need to enable. So again I'll remove the comments here. Now with those two changes we'll automatically instrument any Servlet controller. So if you look at our backend service where we have our application logic, notice that I didn't really have to make any changes to instrument this web instrumentation for the server…

Contents