OpenTelemetry for Java Developers
Talkat JCON Europe 2023 · on Thursday, 2023-06-22· at 15:00· Cinema 9, Im Mediapark 1, 50670 Köln, Germany·
summary
A demo Java microservice setup runs locally with the OpenTelemetry Java agent sending metrics, traces and logs to an OpenTelemetry Collector that forwards metrics to Prometheus, traces to Tempo and logs to Loki. Attaching the agent yields HTTP server duration histograms with exemplars and a synthetic 20% error rate from injected exceptions. Custom metrics show via the OpenTelemetry API or Spring’s MeterRegistry; Spring Boot 3’s Observation API emits both traces and matching metrics (no agent needed, important for native builds). Code and Docker Compose are on GitHub.
AI-written summary · about
chapters (8)
- 0:00Introduction and setup
- 3:08Metrics in Spring Boot 2
- 11:44Custom metrics with API
- 16:13Spring Boot Actuator
- 22:12Distributed tracing
- 31:22Spring Boot 3 observation
- 38:47Logging configuration
- 41:53Conclusion and Q&A
related talks
44mDo It Yourself: Programmable Metrics using OpenTelemetry
50mBootiful OpenTelemetry
37mMake your Java application observable with no code changes using OpenTelemetry
49mDistributed Tracing in Java? OpenTelemetry for the Rescue!
32mOpenTelemetry feat. logs, metrics and traces
47mUsing metric and traces to diagnose our cloud-native applications
35mOpenTelemetry for Busy People
26mTake Me Down to the Paradise City Where the Metric Is Green and Traces Are Pretty
