@coralogix/browser 3.1.0 → 3.1.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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.1.1 (2026-02-01)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - Improve error instrumentation stability and performance
6
+
1
7
  ## 3.1.0 (2026-01-25)
2
8
 
3
9
  ### 🚀 Features
package/index.esm2.js CHANGED
@@ -621,20 +621,27 @@ var CoralogixErrorInstrumentation = (function (_super) {
621
621
  };
622
622
  CoralogixErrorInstrumentation.prototype.reportString = function (source, message, stackError) {
623
623
  return __awaiter(this, void 0, void 0, function () {
624
- var span;
625
- return __generator(this, function (_a) {
626
- switch (_a.label) {
624
+ var span, supportMfe;
625
+ return __generator(this, function (_b) {
626
+ switch (_b.label) {
627
627
  case 0:
628
628
  span = this.createSpan(source);
629
629
  addErrorDefaultAttributes(span);
630
630
  span.setAttribute(CoralogixAttributes.SOURCE, source);
631
631
  span.setAttribute(ErrorAttributes.MESSAGE, message === null || message === void 0 ? void 0 : message.substring(0, MESSAGE_LIMIT));
632
- if (!stackError) return [3, 2];
632
+ supportMfe = getSdkConfig().supportMfe;
633
+ if (!stackError) return [3, 4];
634
+ if (!supportMfe) return [3, 2];
633
635
  return [4, buildStacktrace(span, stackError)];
634
636
  case 1:
635
- _a.sent();
636
- _a.label = 2;
637
+ _b.sent();
638
+ return [3, 3];
637
639
  case 2:
640
+ void buildStacktrace(span, stackError);
641
+ _b.label = 3;
642
+ case 3:
643
+ _b.label = 4;
644
+ case 4:
638
645
  span.end();
639
646
  return [2];
640
647
  }
@@ -4138,7 +4145,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
4138
4145
  return resolvedUrlBlueprinters;
4139
4146
  }
4140
4147
 
4141
- var SDK_VERSION = '3.1.0';
4148
+ var SDK_VERSION = '3.1.1';
4142
4149
 
4143
4150
  function shouldDropEvent(cxRumEvent, options) {
4144
4151
  if (isDocumentErrorWithoutMessage(cxRumEvent)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/browser",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Official Coralogix SDK for browsers",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",
package/src/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.0";
1
+ export declare const SDK_VERSION = "3.1.1";