Observability of Your Application

VMware Tanzu
VMware TanzuVMware Tanzu
│©2022 VMware, Inc.
Observability of Your
Application
Jonatan Ivanov
Tommy Ludwig
Marcin Grzejszczak
Spring Observability Team
Jonatan Ivanov
Tommy Ludwig
Marcin Grzejszczak
Architecture
Tea Service
Tealeaf
Service
DB
Water
Service
DB
Eureka
Eureka
DEMO
Summary
- We’ve managed to correlate
- Logs to Traces (and vice versa)
- Traces to Metrics (via common tags)
- Metrics to Traces (via exemplars) to Logs
- The Spring portfolio is instrumented
- WebMVC, WebFlux, etc. instrumentation
- Third-party libraries are also instrumented
- jdbc-observations
- OpenFeign
- etc.
What’s (kind of) new in Micrometer?
1.9.0 - 2022 May
- OTLP Registry (OpenTelemetry)
- HighCardinalityTagsDetector
- Exemplars (Prometheus)
What’s new in Micrometer?
1.10.0 - 2022 November
- Micrometer Tracing (Sleuth w/o Spring deps.)
- Micrometer Docs Generator
- Micrometer Context Propagation
- Observation API (micrometer-core)
Observation observation = Observation.start("s1",registry);
try (Observation.Scope scope = observation.openScope()) {
Thread.sleep(1000); // Business logic
}
catch (Exception exception) {
observation.error(exception);
throw exception;
}
finally { // TODO: attach tags (key-value)
observation.stop();
}
Observation API (Micrometer 1.10)
ObservationRegistry registry = ObservationRegistry.create();
registry.observationConfig()
.observationHandler(new MeterHandler(...))
.observationHandler(new TracingHandler(...))
.observationHandler(new LoggingHandler(...))
.observationHandler(new AuditEventHandler(...));
Observation observation = Observation.start("s1",registry);
// let the fun begin…
observation.stop();
Observation API (Micrometer 1.10)
Observation.createNotStarted("talk",registry)
.lowCardinalityKeyValue("conference", "S1")
.highCardinalityKeyValue("speakerId", speakerId)
.observe(this::talk);
@Observed
Observation API (Micrometer 1.10)
│©2022 VMware, Inc.
Thank You!
github.com/jonatan-ivanov/teahouse
1 of 11

More Related Content

More from VMware Tanzu(20)

tanzu_developer_connect.pptxtanzu_developer_connect.pptx
tanzu_developer_connect.pptx
VMware Tanzu153 views
Tanzu Developer Connect - FrenchTanzu Developer Connect - French
Tanzu Developer Connect - French
VMware Tanzu13 views

Recently uploaded(20)

Heatmap for SAP and CIA.pdfHeatmap for SAP and CIA.pdf
Heatmap for SAP and CIA.pdf
AndreeaTom46 views
Future Telecoms Challenges & OpportunitiesFuture Telecoms Challenges & Opportunities
Future Telecoms Challenges & Opportunities
University of Hertfordshire41 views
Integrating GeoAI Models in FMEIntegrating GeoAI Models in FME
Integrating GeoAI Models in FME
Safe Software31 views
Orchestration, Automation and Virtualisation Maturity ModelOrchestration, Automation and Virtualisation Maturity Model
Orchestration, Automation and Virtualisation Maturity Model
CSUC - Consorci de Serveis Universitaris de Catalunya49 views
JFall - Process Oriented IntegrationJFall - Process Oriented Integration
JFall - Process Oriented Integration
Bernd Ruecker84 views
Building Stronger BoardsBuilding Stronger Boards
Building Stronger Boards
OnBoard23 views
PoC Azure AdministrationPoC Azure Administration
PoC Azure Administration
Olaf Reitmaier Veracierta69 views
SQLSatOregon_kgorman_keynote_NIAIMLEC.pptxSQLSatOregon_kgorman_keynote_NIAIMLEC.pptx
SQLSatOregon_kgorman_keynote_NIAIMLEC.pptx
Kellyn Pot'Vin-Gorman36 views
SIG-NOC Tools SurveySIG-NOC Tools Survey
SIG-NOC Tools Survey
CSUC - Consorci de Serveis Universitaris de Catalunya43 views
MSWMSW
MSW
Wonjun Hwang18 views

Observability of Your Application