autotel-devtools 6.1.0 → 6.1.1
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/cli.cjs +6 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +6 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +6 -3
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +6 -3
- package/dist/server/index.js.map +1 -1
- package/dist/widget.global.js +11 -8
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -425,13 +425,16 @@ var DevtoolsServer = class {
|
|
|
425
425
|
addTraces(traces) {
|
|
426
426
|
for (const trace of traces) this.addTrace(trace);
|
|
427
427
|
}
|
|
428
|
+
// `errors` is full-state on every broadcast (the client replaces, not appends),
|
|
429
|
+
// so non-trace broadcasts must echo the current error groups rather than `[]` —
|
|
430
|
+
// otherwise a log/metric arriving after an error would wipe it from the UI.
|
|
428
431
|
addLog(log) {
|
|
429
432
|
this.logs = appendWithLimit(this.logs, log, this.limits.maxLogCount);
|
|
430
|
-
this.broadcast({ traces: [], metrics: [], logs: [log], errors:
|
|
433
|
+
this.broadcast({ traces: [], metrics: [], logs: [log], errors: this.errorAggregator.getErrorGroups() });
|
|
431
434
|
}
|
|
432
435
|
addLogs(logs) {
|
|
433
436
|
this.logs = appendManyWithLimit(this.logs, logs, this.limits.maxLogCount);
|
|
434
|
-
this.broadcast({ traces: [], metrics: [], logs, errors:
|
|
437
|
+
this.broadcast({ traces: [], metrics: [], logs, errors: this.errorAggregator.getErrorGroups() });
|
|
435
438
|
}
|
|
436
439
|
addMetric(metric) {
|
|
437
440
|
this.metrics = appendWithLimit(
|
|
@@ -439,7 +442,7 @@ var DevtoolsServer = class {
|
|
|
439
442
|
metric,
|
|
440
443
|
this.limits.maxMetricCount
|
|
441
444
|
);
|
|
442
|
-
this.broadcast({ traces: [], metrics: [metric], logs: [], errors:
|
|
445
|
+
this.broadcast({ traces: [], metrics: [metric], logs: [], errors: this.errorAggregator.getErrorGroups() });
|
|
443
446
|
}
|
|
444
447
|
getCurrentData() {
|
|
445
448
|
return {
|