@salesforce/telemetry 6.0.19 → 6.0.20
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/lib/appInsights.js +8 -4
- package/lib/telemetryReporter.js +4 -1
- package/package.json +3 -3
package/lib/appInsights.js
CHANGED
|
@@ -95,9 +95,16 @@ exports.buildPropertiesAndMeasurements = buildPropertiesAndMeasurements;
|
|
|
95
95
|
* will check if telemetry is disabled and do GDPR checks.
|
|
96
96
|
*/
|
|
97
97
|
class AppInsights extends kit_1.AsyncCreatable {
|
|
98
|
+
static GDPR_HIDDEN = '<GDPR_HIDDEN>';
|
|
99
|
+
static APP_INSIGHTS_SERVER = 'https://dc.services.visualstudio.com';
|
|
100
|
+
static ASIMOV_ENDPOINT = 'https://vortex.data.microsoft.com/collect/v1';
|
|
101
|
+
appInsightsClient;
|
|
102
|
+
options;
|
|
103
|
+
logger;
|
|
104
|
+
env;
|
|
105
|
+
gdprSensitiveKeys = [];
|
|
98
106
|
constructor(options) {
|
|
99
107
|
super(options);
|
|
100
|
-
this.gdprSensitiveKeys = [];
|
|
101
108
|
this.options = options;
|
|
102
109
|
this.env = this.options.env ?? new kit_1.Env();
|
|
103
110
|
if (this.options.gdprSensitiveKeys) {
|
|
@@ -220,7 +227,4 @@ class AppInsights extends kit_1.AsyncCreatable {
|
|
|
220
227
|
}
|
|
221
228
|
}
|
|
222
229
|
exports.AppInsights = AppInsights;
|
|
223
|
-
AppInsights.GDPR_HIDDEN = '<GDPR_HIDDEN>';
|
|
224
|
-
AppInsights.APP_INSIGHTS_SERVER = 'https://dc.services.visualstudio.com';
|
|
225
|
-
AppInsights.ASIMOV_ENDPOINT = 'https://vortex.data.microsoft.com/collect/v1';
|
|
226
230
|
//# sourceMappingURL=appInsights.js.map
|
package/lib/telemetryReporter.js
CHANGED
|
@@ -46,9 +46,12 @@ Object.defineProperty(exports, "TelemetryClient", { enumerable: true, get: funct
|
|
|
46
46
|
* Reports telemetry events to app insights. We do not send if the config 'disableTelemetry' is set.
|
|
47
47
|
*/
|
|
48
48
|
class TelemetryReporter extends kit_1.AsyncCreatable {
|
|
49
|
+
enabled = false;
|
|
50
|
+
options;
|
|
51
|
+
logger;
|
|
52
|
+
reporter;
|
|
49
53
|
constructor(options) {
|
|
50
54
|
super(options);
|
|
51
|
-
this.enabled = false;
|
|
52
55
|
this.options = options;
|
|
53
56
|
}
|
|
54
57
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/telemetry",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.20",
|
|
4
4
|
"description": "Library for application insights",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"exports": {
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"!lib/**/*.map"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/core": "^8.2.
|
|
43
|
+
"@salesforce/core": "^8.2.8",
|
|
44
44
|
"@salesforce/kit": "^3.1.6",
|
|
45
45
|
"applicationinsights": "^2.9.5",
|
|
46
46
|
"got": "^11",
|
|
47
47
|
"proxy-agent": "^6.4.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/dev-scripts": "^10.2.
|
|
50
|
+
"@salesforce/dev-scripts": "^10.2.4",
|
|
51
51
|
"ts-node": "^10.9.2",
|
|
52
52
|
"typescript": "^5.4.5"
|
|
53
53
|
},
|