22. Micrometer
“Micrometer provides a simple facade over the
instrumentation clients for the most popular
observability systems, allowing you to instrument
your JVM-based application code without vendor
lock-in. Think SLF4J, but for observability.”
23. Observation API
“The idea of its founding was that we want the
users to instrument their code once using a single
API and have multiple benefits out of it (e.g.
metrics, tracing, logging).”
24. Observation API
ObservationRegistry observationRegistry = ObservationRegistry. create();
observationRegistry
.observationConfig()
.observationHandler( new SimpleLoggingHandler());
Observation observation =
Observation.createNotStarted(“sample”, observationRegistery);
observation.observe(() -> {
//action to be observed
});
36. Observability 101 with Spring
Instrumentation
Backends
Combined View
Talk Spring i/o 2023:
Observability of Your Application
by Marcin Grzejszczak & Tommy Ludwig