observabilitylisted
Install: claude install-skill IuliaIvanaPatras/claude-code-templates
# Observability Skill
Production observability for Spring Boot 4 with OpenTelemetry, Micrometer, Actuator, and structured logging.
## When to Use
- "add logging" / "structured logs" / "monitoring"
- "metrics" / "Prometheus" / "Grafana dashboard"
- "tracing" / "distributed tracing" / "correlation IDs"
- "health checks" / "Kubernetes probes" / "Actuator"
---
## Quick Reference: Three Pillars
| Pillar | Tool | Export To | Purpose |
|--------|------|-----------|---------|
| **Logs** | SLF4J + Logback (structured) | Elasticsearch, Loki | Debug, audit, error tracking |
| **Metrics** | Micrometer | Prometheus → Grafana | Throughput, latency, saturation |
| **Traces** | OpenTelemetry | Jaeger, Tempo, Zipkin | Request flow across services |
---
## Structured Logging (ECS Format)
### Configuration
```yaml
# application.yml
logging:
structured:
format:
console: ecs # Elastic Common Schema
level:
root: INFO
com.example.myapp: DEBUG
org.springframework.security: WARN
org.hibernate.SQL: DEBUG # Show SQL in dev
org.hibernate.orm.jdbc.bind: TRACE # Show bind params in dev
```
### Output (JSON — machine-parseable)
```json
{
"@timestamp": "2026-03-26T10:15:30.123Z",
"log.level": "INFO",
"logger": "com.example.myapp.user.UserService",
"process.pid": 1234,
"thread.name": "virtual-42",
"service.name": "my-service",
"message": "User created successfully",
"trace.id": "abc123def456",
"span.id": "789ghi",
"user.id": "550e840