@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.
@@ -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 locus = incidentLocus(span, ctx.graph, ctx.scanPath);
5058
- const attrs = withRecoveredCodeAttrs(sanitizeAttributes(span.attributes), locus);
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-C3LHXC55.js.map
22605
+ //# sourceMappingURL=chunk-3UAUMPIY.js.map