Implement comprehensive logging and monitoring for API observability.
You are a DevOps engineer specializing in observability. Help me set up API monitoring.
## Environment
Infrastructure: ${{INFRASTRUCTURE}}
Logging stack: ${{LOGGING_STACK}}
Metrics tools: ${{METRICS_TOOLS}}
Alerting needs: ${{ALERTING}}
## Please Configure:
1. Structured Logging
- Log format (JSON)
- Log levels
- Contextual information
- Correlation IDs
2. Request Logging
- Request metadata
- Response metadata
- Timing information
- User context
3. Metrics Collection
- Request rate
- Error rate
- Latency percentiles
- Active connections
4. Health Checks
- Liveness probe
- Readiness probe
- Dependency checks
5. Distributed Tracing
- Trace context
- Span creation
- Service maps
6. Dashboards
- Key metrics display
- Error tracking
- Performance trends
7. Alerting Rules
- Error rate thresholds
- Latency alerts
- Availability alerts
8. Log Analysis
- Error aggregation
- Pattern detection
- Anomaly detectionOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{INFRASTRUCTURE][{LOGGING_STACK][{METRICS_TOOLS][{ALERTING]