@steve31415/baselib 3.42.0 → 3.43.0

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.
@@ -65,7 +65,13 @@ export interface ShipperOptions {
65
65
  * (uncounted) attempt (default 40 s). */
66
66
  offlineRetryMs?: number;
67
67
  /** Per-attempt fetch timeout (default 10s; 3s aborted most of the fleet's
68
- * attempts in the two weeks to 2026-08-28). */
68
+ * attempts in the two weeks to 2026-08-28). Headroom judgment 2026-10-30
69
+ * (watchdog task f4ec3337): steady-state ingest takes ~0.2–2 s (≤ 0.2 of
70
+ * the limit). What still times out is a fresh instance's startup line
71
+ * shipped while Cloud Run throttles its CPU (no request in flight), which
72
+ * a longer timeout would not cure — it waits for CPU, not for Axiom — and
73
+ * flush() callers wait up to this + 500 ms, so raising it lengthens the
74
+ * worst-case request. Kept at 10 s; the retry delivers those batches. */
69
75
  attemptTimeoutMs?: number;
70
76
  /** Caps across ALL undelivered batches; overflow drops oldest with an
71
77
  * onGiveUp('buffer-overflow'). Defaults 5000 events / 5 MB. */
package/dist/log.js CHANGED
@@ -88,6 +88,14 @@ export function stdoutShipMarkers(app, dataset) {
88
88
  attempt: batch.attempt,
89
89
  max_attempts: batch.maxAttempts,
90
90
  error: String(error),
91
+ // Whether Cloud Run had CPU allocated: request-based billing throttles
92
+ // an idle instance to almost nothing, and a fresh instance's startup
93
+ // line ships just after its startup probe passes — with no request in
94
+ // flight when a deploy or replacement starts it ahead of traffic. Its
95
+ // 10 s attempt then times out (watchdog task f4ec3337, 2026-10-30:
96
+ // all 12 batches that failed on 10-29 13:33–16:25Z were such startup lines).
97
+ uptime_ms: Math.round(process.uptime() * 1000),
98
+ ...processMeta(),
91
99
  message: `axiom ship attempt ${batch.attempt}/${batch.maxAttempts} failed: ${String(error)} ` +
92
100
  `(${batch.events.length} events, ${batch.bytes} bytes; will retry)`,
93
101
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steve31415/baselib",
3
- "version": "3.42.0",
3
+ "version": "3.43.0",
4
4
  "description": "Plasticine new-world shared platform library: logging, auth, service-to-service auth, db, HTTP, sync, app updates",
5
5
  "type": "module",
6
6
  "license": "MIT",