Skill files2 files

references/

SKILL.md80 lines
1
---
2
name: distributed-tracing
3
description: Implement distributed tracing with Jaeger and Tempo to track requests across microservices and identify performance bottlenecks. Use when debugging microservices, analyzing request flows, or implementing observability for distributed systems.
4
---
5
6
# Distributed Tracing
7
8
Implement distributed tracing with Jaeger and Tempo for request flow visibility across microservices.
9
10
## Purpose
11
12
Track requests across distributed systems to understand latency, dependencies, and failure points.
13
14
## When to Use
15
16
- Debug latency issues
17
- Understand service dependencies
18
- Identify bottlenecks
19
- Trace error propagation
20
- Analyze request paths
21
22
## Detailed patterns and worked examples
23
24
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
25
26
## Best Practices
27
28
1. **Sample appropriately** (1-10% in production)
29
2. **Add meaningful tags** (user_id, request_id)
30
3. **Propagate context** across all service boundaries
31
4. **Log exceptions** in spans
32
5. **Use consistent naming** for operations
33
6. **Monitor tracing overhead** (<1% CPU impact)
34
7. **Set up alerts** for trace errors
35
8. **Implement distributed context** (baggage)
36
9. **Use span events** for important milestones
37
10. **Document instrumentation** standards
38
39
## Integration with Logging
40
41
### Correlated Logs
42
43
```python
44
import logging
45
from opentelemetry import trace
46
47
logger = logging.getLogger(__name__)
48
49
def process_request():
50
span = trace.get_current_span()
51
trace_id = span.get_span_context().trace_id
52
53
logger.info(
54
"Processing request",
55
extra={"trace_id": format(trace_id, '032x')}
56
)
57
```
58
59
## Troubleshooting
60
61
**No traces appearing:**
62
63
- Check collector endpoint
64
- Verify network connectivity
65
- Check sampling configuration
66
- Review application logs
67
68
**High latency overhead:**
69
70
- Reduce sampling rate
71
- Use batch span processor
72
- Check exporter configuration
73
74
75
## Related Skills
76
77
- `prometheus-configuration` - For metrics
78
- `grafana-dashboards` - For visualization
79
- `slo-implementation` - For latency SLOs
80

© Seth Hobson · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…