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

haven-logs

/haven-logs

Czyta logi, błędy, ślady, metryki i profile stosu haven poleceniami logs, errors, obs traces, obs query, obs metrics i obs profiles oraz sekcje stores i jobs w status, z opcją --agent.

Repozytorium
langwatch ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
27.10.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 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Czyta logi, błędy, ślady, metryki i profile stosu haven poleceniami logs, errors, obs traces, obs query, obs metrics i obs profiles oraz sekcje stores i jobs w status, z opcją --agent.

Wyzwalacze z opisu

haven logsread the api logtail the loghaven logs -fhaven traceshaven metricshaven queryhaven stores

Argumenty

/haven-logs [logs <service> --since 10m --level warn --agent | errors | obs traces | obs query traceql '<q>']
Oryginalny opis (EN)

Read a haven stack's own logs, errors, traces, metrics and profiles: `haven logs`, `errors`, `obs traces`, `obs query`, `obs metrics`, `obs profiles` and the `status` stores and jobs sections, with `--agent` for plain output. Use when someone says 'haven logs', 'read the api log', 'tail the log', 'haven logs -f', 'haven traces', 'haven metrics', 'haven query', 'haven stores', 'haven jobs', 'what failed in the stack', 'haven errors', 'haven obs traces', 'slow traces of the stack', 'logs for a trace', 'traceql', 'logql', 'promql', 'haven obs query', 'haven obs metrics', 'what is burning CPU', 'i

Jak działa

  1. Reads
  2. Raw queries
Sekcje z nagłówków SKILL.md, w oryginale · 59 linii, 565 słów
Podgląd SKILL.md
---
name: haven-logs
description: "Read a haven stack's own logs, errors, traces, metrics and profiles: `haven logs`, `errors`, `obs traces`, `obs query`, `obs metrics`, `obs profiles` and the `status` stores and jobs sections, with `--agent` for plain output. Use when someone says 'haven logs', 'read the api log', 'tail the log', 'haven logs -f', 'haven traces', 'haven metrics', 'haven query', 'haven stores', 'haven jobs', 'what failed in the stack', 'haven errors', 'haven obs traces', 'slow traces of the stack', 'logs for a trace', 'traceql', 'logql', 'promql', 'haven obs query', 'haven obs metrics', 'what is burning CPU', 'is the database at its limit', or 'what did the up run'. These are the stack's own OTel data, not product traces."
user-invocable: true
argument-hint: "[logs <service> --since 10m --level warn --agent | errors | obs traces | obs query traceql '<q>']"
---

# haven logs, traces and the stack's own telemetry

This is the stack's OTel telemetry (Tempo, Loki, Prometheus, Pyroscope), not product traces.
Every read is filtered to this worktree and prints a Grafana deep link (`grafana` in `--json`).
`--agent` (or `HAVEN_AGENT=1`) makes output plain: no colour, no redraws.

## Reads

| Need                                  | Command                                                                 |
| ------------------------------------- | ----------------------------------------------------------------------- |
| One service's log                     | `haven logs api --since 10m --agent`                                    |
| Only warnings and worse               | `haven logs api --level warn --agent` (`error` too)                     |
| Follow live                           | `haven logs api -f`                                                     |
| Grep the captured read                | `haven logs api --grep boom`                                            |
| Full info/debug stream from Loki      | `haven logs api --loki --since 1h --grep timeout`                       |
| Logs for one trace                    | `haven logs --trace <trace-id>` (implies `--loki`)                      |
| Last distinct failures, grouped       | `haven errors --agent`                                                  |
| Recent root spans                     | `haven obs traces --json`                                               |
| One trace's span tree                 | `haven obs traces <trace-id> --json`                                    |
| Slow or failing traces                | `haven obs traces --min-duration 500ms --errors`                        |
| Filter traces                         | `haven obs traces --service api --name checkout --since 1h`             |
| Request rate, latency, queues, memory | `haven obs metrics --json`                                              |
| Functions burning CPU and heap        | `haven obs profiles --json`                                             |
| Each database server vs its limit     | `haven status --json stores`                                            |
| The one-shot lanes of the last up     | `haven status --json jobs` (install, codegen, migrations, seed, images) |
| Another worktree's stack              | add `--stack <slug>` to any of these                                    |

`haven logs` flags: `-f/--follow` (`-t` is retired and exits 64), `--since <dur>`, `--level warn|error`, `--loki`, `--grep <text>`,
`--trace <id>`, `--stack <slug>`, `--raw` (the child's own bytes), `--json` (one object per line,
lane stamped). `haven obs traces` also takes `--since` (default 10m).

- Services are lanes: `ui` (under `--watch` and `--hmr`), `api`, `go`, `langy`, or a simulator name
  (`haven logs mail`). The api lane hosts the worker, so `haven logs api` and `haven logs worker`
  each show half of it (one Node process by default: `dev-runtime`). The simulators run in the `go`
  lane by default, so `haven logs go` shows them with the gateway; `haven logs <sim>` reads one.
- `--loki` and `--trace` need the observability stack (on by default with `haven up`); services match
  as substrings of the OTel service name.
- `--trace` finds only lines whose structured metadata carries `trace_id`; when none do it is
  empty, so fall back to `--since` around the trace's start time.
- `haven logs ui` shows each UI rebuild's `built in <ms>` and `ui bundle swapped in`.
- Never poll a slow boot in a loop. Read `haven status` once, later.

## Raw queries

When the flags cannot ask, `haven obs query traceql|logql|promql '<query>'` sends a raw query
(`--since` default 1h, `--limit` default 100, `--stack <slug>`, `--json`). Every selector gets this
worktree's filter forced in, so results never mix stacks; the scoped query is echoed in `query`.
`--json` returns `{query, grafana, data}`.

```bash
haven obs query traceql '{ status = error && duration > 1s }'
haven obs query logql 'sum by (service_name) (count_over_time({service_name=~".+"} |= "timeout" [5m]))'
haven obs query promql 'rate(http_server_request_duration_count[5m])' --since 30m
```

Never search the repo with `rg -uu` for a log string: use `git grep`. Stack will not come up or the
log is frozen: `troubleshooting.md` in the `haven` skill.

Wersje

W bazie nie ma innych skilli o nazwie haven-logs.

Migawka bazy z 28.10.2026 · wersja paczki 31d2463b9fd3 (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

  • 100haven
    Obsługuje codzienną pracę z thuishaven (haven), orkiestratorem stosu deweloperskiego: start, stop i stan stosu worktree, logi, bezpieczny wydruk środowiska, adresy URL aplikacji i API oraz sterowanie stosem jako agent.
  • 100dt-obs-logs
    Wyszukuje i filtruje logi w Dynatrace, analizuje wzorce błędów i liczy wskaźnik błędów dla logów aplikacji i infrastruktury, także z korelacją danych.
  • 90haven-db
    Resetuje, ponownie zasila i przycina bazy danych stosu haven, wskazując polecenia, które usuwają dane.
  • 100dt-obs-tracing
    Analizuje rozproszone ślady, spany, zależności usług i przepływ żądań w Dynatrace przy szukaniu błędów, wąskich gardeł wydajności i korelacji śladów.
  • 100analyze-local-telemetry
    Analizuje lokalnie przechwycone ślady, logi i metryki OTel: przegląda spany, szuka wolnych operacji, koreluje logi ze śladami, odpytując dev/local-telemetry przez SQL po HTTP.
  • 100cx-telemetry-querying
    Odpowiada na pytania o dane telemetryczne Coralogix: badanie incydentów, debugowanie, błędy, logi, trasy, spany i opóźnienia żądań.

Uwagi i zgłoszenia

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