@coralogix/browser 2.3.0 → 2.4.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 +12 -0
- package/README.md +20 -2
- package/index.esm2.js +188 -179
- package/package.json +1 -1
- package/sessionRecorder.esm.js +36 -32
- package/src/instrumentations/CoralogixCustomLogInstrumentation.d.ts +9 -1
- package/src/session/sessionManager.d.ts +1 -0
- package/src/types.d.ts +7 -7
- package/src/version.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 2.4.1 (2025-04-14)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- Reduce falsy recording sessions sent to API.
|
|
6
|
+
|
|
7
|
+
## 2.4.0 (2025-04-08)
|
|
8
|
+
|
|
9
|
+
### 🚀 Features
|
|
10
|
+
|
|
11
|
+
- Allow passing labels to Custom logs (log, warn, debug, etc...) API.
|
|
12
|
+
|
|
1
13
|
## 2.3.0 (2025-04-01)
|
|
2
14
|
|
|
3
15
|
### 🚀 Features
|
package/README.md
CHANGED
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
28. [CDN](#cdn)
|
|
55
55
|
|
|
56
56
|
- [Specific Version](#specific-version-recommended)
|
|
57
|
-
- [Latest Version](#latest-version)
|
|
58
57
|
- [Add the CDN Script to Your Application](#add-the-cdn-script-to-your-application)
|
|
59
58
|
- [Initialization](#initialization)
|
|
60
59
|
- [Via JS File](#via-js-file)
|
|
@@ -196,11 +195,30 @@ CoralogixRum.init({
|
|
|
196
195
|
```javascript
|
|
197
196
|
import { CoralogixRum, CoralogixLogSeverity } from '@coralogix/browser';
|
|
198
197
|
|
|
198
|
+
// send custom logs with different severity levels
|
|
199
199
|
CoralogixRum.log(CoralogixLogSeverity.Info, 'this is a custom log');
|
|
200
200
|
|
|
201
|
+
// send custom logs with extra data
|
|
201
202
|
CoralogixRum.log(CoralogixLogSeverity.Error, 'this is an error custom log with extra data', { data: 'tbd' });
|
|
202
203
|
|
|
204
|
+
// send custom logs with extra data, call the error severity log directly
|
|
203
205
|
CoralogixRum.error('this is a custom log with error severity', { data: 'tbd' });
|
|
206
|
+
|
|
207
|
+
// send custom logs with extra data and labels
|
|
208
|
+
CoralogixRum.warning(
|
|
209
|
+
'this is a custom log message with warning severity',
|
|
210
|
+
{
|
|
211
|
+
data: 'tbd',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
my_label_key: 'my label value',
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
|
|
218
|
+
// data is optional unless labels are provided, in which case data is required (can be null
|
|
219
|
+
CoralogixRum.log(CoralogixLogSeverity.Info, 'this is a custom log message with info severity', null, {
|
|
220
|
+
my_label_key: 'my label value',
|
|
221
|
+
});
|
|
204
222
|
```
|
|
205
223
|
|
|
206
224
|
### Instrumentation's
|
|
@@ -870,7 +888,7 @@ Coralogix Browser SDK is also provided for Flutter web.
|
|
|
870
888
|
Add the following CDN to your `index.html` file:
|
|
871
889
|
|
|
872
890
|
```javascript
|
|
873
|
-
<script src="https://cdn.rum-ingress-coralogix.com/coralogix/browser/
|
|
891
|
+
<script src="https://cdn.rum-ingress-coralogix.com/coralogix/browser/[version]/coralogix-browser-sdk.js"></script>
|
|
874
892
|
```
|
|
875
893
|
|
|
876
894
|
Then, in your Dart code, you can use the SDK as follows:
|