@coralogix/browser 1.0.63 → 1.0.64
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 +40 -0
- package/package.json +1 -1
- package/src/version.d.ts +1 -1
- package/src/version.js +1 -1
package/README.md
CHANGED
|
@@ -62,3 +62,43 @@ CoralogixRum.setApplicationContext({
|
|
|
62
62
|
CoralogixRum.log(CoralogixLogSeverity.Error, 'this is a log', { key: 'value' })
|
|
63
63
|
CoralogixRum.error('this is a log with error severity', { key: 'value' })
|
|
64
64
|
```
|
|
65
|
+
|
|
66
|
+
## CDN
|
|
67
|
+
|
|
68
|
+
Coralogix Browser SDK is also provided via CDN.
|
|
69
|
+
You can choose a specific version or use the latest one.
|
|
70
|
+
|
|
71
|
+
#### Latest Version (recommended)
|
|
72
|
+
https://cdn.rum-ingress-coralogix.com/coralogix/browser/latest/coralogix-browser-sdk.js
|
|
73
|
+
|
|
74
|
+
#### Specific Version
|
|
75
|
+
https://cdn.rum-ingress-coralogix.com/coralogix/browser/[version]/coralogix-browser-sdk.js \
|
|
76
|
+
Replace [version] with a version from [Releases page](https://www.npmjs.com/package/@coralogix/browser?activeTab=versions).
|
|
77
|
+
|
|
78
|
+
### Add the CDN script to your application
|
|
79
|
+
|
|
80
|
+
```javascript
|
|
81
|
+
<head>
|
|
82
|
+
...
|
|
83
|
+
<script src="https://cdn.rum-ingress-coralogix.com/coralogix/browser/latest/coralogix-browser-sdk.js"></script>
|
|
84
|
+
</head>
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Initialization
|
|
89
|
+
#### Via JS file
|
|
90
|
+
```javascript
|
|
91
|
+
window.CoralogixRum.init(...);
|
|
92
|
+
```
|
|
93
|
+
#### Via TS file
|
|
94
|
+
```javascript
|
|
95
|
+
window.CoralogixRum.init(...);
|
|
96
|
+
|
|
97
|
+
// In case of warning from TSC
|
|
98
|
+
declare global {
|
|
99
|
+
interface Window {
|
|
100
|
+
CoralogixRum:any;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
package/package.json
CHANGED
package/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.64";
|
package/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const SDK_VERSION = '1.0.
|
|
1
|
+
export const SDK_VERSION = '1.0.64';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|