Przejdź do treści
Biblioteka skilli
DevOps i chmura · Analiza

network-tracing

/network-tracing

Instrumentuje żądania API spanami i rozproszonym śledzeniem, aby mierzyć opóźnienia, korelować ślady klienta i backendu oraz debugować problemy z API.

Licencja
MIT
Ostatnia zmiana repozytorium
23.08.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 23.08.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Instrumentuje żądania API spanami i rozproszonym śledzeniem, aby mierzyć opóźnienia, korelować ślady klienta i backendu oraz debugować problemy z API.

Oryginalny opis (EN)

Instrument API requests with spans and distributed tracing. Use when tracking request latency, correlating client-backend traces, or debugging API issues.

Jak działa

  1. What to Capture (OTel-Compatible Names)
  2. Distributed Tracing
  3. Key Thresholds
  4. Integration Options
  5. Platform Integration Points
  6. Implementation
Sekcje z nagłówków SKILL.md, w oryginale · 76 linii, 338 słów
Podgląd SKILL.md
---
name: network-tracing
description: Instrument API requests with spans and distributed tracing. Use when tracking request latency, correlating client-backend traces, or debugging API issues.
triggers:
  - "correlate backend traces"
  - "distributed tracing"
  - "network performance"
  - "slow API calls"
  - "trace requests"
  - "track API requests"
priority: 2
---

# Network Tracing

Measure API requests and correlate with backend traces.

## What to Capture (OTel-Compatible Names)

| Attribute | OTel Name | Purpose |
|-----------|-----------|---------|
| Method | `http.request.method` | GET, POST, etc. |
| Status | `http.response.status_code` | Success/failure |
| URL | `url.path` | Endpoint (sanitized) |
| Duration | `http.request.duration` | Request time (ms) |
| Size | `http.response.body.size` | Payload bytes |

Using OTel naming = easier migration when OTel mobile matures.
See `references/otel-mobile.md` for rationale.

## Distributed Tracing

Propagate trace context to backend:

```
Client Request
    │
    ├── traceparent: 00-{trace_id}-{span_id}-01
    ├── X-Request-Id: {uuid}
    └── X-Session-Id: {session}
         │
         ▼
    Backend (correlates logs with trace_id)
```

## Key Thresholds

| Metric | Good | Acceptable | Poor |
|--------|------|------------|------|
| API p50 | <500ms | <1s | >1s |
| API p95 | <2s | <5s | >5s |
| Error rate | <1% | <3% | >3% |

## Integration Options

**Choose based on existing vendor:**

| Vendor | iOS | Android | Approach |
|--------|-----|---------|----------|
| Sentry | Auto URLSession swizzling | OkHttp integration | Automatic |
| Datadog | URLSession delegate | OkHttp interceptor | Semi-auto |
| Embrace | Auto-instrumentation | Auto-instrumentation | Automatic |
| New Relic | Auto URLSession instrumentation | Auto OkHttp/HttpURLConnection | Automatic |
| Custom | Manual interceptor | Manual interceptor | Manual |

**Automatic (swizzling):** Less code, may miss custom clients
**Manual (interceptors):** More control, works with any HTTP client

## Platform Integration Points

| Platform | Manual Option | Works With |
|----------|---------------|------------|
| iOS | URLSession delegate | All URLSession-based clients |
| iOS | Alamofire EventMonitor | Alamofire |
| Android | OkHttp Interceptor | OkHttp, Retrofit |
| Android | Ktor HttpClientPlugin | Ktor |
| RN | fetch wrapper | Native fetch |
| RN | axios interceptor | axios |

## Implementation

See `references/mobile-challenges.md` (Client-Backend Correlation) for:
- W3C trace header format
- Platform-specific interceptor code
- Backend log correlation patterns

See `references/performance.md` (Network section) for latency budgets.

Wersje

W bazie nie ma innych skilli o nazwie network-tracing.

Migawka bazy z 13.11.2026 · wersja paczki 45eb9b0fdcda (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100spring-boot-observability
    Instrumentuje Spring Boot metrykami Micrometer, rozproszonym śledzeniem i logowaniem strukturalnym.
  • 100distributed-tracing
    Wdraża distributed tracing z Jaegerem i Tempo, aby śledzić żądania między mikroserwisami i znajdować wąskie gardła wydajności.
  • 100matlab-instrument-opentelemetry-tracing
    Dodaje do kodu MATLAB śledzenie OpenTelemetry: tworzenie spanów, propagację kontekstu rodzic-dziecko, obsługę błędów, atrybuty, zdarzenia i konwencje semantyczne w rozproszonym tracingu.
  • 100vigil-instrument
    Instrumentuje usługę przez OpenTelemetry: metryki RED, ustrukturyzowane logi, distributed tracing i health checki, dostarczając gotowy kod i konfigurację.
  • 100opentelemetry
    Instrumentuje aplikacje i infrastrukturę w OpenTelemetry dla zunifikowanych śladów, metryk i logów, przy rozproszonym śledzeniu, diagnozowaniu usług i obserwowalności niezależnej od dostawcy.
  • 100distributed-tracing
    Wdraża rozproszone śledzenie z Jaegerem i Tempo, aby śledzić żądania między mikroserwisami i znajdować wąskie gardła wydajności.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.