@walkeros/collector 4.9.0 → 4.10.0-next-1794867761610
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +80 -0
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/index.d.mts +13 -17
- package/dist/index.d.ts +13 -17
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,85 @@
|
|
|
1
1
|
# @walkeros/collector
|
|
2
2
|
|
|
3
|
+
## 4.10.0-next-1794867761610
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 61030f8: `status.destinations[id].count` and `status.out` count delivered
|
|
8
|
+
events, one per event for a single push, a batch and a before-chain fan-out
|
|
9
|
+
alike. A rule's `ignore: true` now counts in
|
|
10
|
+
`status.destinations[id].ignored`, and `skipped` counts consent skips only.
|
|
11
|
+
`status.dropped` also holds the routine drops at the source and collector
|
|
12
|
+
positions (`consent`, `ignored`, `stopped`), and `destinations[id].latency` is
|
|
13
|
+
a delivery latency histogram (`LATENCY_BOUNDS_MS` and `latencyBucket` are
|
|
14
|
+
exported by `@walkeros/core`).
|
|
15
|
+
|
|
16
|
+
Migration:
|
|
17
|
+
- An alarm that sums every entry of `status.dropped` now fires on intended
|
|
18
|
+
drops. Read the `queue` and `dlq` counters for buffer overflow.
|
|
19
|
+
- A consumer that read `skipped` for rule ignores reads `ignored`.
|
|
20
|
+
- A destination's counts, failure lines and cause steps sit under `config.id`,
|
|
21
|
+
else its key. A destination whose `config.id` differs from its key now
|
|
22
|
+
counts everything under the id.
|
|
23
|
+
- A destination-level drop (a `before` chain drop, a cache hit) is still
|
|
24
|
+
counted nowhere.
|
|
25
|
+
|
|
26
|
+
- 61030f8: `startFlow({ observe })`, or `collector.observe` in a flow file,
|
|
27
|
+
starts the Observe reporter: `usage` posts counters, gauges and issues every
|
|
28
|
+
`interval` (10 to 300 seconds, default 60), and `preview` posts one row per
|
|
29
|
+
event and per destination outcome, as NDJSON with a Bearer token. It is never
|
|
30
|
+
awaited on the event path, and a failing report is one ERROR line a minute. A
|
|
31
|
+
production web bundle carries no reporter; only a preview build, whose browser
|
|
32
|
+
wrap is given `observe: { preview: { url, token } }`, does. On the minimal
|
|
33
|
+
flow that build grows by 16,064 bytes raw and 6,308 gzipped. `walkeros push`
|
|
34
|
+
and simulate send nothing.
|
|
35
|
+
|
|
36
|
+
Migration:
|
|
37
|
+
- `Logger.Config.mask` is optional and `Logger.Instance.mask(text)` is
|
|
38
|
+
required. A logger built by hand needs a `mask`; `mask: (text) => text` is
|
|
39
|
+
enough.
|
|
40
|
+
- `createBatchedPoster` posts rows of any shape and returns
|
|
41
|
+
`{ push, flush, send, dropped }`; its versioned envelope, `onError` and
|
|
42
|
+
`onStatus` are gone, and `onResult` says whether a post was a page leave's
|
|
43
|
+
`keepalive` one. A page-leave body is at most `KEEPALIVE_BODY_BYTES`
|
|
44
|
+
(16,384).
|
|
45
|
+
- `redactLine` is exported from `@walkeros/core` too (`scrubSecrets` stays in
|
|
46
|
+
`@walkeros/core/node`). Both mask every `wos_` token and the credential
|
|
47
|
+
after `Bearer` or `Basic`.
|
|
48
|
+
- `FlowState.seq` and `'sampled_out'` are removed from `skipReason`; nothing
|
|
49
|
+
set them.
|
|
50
|
+
|
|
51
|
+
- 61030f8: Observe v1 is removed: no `elbObserve` URL parameter, no Observe
|
|
52
|
+
sessions, no journey assembly and no trace-level capture of vendor calls. The
|
|
53
|
+
new Observe reporter replaces it (see the Observe reporter changeset).
|
|
54
|
+
|
|
55
|
+
Migration:
|
|
56
|
+
- Delete `config.observe`, `collector.observe` of the old shape, the `observe`
|
|
57
|
+
`startFlow` option, `pageObserveSlot`, `elbPreviewSession` and the `observe`
|
|
58
|
+
wrap option. `flows.<name>.config` now accepts only `platform`, `url`,
|
|
59
|
+
`settings` and `bundle`; any other key fails `walkeros validate` with
|
|
60
|
+
`UNKNOWN_KEY` at its path.
|
|
61
|
+
- `observeEnv` is now `recordEnv` and `ObservedEnv` is `RecordedEnv`, with no
|
|
62
|
+
alias. The recorder takes no `record` callback and reports no `unresolved`
|
|
63
|
+
paths, and `wrapEnv` no longer returns `unresolved`.
|
|
64
|
+
- Removed from `@walkeros/core`: `observeFromEnv`, `assembleJourneys` and the
|
|
65
|
+
journey types, `createTelemetryObserver`, the trace state helpers,
|
|
66
|
+
`Destination.Instance.calls`, `Collector.Instance.observeLevel` and
|
|
67
|
+
`FlowState.calls`. The `observers` option and `FlowState` stay.
|
|
68
|
+
- A page on the new web-core no longer strips the old `elbObserve` and
|
|
69
|
+
`elbPreviewSession` URL parameters (`elbPreview` is still stripped). The
|
|
70
|
+
preview grant verifier takes a page and its origin only (`origin` is
|
|
71
|
+
required); the `ses` and `sb` claims are gone.
|
|
72
|
+
- The runner no longer reads `WALKEROS_OBSERVE_LEVEL`, the observer variables
|
|
73
|
+
or the `WALKEROS_PREVIEW_*` intake variables, and `createHealthServer` takes
|
|
74
|
+
`(port, logger)`. The `previewGrantTargets` wrap option is removed.
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- Updated dependencies [61030f8]
|
|
79
|
+
- Updated dependencies [61030f8]
|
|
80
|
+
- Updated dependencies [61030f8]
|
|
81
|
+
- @walkeros/core@4.10.0-next-1794867761610
|
|
82
|
+
|
|
3
83
|
## 4.9.0
|
|
4
84
|
|
|
5
85
|
### Minor Changes
|