observability
Load when adding logging, metrics, monitoring, MDC context, or working with Prometheus/Grafana observability infrastructure.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Load when adding logging, metrics, monitoring, MDC context, or working with Prometheus/Grafana observability infrastructure.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Load when developing API endpoints, designing request/response DTOs, creating controllers, or working with BaseResponse wrapper and exception handling patterns.
Load when designing new domains or modules, refactoring architecture, working with Clean Architecture layers, ports/adapters pattern, or cross-domain communication.
Commit, push, and open a PR following project conventions. Use when creating pull requests.
GitHub PR의 코드 리뷰 코멘트를 읽어와 피드백을 반영하고, 각 코멘트에 답글을 남깁니다.
프로젝트 컨벤션에 맞는 일관된 커밋 메시지를 생성하고 커밋을 수행합니다.
Create a GitHub issue following project conventions. Use when creating issues.
| name | observability |
| description | Load when adding logging, metrics, monitoring, MDC context, or working with Prometheus/Grafana observability infrastructure. |
Load this context when adding logging, metrics, or monitoring.
Request tracking with correlation IDs:
// src/main/kotlin/com/neki/common/filter/RequestMdcFilter.kt
class RequestMdcFilter : OncePerRequestFilter() {
override fun doFilterInternal(...) {
MDC.put("requestId", UUID.randomUUID().toString())
MDC.put("uri", request.requestURI)
// ...
}
}
User context in logs:
// src/main/kotlin/com/neki/auth/infra/security/filter/AuthMdcFilter.kt
class AuthMdcFilter : OncePerRequestFilter() {
override fun doFilterInternal(...) {
MDC.put("userId", authentication.id)
// ...
}
}
JSON formatted logs for ELK stack:
<!-- logback-spring.xml -->
<encoder class="net.logstash.logback.encoder.LogstashEncoder"/>
Health checks and metrics endpoint:
# application.yml
management:
endpoints:
web:
exposure:
include: health, metrics, prometheus
endpoint:
health:
show-details: always
Endpoints:
/actuator/health - Health check/actuator/metrics - Application metrics/actuator/prometheus - Prometheus format metricsSingle Source of Truth: infra/monitoring/
| Tool | Purpose |
|---|---|
| Prometheus | Metrics collection |
| Grafana | Dashboards |
Prometheus also collects load-test metrics. Do not modify the monitoring setup without considering load testing impact.
infra/monitoring/