Distributed tracing & metric collection 4S
Summary
- Kamon
- F{oo} Bar
- Demo (1)
- Monitoring, Alerting, Tracing
- Using Kamon
- QA
Kamon
- Http4s
- Play
- Akka-Http
- Akka
- Futures
- Jdbc
- System Metrics
- ...
- Prometheus
- InfluxDB
- StatsD
- Datadog
- ...
f{oo} bar
distributed tracing and monitoring 4S
f{oo} bar
Console
Bartender
RMQ
Water
Soda
Coke
f{oo} bar
Console
Bartender
RMQ
Water
Soda
Coke
Demo
Monitoring
- Health monitoring
- Performance monitoring
Alerting
- ...
Before Tracing
Span, Trace, Context
A
B
Trace ID (A)
Span ID (1)
Span ID (2)
Context (2) (url, status_code)
Span ID (3)
Context(3) (url, status_code)
- Trace ID (A)
- Span ID (1)
- Context (url, status_code)
Trace ID (A)
Span ID (1)
Tracing
- Trace/Span identifiers
- Visualisation
LOGS
Measurements
TRACING
App
Using Kamon
- build.sbt
- plugins.sbt
- Main.scala *
- application.conf
- logback.xml
- Url => Operation Name
References
- https://github.com/cmcmteixeira/foobar-tracing-demo
- https://kamon.io
- http://www.se-radio.net/2018/09/se-radio-episode-337-ben-sigelman-on-distributed-tracing/
- https://richardimaoka.github.io/blog/executor-and-execution-context/
- https://dzone.com/articles/painless-introduction-javas-threadlocal-storage
QA
DevOps Porto
By Carlos Teixeira
DevOps Porto
- 1,171