@coralogix/browser 1.0.91 → 1.0.92

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/README.md CHANGED
@@ -10,8 +10,6 @@
10
10
  JavaScript / TypeScript Frameworks: React, Angular, Vue, NextJS and more.<br>
11
11
  Flutter (Currently only web).
12
12
 
13
- See [examples](./examples).
14
-
15
13
  ## Usage
16
14
 
17
15
  To use Coralogix SDK for Browsers, call `CoralogixRum.init(options)` at the soonest available moment after the page load.
@@ -163,6 +161,25 @@ CoralogixRum.init({
163
161
  });
164
162
  ```
165
163
 
164
+ ### instrumentations
165
+ Turn on/off specific instrumentations, defaults to all true.
166
+
167
+ ```javascript
168
+ CoralogixRum.init({
169
+ // ...
170
+ instrumentations: {
171
+ xhr: true,
172
+ fetch: true,
173
+ web_vitals: false,
174
+ interactions: false,
175
+ custom: true,
176
+ errors: true,
177
+ long_tasks: true,
178
+ resources: false,
179
+ }
180
+ });
181
+ ````
182
+
166
183
  ## CDN
167
184
 
168
185
  Coralogix Browser SDK is also provided via CDN.
@@ -202,3 +219,30 @@ declare global {
202
219
  }
203
220
  ```
204
221
 
222
+ ## Flutter web
223
+ Coralogix Browser SDK is also provided for Flutter web.
224
+
225
+ Add the following CDN to your `index.html` file:
226
+ ```javascript
227
+ <script src="https://cdn.rum-ingress-coralogix.com/coralogix/browser/latest/coralogix-browser-sdk.js"></script>
228
+ ```
229
+
230
+ Then, in your Dart code, you can use the SDK as follows:
231
+ ```dart
232
+ import 'package:flutter/material.dart';
233
+ import 'dart:js' as js;
234
+
235
+ void main() {
236
+ runApp(const MyApp());
237
+
238
+ var rum = js.JsObject.fromBrowserObject(js.context['CoralogixRum']);
239
+
240
+ rum.callMethod('init', [js.JsObject.jsify({
241
+ environment: 'test',
242
+ application: 'my-app',
243
+ version: '1.0.0',
244
+ public_key: 'my-key-123',
245
+ coralogixDomain: 'EU2',
246
+ })]);
247
+ }
248
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/browser",
3
- "version": "1.0.91",
3
+ "version": "1.0.92",
4
4
  "description": "Official Coralogix SDK for browsers",
5
5
  "license": "MIT",
6
6
  "dependencies": {
package/src/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.91";
1
+ export declare const SDK_VERSION = "1.0.92";
package/src/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const SDK_VERSION = '1.0.91';
1
+ export const SDK_VERSION = '1.0.92';
2
2
  //# sourceMappingURL=version.js.map
@@ -1,24 +0,0 @@
1
- /**
2
-
3
- import { Component, OnInit } from '@angular/core';
4
- import { CoralogixRum } from '@coralogix/browser';
5
- @Component({
6
- selector: 'app-root',
7
- templateUrl: './app.component.html',
8
- styleUrls: ['./app.component.scss'],
9
- })
10
- export class AppComponent implements OnInit {
11
- title = 'demo-angular';
12
-
13
- ngOnInit() {
14
- CoralogixRum.init({
15
- environment: 'test',
16
- application: 'my-app',
17
- version: '1.0.0',
18
- public_key: 'my-key-123',
19
- coralogixDomain: 'EU2',
20
- });
21
- }
22
- }
23
-
24
- **/
@@ -1,26 +0,0 @@
1
- "use strict";
2
- /**
3
-
4
- import { Component, OnInit } from '@angular/core';
5
- import { CoralogixRum } from '@coralogix/browser';
6
- @Component({
7
- selector: 'app-root',
8
- templateUrl: './app.component.html',
9
- styleUrls: ['./app.component.scss'],
10
- })
11
- export class AppComponent implements OnInit {
12
- title = 'demo-angular';
13
-
14
- ngOnInit() {
15
- CoralogixRum.init({
16
- environment: 'test',
17
- application: 'my-app',
18
- version: '1.0.0',
19
- public_key: 'my-key-123',
20
- coralogixDomain: 'EU2',
21
- });
22
- }
23
- }
24
-
25
- **/
26
- //# sourceMappingURL=app.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app.component.js","sourceRoot":"","sources":["../../../../../libs/browser/examples/Angular/app.component.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;IAuBI"}
@@ -1,15 +0,0 @@
1
- /**
2
-
3
- export const initializeCoralogixRUM = async () => {
4
- const { CoralogixRum } = await import('@coralogix/browser');
5
-
6
- CoralogixRum.init({
7
- environment: 'test',
8
- application: 'my-app',
9
- version: '1.0.0',
10
- public_key: 'my-key-123',
11
- coralogixDomain: 'EU2',
12
- });
13
- };
14
-
15
- **/
@@ -1,17 +0,0 @@
1
- "use strict";
2
- /**
3
-
4
- export const initializeCoralogixRUM = async () => {
5
- const { CoralogixRum } = await import('@coralogix/browser');
6
-
7
- CoralogixRum.init({
8
- environment: 'test',
9
- application: 'my-app',
10
- version: '1.0.0',
11
- public_key: 'my-key-123',
12
- coralogixDomain: 'EU2',
13
- });
14
- };
15
-
16
- **/
17
- //# sourceMappingURL=initialize-coralogix-rum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initialize-coralogix-rum.js","sourceRoot":"","sources":["../../../../../../libs/browser/examples/NextJS/npm/initialize-coralogix-rum.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;IAcI"}