@neat.is/core 0.3.5 → 0.3.6

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/index.cjs CHANGED
@@ -1652,7 +1652,7 @@ function buildErrorEventForReceiver(span) {
1652
1652
  service: span.service,
1653
1653
  traceId: span.traceId,
1654
1654
  spanId: span.spanId,
1655
- errorMessage: span.exception?.message ?? span.name ?? "unknown error",
1655
+ errorMessage: span.exception?.message ?? "unknown error",
1656
1656
  ...span.exception?.type ? { exceptionType: span.exception.type } : {},
1657
1657
  ...span.exception?.stacktrace ? { exceptionStacktrace: span.exception.stacktrace } : {},
1658
1658
  ...Object.keys(attrs).length > 0 ? { attributes: attrs } : {},
@@ -1744,7 +1744,7 @@ async function handleSpan(ctx, span) {
1744
1744
  service: span.service,
1745
1745
  traceId: span.traceId,
1746
1746
  spanId: span.spanId,
1747
- errorMessage: span.exception?.message ?? span.name ?? "unknown error",
1747
+ errorMessage: span.exception?.message ?? "unknown error",
1748
1748
  ...span.exception?.type ? { exceptionType: span.exception.type } : {},
1749
1749
  ...span.exception?.stacktrace ? { exceptionStacktrace: span.exception.stacktrace } : {},
1750
1750
  ...Object.keys(attrs).length > 0 ? { attributes: attrs } : {},