Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering Distributed Tracing

You're reading from   Mastering Distributed Tracing Analyzing performance in microservices and complex systems

Arrow left icon
Product type Paperback
Published in Feb 2019
Publisher Packt
ISBN-13 9781788628464
Length 444 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
 Cole Cole
Author Profile Icon Cole
Cole
Yuri Shkuro Yuri Shkuro
Author Profile Icon Yuri Shkuro
Yuri Shkuro
Arrow right icon
View More author details
Toc

Chapter 5. Instrumentation of Asynchronous Applications

Instrumentation of Asynchronous Applications

In Chapter 4, Instrumentation Basics with OpenTracing, we reviewed the basics of instrumenting a microservices-based application for distributed tracing using the OpenTracing APIs. If you went through all the exercises, you deserve a medal! The Hello application was intentionally very simple and involved only blocking synchronous calls between microservices.

In this chapter, we will attempt to instrument an online chat application, Tracing Talk, which uses asynchronous messaging-based interactions between microservices built on top of Apache Kafka. We will see how metadata context can be passed through messaging systems using the same OpenTracing primitives we already discussed, and how causal relationships between spans can be modeled differently than in the plain RPC scenarios.

We will continue using the OpenTracing API, even though the same instrumentation principles would apply to other tracing APIs, such as Zipkin...

You have been reading a chapter from
Mastering Distributed Tracing
Published in: Feb 2019
Publisher: Packt
ISBN-13: 9781788628464
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime