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
From the course: DevOps Foundations: Distributed Tracing
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,…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Configuring the Jaeger tracer2m 19s
-
Tracing app code4m 25s
-
Seeing the app trace in the Jaeger UI1m 30s
-
Adding metadata to your traces4m 11s
-
Seeing the tags and error event in the Jaeger UI1m 30s
-
Tracing database calls4m 6s
-
Seeing the database traces in the Jaeger UI1m 27s
-
Tracing message queue calls4m 3s
-
Seeing the message queue traces in the Jaeger UI1m 15s
-
Tracing web calls server-side3m 16s
-
Seeing web service traces in the Jaeger UI1m 26s
-
Tracing web calls end-to-end4m 25s
-
Seeing the whole picture2m 5s
-
-
-