|
|
@@ -254,6 +254,28 @@ Kontroll: `docker exec clickstack sh -c 'tail -3 /var/log/otel-collector.log'` (
|
|
|
-H 'authorization: <INGEST_KEY>' http://127.0.0.1:4318/v1/metrics` → 200.
|
|
|
(Pikaajaline: collector võiks seed'i ebaõnnestumisel retry'da, mitte surra — upstream.)
|
|
|
|
|
|
+## Client Sessions (session replays) — browser-integratsioon
|
|
|
+- Session-allikas: **`Sessions`** (`_id 6a95600db1eca667454bec83`, `from default.hyperdx_sessions`,
|
|
|
+ seotud Traces-allikaga). Andmeid kogub **HyperDX Browser SDK** (@hyperdx/browser).
|
|
|
+- **Ingest-key (brauser):** `02a19ecf-f62e-4e17-819f-3ee1498d69f3` (= team apiKey = HYPERDX_INGEST_KEY).
|
|
|
+ ⚠️ `HYPERDX_API_KEY` **peab olema sama** (ka API logger kasutab seda); varem oli vale
|
|
|
+ (`790900ff…`) → `/api/config` andis vale key ja API logid said 401.
|
|
|
+- **Ingest-endpoint:** `https://otel.odamus.com` (edge Caddy → `100.87.1.24:4318`; CORS OK:
|
|
|
+ OPTIONS 204, Allow-Origin `*`). DNS: DO A `otel.odamus.com` → `188.166.84.16`.
|
|
|
+- **Snippet** (rakendustes enne `</body>`; key on serveripoolne ingest-key, brauseris nähtav — HyperDX standard):
|
|
|
+ ```html
|
|
|
+ <script src="https://unpkg.com/@hyperdx/browser@0.26.0/build/index.js"></script>
|
|
|
+ <script>if(window.HyperDX){HyperDX.init({apiKey:'02a19ecf-f62e-4e17-819f-3ee1498d69f3',
|
|
|
+ service:'<app>',url:'https://otel.odamus.com',consoleCapture:true,
|
|
|
+ advancedNetworkCapture:true,maskAllInputs:true,maskAllText:true});}</script>
|
|
|
+ ```
|
|
|
+- **Instrumenteeritud:** veebipood (`app/templates/base.html`), liiklusatlas
|
|
|
+ (`web/index.html`, `web/tutvustus.html`), nutikodu-web (`static/index.html`), HyperDX UI ise
|
|
|
+ (`/api/config` env-iga: `HYPERDX_API_KEY` + `NEXT_PUBLIC_OTEL_EXPORTER_OTLP_ENDPOINT`).
|
|
|
+- **Dashboard:** „Ohmu — sessioonid (client)" (`_id 6ac014f48475db7c237f16fe`) —
|
|
|
+ sessioonid ajas (line) + teenuse kaupa (table), source = session-allikas.
|
|
|
+- Kontroll: `SELECT ServiceName, count() FROM default.hyperdx_sessions GROUP BY ServiceName`.
|
|
|
+
|
|
|
## Seotud
|
|
|
- Vahejuhtumite audit: `../LOEMIND_seisevad_konteinerid.md`
|
|
|
- Serveri mudelid: `~/servers/LOEMIND/llama-server.md`
|