@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
|
@@ -4694,6 +4694,7 @@ function buildErrorEventForReceiver(span, graph, scanPath) {
|
|
|
4694
4694
|
const ts = span.startTimeIso ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
4695
4695
|
const locus = incidentLocus(span, graph, scanPath);
|
|
4696
4696
|
const attrs = withRecoveredCodeAttrs(sanitizeAttributes(span.attributes), locus);
|
|
4697
|
+
const httpStatus = httpResponseStatus(span);
|
|
4697
4698
|
return {
|
|
4698
4699
|
id: `${span.traceId}:${span.spanId}`,
|
|
4699
4700
|
timestamp: ts,
|
|
@@ -4703,6 +4704,7 @@ function buildErrorEventForReceiver(span, graph, scanPath) {
|
|
|
4703
4704
|
errorMessage: incidentMessage(span),
|
|
4704
4705
|
...span.exception?.type ? { exceptionType: span.exception.type } : {},
|
|
4705
4706
|
...span.exception?.stacktrace ? { exceptionStacktrace: span.exception.stacktrace } : {},
|
|
4707
|
+
...httpStatus !== void 0 ? { httpStatusCode: httpStatus } : {},
|
|
4706
4708
|
...Object.keys(attrs).length > 0 ? { attributes: attrs } : {},
|
|
4707
4709
|
affectedNode: locus.affectedNode
|
|
4708
4710
|
};
|
|
@@ -5054,26 +5056,8 @@ async function handleSpan(ctx, span) {
|
|
|
5054
5056
|
if (span.statusCode === 2) {
|
|
5055
5057
|
stitchTrace(ctx.graph, sourceId, ts);
|
|
5056
5058
|
if (ctx.writeErrorEventInline !== false) {
|
|
5057
|
-
const
|
|
5058
|
-
|
|
5059
|
-
const ev = {
|
|
5060
|
-
id: `${span.traceId}:${span.spanId}`,
|
|
5061
|
-
timestamp: ts,
|
|
5062
|
-
service: span.service,
|
|
5063
|
-
traceId: span.traceId,
|
|
5064
|
-
spanId: span.spanId,
|
|
5065
|
-
errorMessage: incidentMessage(span),
|
|
5066
|
-
...span.exception?.type ? { exceptionType: span.exception.type } : {},
|
|
5067
|
-
...span.exception?.stacktrace ? { exceptionStacktrace: span.exception.stacktrace } : {},
|
|
5068
|
-
...Object.keys(attrs).length > 0 ? { attributes: attrs } : {},
|
|
5069
|
-
// Attribute to where the failure originated — the symbol / file / service
|
|
5070
|
-
// the throwing span named (incidentAffectedNode / ADR-191, extended to
|
|
5071
|
-
// recover the locus from the stacktrace when the span stamped no code.*
|
|
5072
|
-
// attrs, ADR-216) — the same source-based attribution the durable
|
|
5073
|
-
// receiver write uses, not the outbound edge target this span minted.
|
|
5074
|
-
affectedNode: locus.affectedNode
|
|
5075
|
-
};
|
|
5076
|
-
await appendErrorEvent(ctx, ev);
|
|
5059
|
+
const ev = buildErrorEventForReceiver(span, ctx.graph, ctx.scanPath);
|
|
5060
|
+
if (ev) await appendErrorEvent(ctx, ev);
|
|
5077
5061
|
}
|
|
5078
5062
|
}
|
|
5079
5063
|
if (span.statusCode !== 2) {
|
|
@@ -22618,4 +22602,4 @@ export {
|
|
|
22618
22602
|
deprovisionConnector,
|
|
22619
22603
|
buildApi
|
|
22620
22604
|
};
|
|
22621
|
-
//# sourceMappingURL=chunk-
|
|
22605
|
+
//# sourceMappingURL=chunk-3UAUMPIY.js.map
|