observability-patterns

Instrument Spring Boot applications with Micrometer, OpenTelemetry, MDC, and Actuator.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/RogerioSobrinho/codeme-copilot --skill observability-patterns-rogeriosobrinho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability-patterns
Source: https://github.com/RogerioSobrinho/codeme-copilot/tree/main/skills/observability-patterns
Command: npx skills add https://github.com/RogerioSobrinho/codeme-copilot --skill observability-patterns-rogeriosobrinho

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Spring Boot services often lack consistent observability, making it difficult to diagnose performance issues, correlate events across services, and meet incident response SLAs.

Core Features & Use Cases

  • Metrics: integrate Micrometer with Prometheus for quantitative signals like latency and error rates.
  • Tracing: enable distributed tracing via OpenTelemetry to visualize request flows across services.
  • Logging: configure MDC-based structured logs to correlate events using trace and span IDs.
  • Health & readiness: expose Actuator endpoints and custom HealthIndicators for readiness checks.
  • Dashboards & debugging: ship observability data to Grafana dashboards for real-time insights.

Quick Start

Follow the guidelines to instrument your Spring Boot app with metrics, tracing, and structured logging to observe and diagnose in production.

Frequently Asked Questions about observability-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up distributed tracing in Spring Boot microservices?

Set up distributed tracing in Spring Boot by configuring OpenTelemetry to visualize request flows across microservices. This enables end-to-end observability so you can correlate events across services and diagnose performance issues.

What is the best way to correlate logs with trace IDs in Spring Boot?

The best way to correlate logs with trace IDs in Spring Boot is configuring MDC-based structured logging. This injects trace and span IDs into your log entries, allowing you to correlate events across distributed services.

How do I collect custom metrics in Spring Boot using Micrometer?

Collect custom metrics in Spring Boot by integrating Micrometer with Prometheus to gather quantitative signals like latency and error rates. This provides the data needed to diagnose performance issues and meet incident response SLAs.

How do I configure Actuator health and readiness endpoints in Spring Boot?

Configure Spring Boot Actuator endpoints and custom HealthIndicators to expose health and readiness checks. This ensures your microservices properly report their state for orchestration and monitoring platforms.

Does this observability setup work with Grafana dashboards?

Yes, this observability setup works with Grafana dashboards by shipping metrics, tracing, and logging data to Grafana. This provides real-time insights and a cohesive view for debugging production issues.