Spring Boot Microservices
ASecurityUse Micrometer Tracing with the OpenTelemetry bridge rather than creating trace IDs manually. Add the tracing and metrics dependencies, for example `micrometer-tracing-bridge-otel`, configure the exporter/propagation in `application.yaml`, and ensure the context travels through HTTP clients, message handlers, and `@Async` execution. Every log line should carry the trace/span correlation fields. Use SLF4J and structured JSON logging in production; if you add request metadata to MDC, clear it i...
- 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-microservices --agent claude-codeAre you the author of Spring Boot Microservices?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-spring-boot-microservices-d05adb28)Use Micrometer Tracing with the OpenTelemetry bridge rather than creating trace IDs manually. Add the tracing and metrics dependencies, for example `micrometer-tracing-bridge-otel`, configure the exporter/propagation in `application.yaml`, and ensure the context travels through HTTP clients, message handlers, and `@Async` execution.
Every log line should carry the trace/span correlation fields. Use SLF4J and structured JSON logging in production; if you add request metadata to MDC, clear it in a `finally` block so pooled threads cannot leak one request's context into another. Configure log correlation for the service and propagate the trace context through Feign/HTTP Interfaces and Spring Cloud Stream messages.
Expose metrics and tracing diagnostics through Actuator, but secure `/actuator/**` and expose only the endpoints needed by operators. Verify the implementation by making a request across at least two services, checking that the same trace is visible in both services and that the trace ID appears in logs. Also test async and failure paths, where missing propagation is common.
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.