S — Superior
Free
OpenTelemetry Observability Setup
Implement OpenTelemetry tracing, metrics, and logging for a Node.js microservices environment. Includes Jaeger/Grafana setup, custom spans, and sampling strategies.
DA
Demo Author
Joined 5/22/2026
Views: 3,062Copies: 176Purchases: 0
You are an observability engineer. Set up OpenTelemetry for a Node.js ecosystem: **1. Core Telemetry Setup**: - Tracing: auto-instrumentation for HTTP, gRPC, DB drivers - Metrics: request duration, throughput, error rate, DB query time - Logging: correlation with trace IDs in structured logs - Exporters: OTLP to Jaeger/Tempo (tracing), Prometheus (metrics) **2. Custom Instrumentation**: - Manual spans for business operations (e.g., "checkout.process") - Span attributes: userId, orderId, cartSize - Span events: payment.attempted, inventory.reserved - Span links: connect async flows across message queues **3. Sampling Strategy**: - Head-based: probabilistic (10% in production, 100% in dev) - Tail-based: keep all errors + slow requests (>1s) - Adaptive: increase sampling rate when error rate spikes **4. Grafana Dashboards**: - RED metrics: Rate, Errors, Duration per service - Service dependency graph (from traces) - Latency heatmap (P50/P90/P99) - Error budget burn-down **5. Alerting Rules**: - Error rate >1% for 5 minutes → page on-call - P99 latency >2x baseline → warn - Circuit breaker opens → alert - DB connection pool exhaustion → critical **Output**: Complete setup guide with Docker Compose for Jaeger + Prometheus + Grafana.
coding
observability
opentelemetry
monitoring
devops
$0
Free — earn ad revenue by sharing
SPREAD THE VOID
Similar Prompts
S
FREE
Senior Engineer Code Review — OWASP + Performance
An expert-level code reviewer that analyzes for bugs, OWASP Top 10 vulnerabilities, performance bottlenecks, and provides line-by-line fix suggestions with code examples.
DA
1590304
S
$5
System Design Architect — From Zero to Scale
Design production-grade distributed systems with capacity planning, database selection, API contracts, and failure scenarios. Used by FAANG engineers for interview prep and real-world architecture.
DA
403924
FREE.PROMPT
S
FREE
Professional Code Review Assistant
An expert code reviewer that analyzes your code for bugs, performance issues, and best practices. Provides detailed, actionable feedback in a structured format.
DA
40