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.

Configuring the Jaeger tracer

Configuring the Jaeger tracer

From the course: DevOps Foundations: Distributed Tracing

Start my 1-month free trial

Configuring the Jaeger tracer

- [Instructor] In the previous chapter, we showed you how to trace the demo application with Zipkin. Let's trace the same map with Jaeger, which is another popular instrumentation library. If you are just getting started in this chapter, please check out the lab instructions in the course introduction before you start the exercise. We'll continue using the same map project we used for Zipkin. Before we start tracing our code, we need to configure Jaeger tracing in our application. I'll open the trace configuration Jaeger class, and you'll notice on line 34 we're defining the Jaeger tracer. There are two main things that I want to call out. On line 36 we're configuring a sampler. In this case the sampler parameters are set with constant and one, which indicates that we're going to record every trace and spans that the application emits. On the second line we're configuring a reporter and we're starting the reporter essentially with the bug message so we know if trace is being recorded,…

Contents