Back to list
nexus-labs-automation

request-tracing

by nexus-labs-automation

Claude Code plugin for backend observability - tracing, metrics, logging for Go, Python, Node.js, Java, Rust, and .NET

0🍴 0📅 Dec 26, 2025

SKILL.md


name: request-tracing description: "Instrument HTTP/gRPC endpoints with distributed tracing and RED metrics" triggers:

  • "trace HTTP requests"
  • "instrument endpoints"
  • "distributed tracing"
  • "trace context propagation"
  • "gRPC tracing" priority: 1

Request Tracing

Every request needs: a span, RED metrics, and trace context propagation.

Required Attributes

AttributeExampleNote
http.methodGET, POSTRequired
http.route/api/orders/:idTemplate, not actual path!
http.status_code200, 500Required
user.tierpremiumRecommended (not user_id!)

RED Metrics

Rate:     http.requests.count{method, route, status}
Errors:   http.requests.errors{method, route, error_type}
Duration: http.request.duration{method, route} (histogram p50/p95/p99)

Middleware Flow

Request → Extract trace context (W3C traceparent)
        → Start span (method + route)
        → Start timer
        → Call handler
        → Set status_code
        → Record duration histogram
        → If 4xx/5xx: increment error counter
        → End span
        → Inject trace context into response

Context Propagation

Critical: Always propagate to downstream services:

// Outgoing request
propagator.inject(ctx, headers)

Common Mistakes

  1. Using actual path/api/orders/12345 creates millions of unique values
  2. Missing propagation → Traces break at service boundaries
  3. Only tracking success → Must track errors with error_type

References

  • references/methodology/red-methodology.md
  • references/platforms/{platform}/http.md

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon