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 RESTful Web Services with Java

You're reading from   Mastering RESTful Web Services with Java Practical guide for building secure and scalable production-ready REST APIs

Arrow left icon
Product type Paperback
Published in Jul 2025
Publisher Packt
ISBN-13 9781835466100
Length 432 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (5):
Arrow left icon
Marián Varga Marián Varga
Author Profile Icon Marián Varga
Marián Varga
Pedro Henrique Pereira de Andrade Pedro Henrique Pereira de Andrade
Author Profile Icon Pedro Henrique Pereira de Andrade
Pedro Henrique Pereira de Andrade
Silvio de Morais Silvio de Morais
Author Profile Icon Silvio de Morais
Silvio de Morais
Thiago Bomfim Thiago Bomfim
Author Profile Icon Thiago Bomfim
Thiago Bomfim
Igor Avancini Fraga Igor Avancini Fraga
Author Profile Icon Igor Avancini Fraga
Igor Avancini Fraga
+1 more Show less
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Steps to a Great API
2. Understanding RESTful Core Concepts FREE CHAPTER 3. Exposing a RESTful API with Spring 4. Documenting Your API Effectively 5. Generating Code with OpenAPI 6. Enhancing Your API
7. Managing API Evolution 8. Advanced API Concepts and Implementations 9. Securing Your RESTful API 10. Testing Strategies for Robust APIs 11. Deployment and Performance
12. Monitoring and Observability 13. Scaling and Performance Optimization Techniques 14. Alternative Java Frameworks to Build RESTful APIs 15. Deploying APIs 16. Other Books You May Enjoy
17. Index

Implementing service tracing in distributed systems

In distributed systems, where a request might span multiple services, distributed tracing provides visibility into how a request moves through various components.

Let’s begin by understanding what we mean by distributed tracing.

What is distributed tracing?

Distributed tracing allows you to follow the lifecycle of a request as it flows from one service to another. This helps you see where delays or errors occur. In tracing terminology, each step in the request’s journey is called a span, and a trace is the entire set of spans associated with a request.

For example, imagine a request comes into your system to create a new user. This request might touch on the following services:

  1. API gateway
  2. Authentication service
  3. User service (to create the user in the database)
  4. Notification service (to send a welcome email)

Each of these steps is a span, and all the spans together...

lock icon The rest of the chapter is locked
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 $19.99/month. Cancel anytime