@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.
@@ -20,7 +20,7 @@ import {
20
20
  startStalenessLoop,
21
21
  touchLastSeen,
22
22
  writeAtomically
23
- } from "./chunk-C3LHXC55.js";
23
+ } from "./chunk-3UAUMPIY.js";
24
24
  import {
25
25
  assertBindAuthority,
26
26
  buildOtelReceiver,
@@ -901,4 +901,4 @@ export {
901
901
  resolveHost,
902
902
  startDaemon
903
903
  };
904
- //# sourceMappingURL=chunk-UHNE7LGF.js.map
904
+ //# sourceMappingURL=chunk-UNO3X6ZV.js.map
package/dist/cli.cjs CHANGED
@@ -6587,6 +6587,7 @@ function buildErrorEventForReceiver(span, graph, scanPath) {
6587
6587
  const ts = span.startTimeIso ?? (/* @__PURE__ */ new Date()).toISOString();
6588
6588
  const locus = incidentLocus(span, graph, scanPath);
6589
6589
  const attrs = withRecoveredCodeAttrs(sanitizeAttributes(span.attributes), locus);
6590
+ const httpStatus = httpResponseStatus(span);
6590
6591
  return {
6591
6592
  id: `${span.traceId}:${span.spanId}`,
6592
6593
  timestamp: ts,
@@ -6596,6 +6597,7 @@ function buildErrorEventForReceiver(span, graph, scanPath) {
6596
6597
  errorMessage: incidentMessage(span),
6597
6598
  ...span.exception?.type ? { exceptionType: span.exception.type } : {},
6598
6599
  ...span.exception?.stacktrace ? { exceptionStacktrace: span.exception.stacktrace } : {},
6600
+ ...httpStatus !== void 0 ? { httpStatusCode: httpStatus } : {},
6599
6601
  ...Object.keys(attrs).length > 0 ? { attributes: attrs } : {},
6600
6602
  affectedNode: locus.affectedNode
6601
6603
  };
@@ -6947,26 +6949,8 @@ async function handleSpan(ctx, span) {
6947
6949
  if (span.statusCode === 2) {
6948
6950
  stitchTrace(ctx.graph, sourceId, ts);
6949
6951
  if (ctx.writeErrorEventInline !== false) {
6950
- const locus = incidentLocus(span, ctx.graph, ctx.scanPath);
6951
- const attrs = withRecoveredCodeAttrs(sanitizeAttributes(span.attributes), locus);
6952
- const ev = {
6953
- id: `${span.traceId}:${span.spanId}`,
6954
- timestamp: ts,
6955
- service: span.service,
6956
- traceId: span.traceId,
6957
- spanId: span.spanId,
6958
- errorMessage: incidentMessage(span),
6959
- ...span.exception?.type ? { exceptionType: span.exception.type } : {},
6960
- ...span.exception?.stacktrace ? { exceptionStacktrace: span.exception.stacktrace } : {},
6961
- ...Object.keys(attrs).length > 0 ? { attributes: attrs } : {},
6962
- // Attribute to where the failure originated — the symbol / file / service
6963
- // the throwing span named (incidentAffectedNode / ADR-191, extended to
6964
- // recover the locus from the stacktrace when the span stamped no code.*
6965
- // attrs, ADR-216) — the same source-based attribution the durable
6966
- // receiver write uses, not the outbound edge target this span minted.
6967
- affectedNode: locus.affectedNode
6968
- };
6969
- await appendErrorEvent(ctx, ev);
6952
+ const ev = buildErrorEventForReceiver(span, ctx.graph, ctx.scanPath);
6953
+ if (ev) await appendErrorEvent(ctx, ev);
6970
6954
  }
6971
6955
  }
6972
6956
  if (span.statusCode !== 2) {