@sap-ux/telemetry 0.7.5 → 1.0.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/dist/base/client/azure-appinsight-client.d.ts +3 -3
- package/dist/base/client/azure-appinsight-client.js +22 -58
- package/dist/base/client/client.d.ts +1 -1
- package/dist/base/client/client.js +1 -4
- package/dist/base/client/index.d.ts +2 -2
- package/dist/base/client/index.js +5 -8
- package/dist/base/config-state.js +4 -10
- package/dist/base/decorator/index.d.ts +2 -2
- package/dist/base/decorator/index.js +4 -9
- package/dist/base/interceptor/config.js +4 -41
- package/dist/base/interceptor/index.d.ts +3 -3
- package/dist/base/interceptor/index.js +25 -34
- package/dist/base/performance/api.d.ts +2 -2
- package/dist/base/performance/api.js +14 -16
- package/dist/base/performance/entries.d.ts +2 -2
- package/dist/base/performance/entries.js +3 -7
- package/dist/base/performance/types.d.ts +2 -1
- package/dist/base/performance/types.js +2 -5
- package/dist/base/types/event-header.js +1 -4
- package/dist/base/types/event-name.js +2 -5
- package/dist/base/types/event.js +1 -2
- package/dist/base/types/index.d.ts +5 -5
- package/dist/base/types/index.js +5 -21
- package/dist/base/types/project-info.js +1 -2
- package/dist/base/types/sample-rate.js +2 -5
- package/dist/base/utils/azure-client-config.js +1 -4
- package/dist/base/utils/date.js +1 -5
- package/dist/base/utils/index.d.ts +5 -5
- package/dist/base/utils/index.js +5 -23
- package/dist/base/utils/logger.js +2 -6
- package/dist/base/utils/param-processing.js +10 -19
- package/dist/base/utils/reporting.js +10 -48
- package/dist/index.d.ts +14 -12
- package/dist/index.js +12 -32
- package/dist/tooling-telemetry/config-state.js +1 -4
- package/dist/tooling-telemetry/data-processor.d.ts +1 -1
- package/dist/tooling-telemetry/data-processor.js +73 -81
- package/dist/tooling-telemetry/index.d.ts +4 -4
- package/dist/tooling-telemetry/index.js +4 -23
- package/dist/tooling-telemetry/telemetry-client.d.ts +3 -3
- package/dist/tooling-telemetry/telemetry-client.js +9 -12
- package/dist/tooling-telemetry/telemetry-settings.d.ts +1 -1
- package/dist/tooling-telemetry/telemetry-settings.js +34 -43
- package/dist/tooling-telemetry/types.d.ts +1 -1
- package/dist/tooling-telemetry/types.js +8 -11
- package/package.json +11 -9
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventName = void 0;
|
|
4
|
-
var EventName;
|
|
1
|
+
export var EventName;
|
|
5
2
|
(function (EventName) {
|
|
6
3
|
EventName["Test"] = "test";
|
|
7
4
|
EventName["TELEMETRY_SETTINGS_INIT_FAILED"] = "TELEMETRY_SETTINGS_INIT_FAILED";
|
|
8
5
|
EventName["DISABLE_TELEMETRY"] = "DISABLE_TELEMETRY";
|
|
9
|
-
})(EventName || (
|
|
6
|
+
})(EventName || (EventName = {}));
|
|
10
7
|
//# sourceMappingURL=event-name.js.map
|
package/dist/base/types/event.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './event';
|
|
2
|
-
export * from './event-header';
|
|
3
|
-
export * from './event-name';
|
|
4
|
-
export * from './project-info';
|
|
5
|
-
export * from './sample-rate';
|
|
1
|
+
export * from './event.js';
|
|
2
|
+
export * from './event-header.js';
|
|
3
|
+
export * from './event-name.js';
|
|
4
|
+
export * from './project-info.js';
|
|
5
|
+
export * from './sample-rate.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/base/types/index.js
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./event"), exports);
|
|
18
|
-
__exportStar(require("./event-header"), exports);
|
|
19
|
-
__exportStar(require("./event-name"), exports);
|
|
20
|
-
__exportStar(require("./project-info"), exports);
|
|
21
|
-
__exportStar(require("./sample-rate"), exports);
|
|
1
|
+
export * from './event.js';
|
|
2
|
+
export * from './event-header.js';
|
|
3
|
+
export * from './event-name.js';
|
|
4
|
+
export * from './project-info.js';
|
|
5
|
+
export * from './sample-rate.js';
|
|
22
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SampleRate = void 0;
|
|
4
|
-
var SampleRate;
|
|
1
|
+
export var SampleRate;
|
|
5
2
|
(function (SampleRate) {
|
|
6
3
|
SampleRate[SampleRate["OnePercent"] = 0] = "OnePercent";
|
|
7
4
|
SampleRate[SampleRate["TenPercent"] = 1] = "TenPercent";
|
|
8
5
|
SampleRate[SampleRate["NoSampling"] = 2] = "NoSampling";
|
|
9
|
-
})(SampleRate || (
|
|
6
|
+
})(SampleRate || (SampleRate = {}));
|
|
10
7
|
//# sourceMappingURL=sample-rate.js.map
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.configAzureTelemetryClient = configAzureTelemetryClient;
|
|
4
1
|
/**
|
|
5
2
|
* Enable local caching of telemetry data when offline.
|
|
6
3
|
* Disable GDPR private data that are collected by Azure AppInsight client.
|
|
7
4
|
*
|
|
8
5
|
* @param client Azure App Insights telemetry client instance
|
|
9
6
|
*/
|
|
10
|
-
function configAzureTelemetryClient(client) {
|
|
7
|
+
export function configAzureTelemetryClient(client) {
|
|
11
8
|
client.channel.setUseDiskRetryCaching(true);
|
|
12
9
|
client.addTelemetryProcessor((envelope) => {
|
|
13
10
|
envelope.tags['ai.location.ip'] = '0.0.0.0';
|
package/dist/base/utils/date.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.localDatetimeToUTC = void 0;
|
|
4
|
-
const localDatetimeToUTC = () => {
|
|
1
|
+
export const localDatetimeToUTC = () => {
|
|
5
2
|
const timeInMs = new Date().getTime();
|
|
6
3
|
return new Date(timeInMs).toISOString();
|
|
7
4
|
};
|
|
8
|
-
exports.localDatetimeToUTC = localDatetimeToUTC;
|
|
9
5
|
//# sourceMappingURL=date.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { configAzureTelemetryClient } from './azure-client-config';
|
|
2
|
-
export * from './date';
|
|
3
|
-
export * from './logger';
|
|
4
|
-
export * from './param-processing';
|
|
5
|
-
export * from './reporting';
|
|
1
|
+
export { configAzureTelemetryClient } from './azure-client-config.js';
|
|
2
|
+
export * from './date.js';
|
|
3
|
+
export * from './logger.js';
|
|
4
|
+
export * from './param-processing.js';
|
|
5
|
+
export * from './reporting.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/base/utils/index.js
CHANGED
|
@@ -1,24 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.configAzureTelemetryClient = void 0;
|
|
18
|
-
var azure_client_config_1 = require("./azure-client-config");
|
|
19
|
-
Object.defineProperty(exports, "configAzureTelemetryClient", { enumerable: true, get: function () { return azure_client_config_1.configAzureTelemetryClient; } });
|
|
20
|
-
__exportStar(require("./date"), exports);
|
|
21
|
-
__exportStar(require("./logger"), exports);
|
|
22
|
-
__exportStar(require("./param-processing"), exports);
|
|
23
|
-
__exportStar(require("./reporting"), exports);
|
|
1
|
+
export { configAzureTelemetryClient } from './azure-client-config.js';
|
|
2
|
+
export * from './date.js';
|
|
3
|
+
export * from './logger.js';
|
|
4
|
+
export * from './param-processing.js';
|
|
5
|
+
export * from './reporting.js';
|
|
24
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDefaultLogger = void 0;
|
|
4
|
-
const logger_1 = require("@sap-ux/logger");
|
|
1
|
+
import { ConsoleTransport, ToolsLogger } from '@sap-ux/logger';
|
|
5
2
|
/**
|
|
6
3
|
* @returns {Logger} console logger
|
|
7
4
|
*/
|
|
8
|
-
const getDefaultLogger = () => new
|
|
9
|
-
exports.getDefaultLogger = getDefaultLogger;
|
|
5
|
+
export const getDefaultLogger = () => new ToolsLogger({ transports: [new ConsoleTransport()] });
|
|
10
6
|
//# sourceMappingURL=logger.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getParamsData = exports.paramsProcessing = exports.getValue = exports.wrongPathErr = exports.ParamRecordConfig = exports.ParamRecordConfigField = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* ParamRecordConfigField
|
|
6
3
|
*/
|
|
7
|
-
class ParamRecordConfigField {
|
|
4
|
+
export class ParamRecordConfigField {
|
|
8
5
|
path;
|
|
9
6
|
/**
|
|
10
7
|
*
|
|
@@ -14,11 +11,10 @@ class ParamRecordConfigField {
|
|
|
14
11
|
this.path = path;
|
|
15
12
|
}
|
|
16
13
|
}
|
|
17
|
-
exports.ParamRecordConfigField = ParamRecordConfigField;
|
|
18
14
|
/**
|
|
19
15
|
*
|
|
20
16
|
*/
|
|
21
|
-
class ParamRecordConfig {
|
|
17
|
+
export class ParamRecordConfig {
|
|
22
18
|
key;
|
|
23
19
|
value;
|
|
24
20
|
paramIndex;
|
|
@@ -41,23 +37,20 @@ class ParamRecordConfig {
|
|
|
41
37
|
this.paramIndex = paramIndex;
|
|
42
38
|
}
|
|
43
39
|
}
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
exports.wrongPathErr = wrongPathErr;
|
|
47
|
-
const getValue = (obj, path, field, paramIndex) => {
|
|
40
|
+
export const wrongPathErr = (field, index) => new Error(`Wrong path for '${field}' field is specified in instructions with index - ${index}`);
|
|
41
|
+
export const getValue = (obj, path, field, paramIndex) => {
|
|
48
42
|
const pathArr = path.split('/');
|
|
49
43
|
let node = obj, i = 0;
|
|
50
44
|
while (i < pathArr.length) {
|
|
51
45
|
node = node[pathArr[i]];
|
|
52
46
|
if (node === undefined) {
|
|
53
|
-
throw
|
|
47
|
+
throw wrongPathErr(field, paramIndex);
|
|
54
48
|
}
|
|
55
49
|
i++;
|
|
56
50
|
}
|
|
57
51
|
return node;
|
|
58
52
|
};
|
|
59
|
-
|
|
60
|
-
const paramsProcessing = (params, instructions) => {
|
|
53
|
+
export const paramsProcessing = (params, instructions) => {
|
|
61
54
|
const processedDimensions = {};
|
|
62
55
|
const processedMeasurements = {};
|
|
63
56
|
let param = null;
|
|
@@ -70,7 +63,7 @@ const paramsProcessing = (params, instructions) => {
|
|
|
70
63
|
val = instructions.value;
|
|
71
64
|
}
|
|
72
65
|
else if (instructions.value !== undefined && instructions.paramIndex !== undefined) {
|
|
73
|
-
val =
|
|
66
|
+
val = getValue(param, instructions.value.path, 'val', instructions.paramIndex);
|
|
74
67
|
}
|
|
75
68
|
else {
|
|
76
69
|
val = param;
|
|
@@ -83,14 +76,13 @@ const paramsProcessing = (params, instructions) => {
|
|
|
83
76
|
}
|
|
84
77
|
return [processedDimensions, processedMeasurements];
|
|
85
78
|
};
|
|
86
|
-
|
|
87
|
-
const getParamsData = (params, instructions) => {
|
|
79
|
+
export const getParamsData = (params, instructions) => {
|
|
88
80
|
let processedDimensions, processedMeasurements;
|
|
89
81
|
let customDimensions = {};
|
|
90
82
|
let customMeasurements = {};
|
|
91
83
|
if (Array.isArray(instructions)) {
|
|
92
84
|
for (const instruction of instructions) {
|
|
93
|
-
[processedDimensions, processedMeasurements] =
|
|
85
|
+
[processedDimensions, processedMeasurements] = paramsProcessing(params, instruction);
|
|
94
86
|
customDimensions = {
|
|
95
87
|
...customDimensions,
|
|
96
88
|
...processedDimensions
|
|
@@ -102,9 +94,8 @@ const getParamsData = (params, instructions) => {
|
|
|
102
94
|
}
|
|
103
95
|
}
|
|
104
96
|
else {
|
|
105
|
-
[customDimensions, customMeasurements] =
|
|
97
|
+
[customDimensions, customMeasurements] = paramsProcessing(params, instructions);
|
|
106
98
|
}
|
|
107
99
|
return [customDimensions, customMeasurements];
|
|
108
100
|
};
|
|
109
|
-
exports.getParamsData = getParamsData;
|
|
110
101
|
//# sourceMappingURL=param-processing.js.map
|
|
@@ -1,43 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.reportEnableTelemetryOnOff = exports.reportRuntimeError = void 0;
|
|
37
|
-
const appInsights = __importStar(require("applicationinsights"));
|
|
38
|
-
const azure_client_config_1 = require("./azure-client-config");
|
|
39
|
-
const config_state_1 = require("../config-state");
|
|
40
|
-
const types_1 = require("../types");
|
|
1
|
+
import * as appInsights from 'applicationinsights';
|
|
2
|
+
import { configAzureTelemetryClient } from './azure-client-config.js';
|
|
3
|
+
import { TelemetrySettings } from '../config-state.js';
|
|
4
|
+
import { EventName } from '../types/index.js';
|
|
41
5
|
const parseErrorStack = (errorStack) => {
|
|
42
6
|
const regexps = [/sap-ux.+/gi, /[-a-zA-Z]+\/ide-extension\/.+/gi, /(\/telemetry\/.+)/gi];
|
|
43
7
|
const parsedStack = [];
|
|
@@ -74,10 +38,10 @@ const parseErrorStack = (errorStack) => {
|
|
|
74
38
|
return parsedStack;
|
|
75
39
|
};
|
|
76
40
|
let reportingTelemetryClient;
|
|
77
|
-
const reportRuntimeError = (error) => {
|
|
41
|
+
export const reportRuntimeError = (error) => {
|
|
78
42
|
if (process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY?.trim() !== 'true') {
|
|
79
|
-
reportingTelemetryClient = new appInsights.TelemetryClient(
|
|
80
|
-
|
|
43
|
+
reportingTelemetryClient = new appInsights.TelemetryClient(TelemetrySettings.azureInstrumentationKey);
|
|
44
|
+
configAzureTelemetryClient(reportingTelemetryClient);
|
|
81
45
|
}
|
|
82
46
|
const properties = { message: error.message };
|
|
83
47
|
if (error.stack) {
|
|
@@ -87,7 +51,7 @@ const reportRuntimeError = (error) => {
|
|
|
87
51
|
}
|
|
88
52
|
}
|
|
89
53
|
const telemetryEvent = {
|
|
90
|
-
name:
|
|
54
|
+
name: EventName.TELEMETRY_SETTINGS_INIT_FAILED,
|
|
91
55
|
properties,
|
|
92
56
|
measurements: {}
|
|
93
57
|
};
|
|
@@ -95,10 +59,9 @@ const reportRuntimeError = (error) => {
|
|
|
95
59
|
reportingTelemetryClient.trackEvent(telemetryEvent);
|
|
96
60
|
}
|
|
97
61
|
};
|
|
98
|
-
|
|
99
|
-
const reportEnableTelemetryOnOff = (enableTelemetry, commonProperties) => {
|
|
62
|
+
export const reportEnableTelemetryOnOff = (enableTelemetry, commonProperties) => {
|
|
100
63
|
const telemetryEvent = {
|
|
101
|
-
name:
|
|
64
|
+
name: EventName.DISABLE_TELEMETRY,
|
|
102
65
|
properties: {
|
|
103
66
|
disableTelemetry: `${!enableTelemetry}`,
|
|
104
67
|
...commonProperties
|
|
@@ -109,5 +72,4 @@ const reportEnableTelemetryOnOff = (enableTelemetry, commonProperties) => {
|
|
|
109
72
|
reportingTelemetryClient.trackEvent(telemetryEvent);
|
|
110
73
|
}
|
|
111
74
|
};
|
|
112
|
-
exports.reportEnableTelemetryOnOff = reportEnableTelemetryOnOff;
|
|
113
75
|
//# sourceMappingURL=reporting.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export { ClientFactory } from './base/client/index';
|
|
2
|
-
export { Client } from './base/client/client';
|
|
3
|
-
export { ApplicationInsightClient } from './base/client/azure-appinsight-client';
|
|
4
|
-
export { EventHeader } from './base/types/event-header';
|
|
5
|
-
export { EventName } from './base/types/event-name';
|
|
6
|
-
export { SampleRate } from './base/types/sample-rate';
|
|
7
|
-
export { TelemetryMeasurements, TelemetryProperties } from './base/types/event';
|
|
8
|
-
export { initTelemetrySettings, setEnableTelemetry, getTelemetrySetting, ToolsSuiteTelemetryClient,
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
1
|
+
export { ClientFactory } from './base/client/index.js';
|
|
2
|
+
export { Client } from './base/client/client.js';
|
|
3
|
+
export { ApplicationInsightClient } from './base/client/azure-appinsight-client.js';
|
|
4
|
+
export { EventHeader } from './base/types/event-header.js';
|
|
5
|
+
export { EventName } from './base/types/event-name.js';
|
|
6
|
+
export { SampleRate } from './base/types/sample-rate.js';
|
|
7
|
+
export type { TelemetryMeasurements, TelemetryProperties } from './base/types/event.js';
|
|
8
|
+
export { initTelemetrySettings, setEnableTelemetry, getTelemetrySetting, ToolsSuiteTelemetryClient, getIdeType } from './tooling-telemetry/index.js';
|
|
9
|
+
export type { ToolsSuiteTelemetryInitSettings, TelemetryHelperProperties, TelemetryEvent } from './tooling-telemetry/index.js';
|
|
10
|
+
export { ToolsId } from './tooling-telemetry/index.js';
|
|
11
|
+
export { InterceptorTypes } from './base/interceptor/config.js';
|
|
12
|
+
export { PerformanceMeasurementAPI } from './base/performance/api.js';
|
|
13
|
+
export { ParamRecordConfig, ParamRecordConfigField } from './base/utils/param-processing.js';
|
|
14
|
+
export { logTelemetry, logTelemetryAsync } from './base/decorator/index.js';
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,36 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.logTelemetryAsync = exports.logTelemetry = exports.ParamRecordConfigField = exports.ParamRecordConfig = exports.PerformanceMeasurementAPI = exports.InterceptorTypes = exports.getIdeType = exports.ToolsId = exports.ToolsSuiteTelemetryClient = exports.getTelemetrySetting = exports.setEnableTelemetry = exports.initTelemetrySettings = exports.SampleRate = exports.EventName = exports.EventHeader = exports.ApplicationInsightClient = exports.Client = exports.ClientFactory = void 0;
|
|
4
1
|
/* Types and classes */
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var event_header_1 = require("./base/types/event-header");
|
|
12
|
-
Object.defineProperty(exports, "EventHeader", { enumerable: true, get: function () { return event_header_1.EventHeader; } });
|
|
13
|
-
var event_name_1 = require("./base/types/event-name");
|
|
14
|
-
Object.defineProperty(exports, "EventName", { enumerable: true, get: function () { return event_name_1.EventName; } });
|
|
15
|
-
var sample_rate_1 = require("./base/types/sample-rate");
|
|
16
|
-
Object.defineProperty(exports, "SampleRate", { enumerable: true, get: function () { return sample_rate_1.SampleRate; } });
|
|
2
|
+
export { ClientFactory } from './base/client/index.js';
|
|
3
|
+
export { Client } from './base/client/client.js';
|
|
4
|
+
export { ApplicationInsightClient } from './base/client/azure-appinsight-client.js';
|
|
5
|
+
export { EventHeader } from './base/types/event-header.js';
|
|
6
|
+
export { EventName } from './base/types/event-name.js';
|
|
7
|
+
export { SampleRate } from './base/types/sample-rate.js';
|
|
17
8
|
/* API for most common use cases */
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Object.defineProperty(exports, "setEnableTelemetry", { enumerable: true, get: function () { return tooling_telemetry_1.setEnableTelemetry; } });
|
|
21
|
-
Object.defineProperty(exports, "getTelemetrySetting", { enumerable: true, get: function () { return tooling_telemetry_1.getTelemetrySetting; } });
|
|
22
|
-
Object.defineProperty(exports, "ToolsSuiteTelemetryClient", { enumerable: true, get: function () { return tooling_telemetry_1.ToolsSuiteTelemetryClient; } });
|
|
23
|
-
Object.defineProperty(exports, "ToolsId", { enumerable: true, get: function () { return tooling_telemetry_1.ToolsId; } });
|
|
24
|
-
Object.defineProperty(exports, "getIdeType", { enumerable: true, get: function () { return tooling_telemetry_1.getIdeType; } });
|
|
9
|
+
export { initTelemetrySettings, setEnableTelemetry, getTelemetrySetting, ToolsSuiteTelemetryClient, getIdeType } from './tooling-telemetry/index.js';
|
|
10
|
+
export { ToolsId } from './tooling-telemetry/index.js';
|
|
25
11
|
/* Decorator and measurements utils */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var param_processing_1 = require("./base/utils/param-processing");
|
|
31
|
-
Object.defineProperty(exports, "ParamRecordConfig", { enumerable: true, get: function () { return param_processing_1.ParamRecordConfig; } });
|
|
32
|
-
Object.defineProperty(exports, "ParamRecordConfigField", { enumerable: true, get: function () { return param_processing_1.ParamRecordConfigField; } });
|
|
33
|
-
var decorator_1 = require("./base/decorator");
|
|
34
|
-
Object.defineProperty(exports, "logTelemetry", { enumerable: true, get: function () { return decorator_1.logTelemetry; } });
|
|
35
|
-
Object.defineProperty(exports, "logTelemetryAsync", { enumerable: true, get: function () { return decorator_1.logTelemetryAsync; } });
|
|
12
|
+
export { InterceptorTypes } from './base/interceptor/config.js';
|
|
13
|
+
export { PerformanceMeasurementAPI } from './base/performance/api.js';
|
|
14
|
+
export { ParamRecordConfig, ParamRecordConfigField } from './base/utils/param-processing.js';
|
|
15
|
+
export { logTelemetry, logTelemetryAsync } from './base/decorator/index.js';
|
|
36
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToolingTelemetrySettings = void 0;
|
|
4
|
-
exports.ToolingTelemetrySettings = {
|
|
1
|
+
export const ToolingTelemetrySettings = {
|
|
5
2
|
internalFeature: false
|
|
6
3
|
};
|
|
7
4
|
//# sourceMappingURL=config-state.js.map
|