@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/cli.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  resolveHost,
7
7
  resolveNeatVersion,
8
8
  writeDaemonRecord
9
- } from "./chunk-UHNE7LGF.js";
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-C3LHXC55.js";
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 locus = incidentLocus(span, ctx.graph, ctx.scanPath);
6931
- const attrs = withRecoveredCodeAttrs(sanitizeAttributes(span.attributes), locus);
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) {