Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:20:56 +08:00
commit c96959a7a7
8 changed files with 187 additions and 0 deletions

35
commands/setup-tracing.md Normal file
View File

@@ -0,0 +1,35 @@
---
description: Set up distributed tracing
---
# Distributed Tracing Setup
Implement distributed tracing for end-to-end request visibility in microservices.
## Tracing Components
1. **Trace Context Propagation**: Header-based context passing
2. **Span Creation**: Service and operation instrumentation
3. **Trace Collection**: Centralized trace aggregation
4. **Trace Analysis**: Latency breakdown and bottleneck detection
5. **Sampling Strategy**: Managing trace volume and cost
## Process
1. Choose tracing backend (Jaeger, Zipkin, Datadog APM, etc.)
2. Design instrumentation strategy
3. Implement OpenTelemetry or vendor SDK
4. Configure context propagation
5. Set up trace collection and storage
6. Create trace analysis dashboards
## Output
Provide:
- Tracing SDK integration code
- Instrumentation for key services
- Context propagation configuration
- Sampling strategy recommendations
- Backend setup instructions (Jaeger/Zipkin/etc.)
- Dashboard configuration for trace analysis
- Performance impact assessment