java-observability

Automate observability for Java Spring Boot with logging, tracing, and metrics.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/tassosgomes/poc-iam-service --skill java-observability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-observability
Source: https://github.com/tassosgomes/poc-iam-service/tree/main/.github/skills/java/java-observability
Command: npx skills add https://github.com/tassosgomes/poc-iam-service --skill java-observability

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates comprehensive observability for Java Spring Boot applications by integrating structured logging, tracing, and metrics.

Core Features & Use Cases

  • Structured JSON logging with trace_id and span_id
  • Distributed tracing with Jaeger and OpenTelemetry
  • Metrics collection with Micrometer and Prometheus
  • Health checks and Actuator integration
  • MDC-based correlation and data sanitization for privacy
  • Kubernetes-friendly probes and profiles for logging and tracing

Quick Start

Run your Spring Boot app with the OpenTelemetry setup to verify logs, traces, and metrics are exported to the configured backends.

Frequently Asked Questions about java-observability

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

FAQPage Schema
How do I configure Java observability in Spring Boot using OpenTelemetry?

To configure Java observability in Spring Boot, you can automate OpenTelemetry integration for distributed tracing, structured logging, and metrics collection. It applies MDC-based correlation and exports telemetry data to configured backends like Jaeger.

How do I add trace_id and span_id to structured JSON logs in Spring Boot?

You can add trace_id and span_id to structured JSON logs by customizing Logback with MDC-based context. This injects OpenTelemetry trace identifiers directly into your logging output for end-to-end visibility.

Does this Spring Boot observability setup support Kubernetes health probes?

Yes, this Spring Boot observability setup supports Kubernetes-friendly probes and profiles. It integrates health checks and Actuator endpoints to provide Kubernetes-ready liveness and readiness indicators.

What is the best way to expose Micrometer metrics to Prometheus in Java?

The best way to expose Micrometer metrics to Prometheus is through automated Actuator integration. This configures your Java Spring Boot application to collect and expose metrics for Prometheus scraping.

Can I sanitize sensitive data in Spring Boot logs and traces?

Yes, you can sanitize sensitive data in Spring Boot logs and traces using built-in data sanitization features. This ensures privacy within your structured logging and MDC-based context before exporting to observability backends.