SlideShare a Scribd company logo
Spanning Services
The Practical Guide to DistributedTracing
Yair Galler, @ygallerJava IL, June 2019
The Starting Point
We already have metrics and logging!
but...
Metrics are aggregates
A metric in Grafana
goes crazy as the
team stares. Root
cause unknown.
Michael Ancher, 1902
Logging
lacks
context A developer
realizes he has
been looking at
the wrong set of
logs for the last 4
hours.
Auguste Couder, 1817
Use Cases
Use Cases - Optimization
Slow Running Segments
Waiting for
tests to
complete.
A dream of
deployment
by Edmund
Leighton, 1922
Use Cases - Optimization
SlowTests
Use Cases - Optimization
Parallelization
Use Cases - Optimization
Network Latency
Use Cases - Optimization
Call Redundancy
Multiple calls can be batched
into one
Use Cases - Architecture
Service Boundary Design Flaws
Stateless edge
service
Central backend
service
Use Cases - Debugging
Run Comparisons
TheTracing Cookbook
Standard Instrumentation
Incoming HTTP calls - Supported by DropWizard & Spring
HTTP Clients - Register a tracer
TheTracing Cookbook
Extras - MethodTracing
Using annotations & interceptors
Better tracing resolution
When you cannot trace calls from third party libraries
TheTracing Cookbook
Extras - JDBITracing
Invaluable for catching slow queries!
*We used opentracing-jdbi3
TheTracing Cookbook
Extras - StackTraces
HTTP calls can come from various paths
TheTracing Cookbook
Setting UpThe System -WhatWorked for us
Zipkin Client
Jaeger Server - Multiple instances for high availability
Terraform for auto-deploy to AWS
Data stored on AWS Elasticsearch Service
Tips & Best Practices
You are going to invest time - Plan ahead and consider:
Lambdas
Kubernetes / containers in general
Get buy-in from all the teams or the relay breaks
Ensure system runs well when tracing server is down
Downsampling
Don’t trace everything!
Questions? @ygaller

More Related Content

PPTX
Processing genetic data at scale
PPTX
Distributed Tracing: New DevOps Foundation
PDF
OSMC 2018 | Distributed Tracing FAQ by Gianluca Arbezzano
PDF
"Distributed Tracing: New DevOps Foundation" by Jayesh Ahire
PDF
"Introducing Distributed Tracing in a Large Software System", Kostiantyn Sha...
PPTX
Distributed tracing
PDF
Adopting Open Telemetry as Distributed Tracer on your Microservices at Kubern...
PDF
Why Distributed Tracing is Essential for Performance and Reliability
Processing genetic data at scale
Distributed Tracing: New DevOps Foundation
OSMC 2018 | Distributed Tracing FAQ by Gianluca Arbezzano
"Distributed Tracing: New DevOps Foundation" by Jayesh Ahire
"Introducing Distributed Tracing in a Large Software System", Kostiantyn Sha...
Distributed tracing
Adopting Open Telemetry as Distributed Tracer on your Microservices at Kubern...
Why Distributed Tracing is Essential for Performance and Reliability

Similar to Java il spanning services 2019 (20)

PDF
Observability, Distributed Tracing, and Open Source: The Missing Primer
PDF
Go Observability (in practice)
PDF
Distributed Tracing
PPTX
Latency analysis for your microservices using Spring Cloud & Zipkin
PPTX
Distributed Tracing at UBER Scale: Creating a treasure map for your monitori...
PDF
PinTrace Advanced AWS meetup
PDF
apidays LIVE Australia 2021 - Tracing across your distributed process boundar...
PPTX
Introduction to Distributed Tracing
PDF
Distributed Tracing
PDF
Everything You wanted to Know About Distributed Tracing
PDF
OSDC 2018 | Distributed Monitoring by Gianluca Arbezzano
PDF
OSDC 2018 - Distributed monitoring
PPTX
Observability for Application Developers (1)-1.pptx
PDF
Distributed tracing - get a grasp on your production
PDF
Microservices observability
PDF
Beginner's Guide to Observability@Devoxx PL 2024
PPTX
OpenTelemetry For Architects
PDF
Tracing Micro Services with OpenTracing
PDF
WJAX 2019 - Taking Distributed Tracing to the next level
PDF
Distributed Tracing, from internal SAAS insights
Observability, Distributed Tracing, and Open Source: The Missing Primer
Go Observability (in practice)
Distributed Tracing
Latency analysis for your microservices using Spring Cloud & Zipkin
Distributed Tracing at UBER Scale: Creating a treasure map for your monitori...
PinTrace Advanced AWS meetup
apidays LIVE Australia 2021 - Tracing across your distributed process boundar...
Introduction to Distributed Tracing
Distributed Tracing
Everything You wanted to Know About Distributed Tracing
OSDC 2018 | Distributed Monitoring by Gianluca Arbezzano
OSDC 2018 - Distributed monitoring
Observability for Application Developers (1)-1.pptx
Distributed tracing - get a grasp on your production
Microservices observability
Beginner's Guide to Observability@Devoxx PL 2024
OpenTelemetry For Architects
Tracing Micro Services with OpenTracing
WJAX 2019 - Taking Distributed Tracing to the next level
Distributed Tracing, from internal SAAS insights
Ad

Recently uploaded (20)

PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
Unlock new opportunities with location data.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Architecture types and enterprise applications.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
WOOl fibre morphology and structure.pdf for textiles
PPTX
Modernising the Digital Integration Hub
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
Getting Started with Data Integration: FME Form 101
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Final SEM Unit 1 for mit wpu at pune .pptx
Unlock new opportunities with location data.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Architecture types and enterprise applications.pdf
Tartificialntelligence_presentation.pptx
Enhancing emotion recognition model for a student engagement use case through...
WOOl fibre morphology and structure.pdf for textiles
Modernising the Digital Integration Hub
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
1 - Historical Antecedents, Social Consideration.pdf
A novel scalable deep ensemble learning framework for big data classification...
Assigned Numbers - 2025 - Bluetooth® Document
NewMind AI Weekly Chronicles – August ’25 Week III
DP Operators-handbook-extract for the Mautical Institute
Getting started with AI Agents and Multi-Agent Systems
O2C Customer Invoices to Receipt V15A.pptx
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Getting Started with Data Integration: FME Form 101
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Ad

Java il spanning services 2019