Spring boot observability

From HoangNguyen0403/agent-skills-standard · View interactive version

Spring boot observability is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Instrument Spring Boot with Micrometer metrics, distributed tracing, and structured logging. Use when adding Micrometer metrics, distributed tracing, or structured logging to Spring Boot.

How to use this skill

Skill file

Spring Boot Observability

**Priority: P0 (CRITICAL)**

Implementation Workflow

  1. Add tracing and metrics dependencies to pom.xml
  2. Configure application.yaml for tracing, actuator, and log correlation
  3. Add structured logging with MDC context
  4. Verify with curl localhost:8080/actuator/prometheus and check trace IDs in logs

Enable Distributed Tracing

See implementation examples for application.yaml tracing configuration and actuator exposure.

Configure Structured Logging

See implementation examples for structured logging with MDC context and Logstash encoder.

Secure Actuator Endpoints

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.