+ Events/Lineage(?)/Context/Metadata 6 pillars: + Profiles + Exceptions Arbitrary Wide Events, Signals But what about: /health, /info, etc. Service Registry/Discoverability, API Discoverability
little and services are going down there) We need to deal with unknown unknowns (We can’t know everything) Things can be perceived differently by observers (Everything is broken for the users but seems ok to you) Why do we need Observability?
150 ms Distributed Tracing DB was slow (lot of data was requested) Error Logging Processing failed (stacktrace?) Metrics The error rate is 0.001/sec 2 errors in the last 30 minutes Distributed Tracing DB call failed (invalid input)
Java) Simple API for logging libraries Logback Natively implements the SLF4J API If you want Log4j2 instead of Logback: - spring-boot-starter-logging + spring-boot-starter-log4j2 Logging with Spring: SLF4J + Logback
Like SLF4J, but for metrics Simple API Supports the most popular metric backends Comes with spring-boot-actuator Spring projects are instrumented using Micrometer A lot of third-party libraries use Micrometer
3.x: Micrometer Tracing (Sleuth w/o Spring dependencies) Provide an abstraction layer on top of tracing libraries - Brave (OpenZipkin), default - OpenTelemetry (CNCF), experimental Instrumentation for Spring Projects, 3rd party libraries, your app Support for various backends
Endpoint Build Info (name, version, git commit, build time): Boot 2.x Java Info (JRE/JVM name, version, vendor): Boot 2.6 OS Info (name, arch, version): Boot 2.7 Cloud Info (instanceId, region, account) CPU Cores, Total Memory, GC Info, TLS cert chain Timezone, Current Time, Language, Start Time, Uptime Spring Boot Actuator
have? Where? (host/ip, port, instanceId, region, account) What versions are deployed? (by environment) Eureka, Spring Boot Admin How to call/use them? Spring REST Docs Spring Cloud Contract + Pact Broker Swagger / OpenAPI + ReDoc Spring HATEOAS + HAL Explorer
solve complex problems. Core Features • Project-based courses with hands-on labs • In-browser code editing and debugging • Certification prep courses • Spring Certified Professional Certification Sign Up Today Get started for free at https://spring.academy For Conference Attendees: Use DEVNEXUS at checkout by April 10th for a 20% discount on a Spring Academy Pro subscription!