feat: distributed tracing with OpenTelemetry + Grafana Tempo - #79
Conversation
- New @paws/telemetry package: OTel SDK init for Bun, Hono tracing middleware, trace context propagation (W3C traceparent), helper utils - Grafana Tempo added to docker-compose for trace storage (OTLP HTTP) - Control-plane + worker instrumented with tracing middleware - Cross-service trace propagation via worker-client fetch headers - Logger enriched with trace/span IDs (pluggable enricher pattern) - Grafana datasources: Tempo with trace-to-logs (Loki) and trace-to-metrics (VictoriaMetrics) correlation - VictoriaMetrics alerting rules: worker down, high failure rate, capacity exhaustion, API latency, session duration Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 2 minutes and 10 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (21)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Deploying getpaws with
|
| Latest commit: |
36914d0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://28236fda.getpaws-6m4.pages.dev |
| Branch Preview URL: | https://feat-otel-tracing.getpaws-6m4.pages.dev |
Summary
@paws/telemetrypackage — OpenTelemetry SDK setup for Bun (programmatic init, no--require), Hono tracing middleware that creates spans per request with HTTP semantic conventions, W3C trace context propagation helperstraceId/spanIdfields via pluggable enricher pattern (no hard dep on telemetry)What this enables
Test plan
bun run typecheck— 41/41 tasks passbun run test— 30/30 tasks passdocker-compose upand verify Tempo receives tracestraceIdfields and link to Tempo🤖 Generated with Claude Code