@brizz/sdk 0.1.3-rc.0 → 0.1.3-rc.1

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.js CHANGED
@@ -1522,7 +1522,16 @@ var shouldHandleSpan = (span) => {
1522
1522
  return span.name in HANDLED_SPAN_NAMES;
1523
1523
  };
1524
1524
  var transformAiSdkSpan = (span) => {
1525
- logger.debug("Transforming AI SDK span", { spanName: span.name });
1525
+ for (const key in span.attributes) {
1526
+ if (Number.isNaN(span.attributes[key])) {
1527
+ span.attributes[key] = 0;
1528
+ }
1529
+ }
1530
+ logger.debug("Transforming AI SDK span", {
1531
+ spanName: span.name,
1532
+ spanContext: span.spanContext(),
1533
+ attributes: span.attributes
1534
+ });
1526
1535
  if (!shouldHandleSpan(span)) {
1527
1536
  logger.debug("Skipping span transformation", { spanName: span.name });
1528
1537
  return;