Skip to Main Content
Mastering Distributed Tracing
book

Mastering Distributed Tracing

by Yuri Shkuro
February 2019
Intermediate to advanced content levelIntermediate to advanced
444 pages
11h 36m
English
Packt Publishing
Content preview from Mastering Distributed Tracing

Exercise 1 – the Hello application

In the first exercise, we are going to run a simple, single-process "Hello" application, and review its source code, so that we can later instrument it for distributed tracing. The application is implemented as a web service, which we can access by sending it HTTP requests like this:

$ curl http://localhost:8080/sayHello/John
Hello, John!

$ curl http://localhost:8080/sayHello/Margo
Hello, Margo!

The application has some creepy big brother tendencies, however, by occasionally volunteering additional knowledge about the person:

$ curl http://localhost:8080/sayHello/Vector
Hello, Vector! Committing crimes with both direction and magnitude!

$ curl http://localhost:8080/sayHello/Nefario
Hello, Dr. Nefario! Why ... ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Distributed Tracing in Practice

Distributed Tracing in Practice

Austin Parker, Daniel Spoonhower, Jonathan Mace, Ben Sigelman, Rebecca Isaacs
Kafka: The Definitive Guide, 2nd Edition

Kafka: The Definitive Guide, 2nd Edition

Gwen Shapira, Todd Palino, Rajini Sivaram, Krit Petty

Publisher Resources

ISBN: 9781788628464Supplemental Content