@neat.is/core 0.9.10 → 0.9.12-dev.20260831
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/{chunk-C3LHXC55.js → chunk-3UAUMPIY.js} +5 -21
- package/dist/chunk-3UAUMPIY.js.map +1 -0
- package/dist/{chunk-UHNE7LGF.js → chunk-UNO3X6ZV.js} +2 -2
- package/dist/cli.cjs +4 -20
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/index.cjs +4 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/neatd.cjs +4 -20
- package/dist/neatd.cjs.map +1 -1
- package/dist/neatd.js +2 -2
- package/dist/server.cjs +22 -20
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-C3LHXC55.js.map +0 -1
- /package/dist/{chunk-UHNE7LGF.js.map → chunk-UNO3X6ZV.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveHost,
|
|
7
7
|
resolveNeatVersion,
|
|
8
8
|
writeDaemonRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UNO3X6ZV.js";
|
|
10
10
|
import {
|
|
11
11
|
buildSearchIndex
|
|
12
12
|
} from "./chunk-BC53SCT7.js";
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
startStalenessLoop,
|
|
76
76
|
upsertConnectorEntry,
|
|
77
77
|
validateConnectorEntry
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-3UAUMPIY.js";
|
|
79
79
|
import {
|
|
80
80
|
startOtelGrpcReceiver
|
|
81
81
|
} from "./chunk-ERE47MCR.js";
|
package/dist/index.cjs
CHANGED
|
@@ -6567,6 +6567,7 @@ function buildErrorEventForReceiver(span, graph, scanPath) {
|
|
|
6567
6567
|
const ts = span.startTimeIso ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
6568
6568
|
const locus = incidentLocus(span, graph, scanPath);
|
|
6569
6569
|
const attrs = withRecoveredCodeAttrs(sanitizeAttributes(span.attributes), locus);
|
|
6570
|
+
const httpStatus = httpResponseStatus(span);
|
|
6570
6571
|
return {
|
|
6571
6572
|
id: `${span.traceId}:${span.spanId}`,
|
|
6572
6573
|
timestamp: ts,
|
|
@@ -6576,6 +6577,7 @@ function buildErrorEventForReceiver(span, graph, scanPath) {
|
|
|
6576
6577
|
errorMessage: incidentMessage(span),
|
|
6577
6578
|
...span.exception?.type ? { exceptionType: span.exception.type } : {},
|
|
6578
6579
|
...span.exception?.stacktrace ? { exceptionStacktrace: span.exception.stacktrace } : {},
|
|
6580
|
+
...httpStatus !== void 0 ? { httpStatusCode: httpStatus } : {},
|
|
6579
6581
|
...Object.keys(attrs).length > 0 ? { attributes: attrs } : {},
|
|
6580
6582
|
affectedNode: locus.affectedNode
|
|
6581
6583
|
};
|
|
@@ -6927,26 +6929,8 @@ async function handleSpan(ctx, span) {
|
|
|
6927
6929
|
if (span.statusCode === 2) {
|
|
6928
6930
|
stitchTrace(ctx.graph, sourceId, ts);
|
|
6929
6931
|
if (ctx.writeErrorEventInline !== false) {
|
|
6930
|
-
const
|
|
6931
|
-
|
|
6932
|
-
const ev = {
|
|
6933
|
-
id: `${span.traceId}:${span.spanId}`,
|
|
6934
|
-
timestamp: ts,
|
|
6935
|
-
service: span.service,
|
|
6936
|
-
traceId: span.traceId,
|
|
6937
|
-
spanId: span.spanId,
|
|
6938
|
-
errorMessage: incidentMessage(span),
|
|
6939
|
-
...span.exception?.type ? { exceptionType: span.exception.type } : {},
|
|
6940
|
-
...span.exception?.stacktrace ? { exceptionStacktrace: span.exception.stacktrace } : {},
|
|
6941
|
-
...Object.keys(attrs).length > 0 ? { attributes: attrs } : {},
|
|
6942
|
-
// Attribute to where the failure originated — the symbol / file / service
|
|
6943
|
-
// the throwing span named (incidentAffectedNode / ADR-191, extended to
|
|
6944
|
-
// recover the locus from the stacktrace when the span stamped no code.*
|
|
6945
|
-
// attrs, ADR-216) — the same source-based attribution the durable
|
|
6946
|
-
// receiver write uses, not the outbound edge target this span minted.
|
|
6947
|
-
affectedNode: locus.affectedNode
|
|
6948
|
-
};
|
|
6949
|
-
await appendErrorEvent(ctx, ev);
|
|
6932
|
+
const ev = buildErrorEventForReceiver(span, ctx.graph, ctx.scanPath);
|
|
6933
|
+
if (ev) await appendErrorEvent(ctx, ev);
|
|
6950
6934
|
}
|
|
6951
6935
|
}
|
|
6952
6936
|
if (span.statusCode !== 2) {
|