> spring-boot-observability
Standards for Micrometer, Distributed Tracing, and Structured Logging. Use when adding Micrometer metrics, distributed tracing, or structured logging to Spring Boot. (triggers: logback-spring.xml, application.properties, micrometer, tracing, correlation-id, mdc)
curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/spring-boot-observability?format=md"Spring Boot Observability
Priority: P0
Implementation Guidelines
Distributed Tracing
- Correlation IDs: Enable trace/span ID injection.
- Propagation: Propagate context across threads (
@Async) and clients. - OpenTelemetry: Use OTel bridge (
micrometer-tracing-bridge-otel).
Structured Logging
- Format: Use JSON logging (
logstash-logback-encoder) in production. - MDC: Use MDC for contextual info (userId, tenantId).
- Output: Log to stdout only. Let container handle shipping.
Actuator
- Security: Secure
/actuator/**with Admin role. - Probes: Enable K8s Liveness/Readiness probes.
Anti-Patterns
- System.out:
**No System.out**: Use Slf4j. - Public Actuator:
**No Open Actuator**: Secure endpoints. - Custom Tracing:
**No DIY Tracing**: Use Micrometer.
References
> related_skills --same-repo
> typescript-tooling
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling. (triggers: tsconfig.json, .eslintrc.*, jest.config.*, package.json, eslint, prettier, jest, vitest, build, compile, lint)
> typescript-security
Secure coding practices for TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration. (triggers: **/*.ts, **/*.tsx, validate, sanitize, xss, injection, auth, password, secret, token)
> typescript-language
Modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings. (triggers: **/*.ts, **/*.tsx, tsconfig.json, type, interface, generic, enum, union, intersection, readonly, const, namespace)
> typescript-best-practices
Idiomatic TypeScript patterns for clean, maintainable code. Use when writing or refactoring TypeScript classes, functions, modules, or async logic. (triggers: **/*.ts, **/*.tsx, class, function, module, import, export, async, promise)