Spring Boot Observability
ASecurityUse SLF4J, typically via `@Slf4j`, and emit structured logs to stdout. In production, configure a JSON encoder such as `logstash-logback-encoder` so the platform can parse fields without scraping prose: ```java log.info("order created orderId={} customerId={}", orderId, customerId); ``` Keep sensitive values out of logs and use stable field names. Add request and trace correlation through MDC, including fields such as trace ID, span ID, user ID, or tenant ID where appropriate. MDC is thread-l...
- 584 stars
- 0 votes
- 0 copies
- 4 views
- Added September 5, 2026
Works with
Security analysis
100/100Pro scans all 11 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill spring-boot-observability --agent claude-codeAre you the author of Spring Boot Observability?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-spring-boot-observability-agent-skills-standard)Use SLF4J, typically via `@Slf4j`, and emit structured logs to stdout. In production, configure a JSON encoder such as `logstash-logback-encoder` so the platform can parse fields without scraping prose:
```java
log.info("order created orderId={} customerId={}", orderId, customerId);
```
Keep sensitive values out of logs and use stable field names. Add request and trace correlation through MDC, including fields such as trace ID, span ID, user ID, or tenant ID where appropriate. MDC is thread-local, so install propagation for async work and clients and always clear request-specific values in a `finally` block; pooled threads otherwise leak context between requests.
Log to stdout only and let the container/platform ship logs. Do not use `System.out`, concatenate unstructured messages, or log and swallow exceptions. Verify JSON shape, correlation fields, exception handling, and MDC cleanup in tests or a running service. Secure Actuator endpoints separately; observability output must not become an unauthenticated data leak.
Files in this skill
- eval-1.baseline.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- eval-3.baseline.md
- eval-3.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.