Analyze logging and observability practices and create an improvement plan
Analyzes logging practices and observability gaps to create a comprehensive improvement plan.
/plugin marketplace add dgriffith/bad-daves-robot-army/plugin install dgriffith-bad-daves-robot-army@dgriffith/bad-daves-robot-armyUsing @agent-logging-master prepare a logging and observability review report. You must analyze logging practices, observability gaps, and monitoring setup in the codebase and create a comprehensive plan WITHOUT making any changes.
The user invoked: /logging-review {optional_scope}
Valid scopes:
git status and git diff)git log and git diff)gh pr view and gh pr diff)If scope is "current changes":
git status to identify changed filesgit diff to see uncommitted changesIf scope is "recent changes":
git log --oneline -10 to see recent commitsgit diff HEAD~5..HEAD or appropriate rangeIf scope starts with "PR":
gh pr view {number} to get PR detailsgh pr diff {number} to get the changesIf scope is a path:
If no scope provided:
Logging Coverage Assessment
Log Quality Review
Observability Infrastructure
Performance and Operations
Create a markdown file at /reports/logging-review-{timestamp}.md with:
# Logging and Observability Review Plan
Generated: {timestamp}
Scope: {full_path_or_entire_project}
## Executive Summary
Brief overview of current logging maturity and critical gaps
## Logging Findings
### Critical Issues
- [ ] Issue: Critical logging gap or problem
- [ ] Issue: Security/compliance violation
### High Priority Issues
- [ ] Observability gap: Details and impact
- [ ] Logging quality issue: Details
### Medium Priority Issues
- [ ] Best practice violation: Details
- [ ] Improvement opportunity: Details
### Low Priority Issues
- [ ] Minor issue: Details
## Current State Analysis
### Logging Framework and Configuration
- Framework used: [framework name]
- Configuration location: [path]
- Log levels configured: [levels]
- Output destinations: [console, files, services]
### Log Coverage Assessment
- Components with good logging: [list]
- Components lacking logging: [list]
- Error handling coverage: [percentage/assessment]
- Business logic coverage: [percentage/assessment]
### Log Quality
- Structured format used: [Yes/No - JSON, etc.]
- Correlation IDs present: [Yes/No/Partial]
- Sensitive data risks: [High/Medium/Low]
- Message clarity: [Good/Fair/Poor]
### Observability Infrastructure
- Monitoring tools: [list]
- Log aggregation: [tool/service]
- Dashboards: [available/missing]
- Alerting: [configured/missing]
- Distributed tracing: [implemented/missing]
## Improvement Plan
### Immediate Actions (Critical - 1 week)
1. Fix critical logging security issues
2. Add missing error logging for critical paths
### Short-term (1-4 weeks)
1. Implement structured logging format
2. Add correlation IDs for request tracing
3. Configure proper log levels
4. Remove sensitive data from logs
### Medium-term (1-3 months)
1. Set up centralized log aggregation
2. Implement monitoring dashboards
3. Add distributed tracing
4. Establish log retention policies
### Long-term Improvements (3+ months)
1. Advanced observability features
2. Automated anomaly detection
3. Performance optimization
4. Compliance automation
## Monitoring and Alerting Strategy
- Key metrics to track: [list]
- Alert thresholds: [recommendations]
- Dashboard requirements: [list]
- SLA/SLO considerations: [details]
## Recommendations
### Tools and Technologies
- Logging framework: [recommendation]
- Log aggregation: [tool recommendation]
- Monitoring platform: [recommendation]
- APM solution: [recommendation]
### Best Practices to Implement
- Structured logging standards
- Log level guidelines
- Sensitive data handling
- Performance considerations
- Retention and compliance
### Team Training Needs
- Observability best practices
- Tool-specific training
- Debugging techniques
- Incident response procedures
## Risk Assessment
- Current observability maturity: [Basic/Intermediate/Advanced]
- Mean time to detection (MTTD): [assessment]
- Mean time to resolution (MTTR): [assessment]
- Production debugging capability: [Strong/Fair/Weak]
YOU MUST CREATE THE REPORT FILE. This is not optional.
Create the report file using the Write tool at the specified path:
/reports/{command-name}-{scope}-{timestamp}.mdYYYY-MM-DD-HHmmss/reports/architecture-review-entire-project-2025-10-14-143022.mdFill in ALL sections of the report template
Confirm completion by telling the user:
❌ DON'T: Just summarize findings in the chat ❌ DON'T: Say "I'll create a report" without actually doing it ❌ DON'T: Leave sections incomplete or with placeholders ❌ DON'T: Forget to use the Write tool
✅ DO: Always use the Write tool to create the markdown file ✅ DO: Fill in every section with real findings ✅ DO: Provide the full path to the user when done ✅ DO: Include actionable recommendations
Before responding to the user, verify:
Remember: The report is the primary deliverable. The chat summary is secondary.