@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.
- package/dist/log-core.d.ts +7 -1
- package/dist/log.js +8 -0
- package/package.json +1 -1
package/dist/log-core.d.ts
CHANGED
|
@@ -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