@microsoft/applicationinsights-debugplugin-js 3.0.0-beta.2303-11 → 3.0.0-nightly3.2304-28

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.
Files changed (101) hide show
  1. package/browser/{ai.dbg.3.0.0-beta.2303-11.cjs.js → es5/ai.dbg.3.0.0-nightly3.2304-28.cjs.js} +794 -773
  2. package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.cjs.js.map +1 -0
  3. package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.cjs.min.js +6 -0
  4. package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.cjs.min.js.map +1 -0
  5. package/browser/{ai.dbg.3.0.0-beta.2303-11.gbl.js → es5/ai.dbg.3.0.0-nightly3.2304-28.gbl.js} +795 -774
  6. package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.gbl.js.map +1 -0
  7. package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.gbl.min.js +6 -0
  8. package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.integrity.json +66 -0
  10. package/browser/{ai.dbg.3.0.0-beta.2303-11.js → es5/ai.dbg.3.0.0-nightly3.2304-28.js} +795 -774
  11. package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.js.map +1 -0
  12. package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.min.js +6 -0
  13. package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.min.js.map +1 -0
  14. package/browser/{ai.dbg.3.cjs.js → es5/ai.dbg.3.cjs.js} +793 -772
  15. package/browser/es5/ai.dbg.3.cjs.js.map +1 -0
  16. package/browser/es5/ai.dbg.3.cjs.min.js +6 -0
  17. package/browser/es5/ai.dbg.3.cjs.min.js.map +1 -0
  18. package/browser/{ai.dbg.3.gbl.js → es5/ai.dbg.3.gbl.js} +794 -773
  19. package/browser/es5/ai.dbg.3.gbl.js.map +1 -0
  20. package/browser/es5/ai.dbg.3.gbl.min.js +6 -0
  21. package/browser/es5/ai.dbg.3.gbl.min.js.map +1 -0
  22. package/browser/{ai.dbg.3.js → es5/ai.dbg.3.js} +794 -773
  23. package/browser/es5/ai.dbg.3.js.map +1 -0
  24. package/browser/es5/ai.dbg.3.min.js +6 -0
  25. package/browser/es5/ai.dbg.3.min.js.map +1 -0
  26. package/dist/{applicationinsights-debugplugin-js.js → es5/applicationinsights-debugplugin-js.js} +794 -773
  27. package/dist/es5/applicationinsights-debugplugin-js.js.map +1 -0
  28. package/dist/es5/applicationinsights-debugplugin-js.min.js +6 -0
  29. package/dist/es5/applicationinsights-debugplugin-js.min.js.map +1 -0
  30. package/{dist-esm → dist-es5}/DebugPlugin.js +1 -1
  31. package/{dist-esm → dist-es5}/__DynamicConstants.js +1 -1
  32. package/dist-es5/applicationinsights-debugplugin-js.js +9 -0
  33. package/{dist-esm → dist-es5}/components/Dashboard.js +1 -1
  34. package/{dist-esm → dist-es5}/components/LogEntry.js +1 -1
  35. package/{dist-esm → dist-es5}/components/debugBins.js +1 -1
  36. package/{dist-esm → dist-es5}/components/filterList.js +1 -1
  37. package/{dist-esm → dist-es5}/components/helpers.js +1 -1
  38. package/{dist-esm → dist-es5}/components/styleNodeSrc.js +1 -1
  39. package/dist-es5/interfaces/IDebugPluginConfig.js +8 -0
  40. package/package.json +18 -17
  41. package/tsconfig.json +4 -3
  42. package/types/applicationinsights-debugplugin-js.d.ts +59 -2
  43. package/{dist/applicationinsights-debugplugin-js.d.ts → types/applicationinsights-debugplugin-js.namespaced.d.ts} +1 -1
  44. package/browser/ai.dbg.3.0.0-beta.2303-11.cjs.js.map +0 -1
  45. package/browser/ai.dbg.3.0.0-beta.2303-11.cjs.min.js +0 -6
  46. package/browser/ai.dbg.3.0.0-beta.2303-11.cjs.min.js.map +0 -1
  47. package/browser/ai.dbg.3.0.0-beta.2303-11.gbl.js.map +0 -1
  48. package/browser/ai.dbg.3.0.0-beta.2303-11.gbl.min.js +0 -6
  49. package/browser/ai.dbg.3.0.0-beta.2303-11.gbl.min.js.map +0 -1
  50. package/browser/ai.dbg.3.0.0-beta.2303-11.integrity.json +0 -66
  51. package/browser/ai.dbg.3.0.0-beta.2303-11.js.map +0 -1
  52. package/browser/ai.dbg.3.0.0-beta.2303-11.min.js +0 -6
  53. package/browser/ai.dbg.3.0.0-beta.2303-11.min.js.map +0 -1
  54. package/browser/ai.dbg.3.cjs.js.map +0 -1
  55. package/browser/ai.dbg.3.cjs.min.js +0 -6
  56. package/browser/ai.dbg.3.cjs.min.js.map +0 -1
  57. package/browser/ai.dbg.3.gbl.js.map +0 -1
  58. package/browser/ai.dbg.3.gbl.min.js +0 -6
  59. package/browser/ai.dbg.3.gbl.min.js.map +0 -1
  60. package/browser/ai.dbg.3.js.map +0 -1
  61. package/browser/ai.dbg.3.min.js +0 -6
  62. package/browser/ai.dbg.3.min.js.map +0 -1
  63. package/dist/applicationinsights-debugplugin-js.api.json +0 -464
  64. package/dist/applicationinsights-debugplugin-js.api.md +0 -32
  65. package/dist/applicationinsights-debugplugin-js.js.map +0 -1
  66. package/dist/applicationinsights-debugplugin-js.min.js +0 -6
  67. package/dist/applicationinsights-debugplugin-js.min.js.map +0 -1
  68. package/dist/applicationinsights-debugplugin-js.rollup.d.ts +0 -60
  69. package/dist-esm/applicationinsights-debugplugin-js.js +0 -9
  70. package/dist-esm/interfaces/IDebugPluginConfig.js +0 -8
  71. package/src/DebugPlugin.ts +0 -397
  72. package/src/__DynamicConstants.ts +0 -51
  73. package/src/applicationinsights-debugplugin-js.ts +0 -6
  74. package/src/components/Dashboard.ts +0 -288
  75. package/src/components/LogEntry.ts +0 -102
  76. package/src/components/debugBins.ts +0 -127
  77. package/src/components/filterList.ts +0 -128
  78. package/src/components/helpers.ts +0 -474
  79. package/src/components/styleNodeSrc.ts +0 -435
  80. package/src/interfaces/IDebugPluginConfig.ts +0 -39
  81. package/src/localization/EN-US.json +0 -0
  82. package/types/DebugPlugin.d.ts +0 -9
  83. package/types/__DynamicConstants.d.ts +0 -39
  84. package/types/components/Dashboard.d.ts +0 -19
  85. package/types/components/LogEntry.d.ts +0 -9
  86. package/types/components/debugBins.d.ts +0 -24
  87. package/types/components/filterList.d.ts +0 -7
  88. package/types/components/helpers.d.ts +0 -9
  89. package/types/components/styleNodeSrc.d.ts +0 -2
  90. package/types/interfaces/IDebugPluginConfig.d.ts +0 -28
  91. package/types/tsdoc-metadata.json +0 -11
  92. /package/{dist-esm → dist-es5}/DebugPlugin.js.map +0 -0
  93. /package/{dist-esm → dist-es5}/__DynamicConstants.js.map +0 -0
  94. /package/{dist-esm → dist-es5}/applicationinsights-debugplugin-js.js.map +0 -0
  95. /package/{dist-esm → dist-es5}/components/Dashboard.js.map +0 -0
  96. /package/{dist-esm → dist-es5}/components/LogEntry.js.map +0 -0
  97. /package/{dist-esm → dist-es5}/components/debugBins.js.map +0 -0
  98. /package/{dist-esm → dist-es5}/components/filterList.js.map +0 -0
  99. /package/{dist-esm → dist-es5}/components/helpers.js.map +0 -0
  100. /package/{dist-esm → dist-es5}/components/styleNodeSrc.js.map +0 -0
  101. /package/{dist-esm → dist-es5}/interfaces/IDebugPluginConfig.js.map +0 -0
@@ -1,60 +0,0 @@
1
- /*
2
- * Microsoft.ApplicationInsights, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- *
5
- * Microsoft Application Insights Team
6
- * https://github.com/microsoft/ApplicationInsights-JS#readme
7
- *
8
- * ---------------------------------------------------------------------------
9
- * This is a single combined (rollup) declaration file for the package,
10
- * use this version if your build environment doesn't support the using the
11
- * individual *.d.ts files or default namespace wrapped version.
12
- * - Namespaced version: applicationinsights-debugplugin-js.d.ts
13
- * ---------------------------------------------------------------------------
14
- */
15
-
16
- import { BaseTelemetryPlugin } from '@microsoft/applicationinsights-core-js';
17
- import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
18
- import { IConfiguration } from '@microsoft/applicationinsights-core-js';
19
- import { IPlugin } from '@microsoft/applicationinsights-core-js';
20
- import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
21
- import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
22
- import { ITelemetryPluginChain } from '@microsoft/applicationinsights-core-js';
23
-
24
- export declare class DebugPlugin extends BaseTelemetryPlugin {
25
- static identifier: string;
26
- identifier: string;
27
- constructor();
28
- initialize(config: IConfiguration | IDebugPluginConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
29
- processTelemetry(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
30
- }
31
-
32
- declare interface IDebugPluginConfig extends IConfiguration {
33
- trackers?: string[];
34
- /**
35
- * The prefix to use for the css styles, defaults to 'ai'
36
- */
37
- cssPrefix?: string;
38
- /**
39
- * Disable listening to notifications from the notification manager. Defaults to false
40
- */
41
- disableNotifications?: boolean;
42
- /**
43
- * [Optional] Dump extra debug information to the console as well as the dashboard
44
- */
45
- dumpToConsole?: boolean;
46
- /**
47
- * [Optional] The maximum number of messages to retain, older messages will be dropped - defaults to 5,000.
48
- */
49
- maxMessages?: number;
50
- /**
51
- * [Optional] Flag for whether to include functions in the DebugPlugin dashboard. Defaults to false
52
- */
53
- showFunctions?: boolean;
54
- /**
55
- * [Optional] If processTelemetry is not included in the trackers should the DebugPlugin log the arguments - defaults to false
56
- */
57
- logProcessTelemetry?: boolean;
58
- }
59
-
60
- export { }
@@ -1,9 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Debug Plugin, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- import DebugPlugin from "./DebugPlugin";
8
- export { DebugPlugin };
9
- //# sourceMappingURL=applicationinsights-debugplugin-js.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Debug Plugin, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IDebugPluginConfig.js.map
@@ -1,397 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
-
4
- import dynamicProto from "@microsoft/dynamicproto-js";
5
- import {
6
- BaseTelemetryPlugin, IAppInsightsCore, IChannelControls, IConfiguration, IInstrumentCallDetails, IPerfEvent, IPlugin,
7
- IProcessTelemetryContext, ITelemetryItem, ITelemetryPluginChain, InstrumentFunc, InstrumentorHooksCallback, arrForEach, arrIndexOf,
8
- dateNow, getDebugExt, isArray, isFunction, isUndefined, objForEachKey
9
- } from "@microsoft/applicationinsights-core-js";
10
- import { Dashboard } from "./components/Dashboard";
11
- import { DebugBin, DebugBinParent } from "./components/debugBins";
12
- import { getTargetName } from "./components/helpers";
13
- import { permStyle } from "./components/styleNodeSrc";
14
- import { IDebugPluginConfig } from "./interfaces/IDebugPluginConfig";
15
-
16
- interface IDebugConfig {
17
-
18
- trackers: () => string[];
19
-
20
- excludeKeys: () => string[];
21
-
22
- cssPrefix: () => string;
23
-
24
- disableNotifications: () => boolean;
25
-
26
- dumpToConsole: () => boolean;
27
-
28
- maxMessages: () => number;
29
-
30
- showFunctions: () => boolean;
31
-
32
- logProcessTelemetry: () => boolean;
33
- }
34
-
35
- const getDefaultConfig = (): IDebugConfig => {
36
- const config = {
37
- trackers: () => [
38
- "flush",
39
- "track",
40
- "trackEvent",
41
- "trackPageView",
42
- "trackPageViewPerformance",
43
- "trackException",
44
- "trackTrace",
45
- "trackMetric",
46
- "trackDependencyData",
47
- "processTelemetry",
48
- "throwInternal",
49
- "logInternalMessage",
50
- "triggerSend",
51
- "_sender",
52
- "perfEvent",
53
- "initialize"
54
- ],
55
- excludeKeys: () => [
56
- "_dynInstFuncs",
57
- "_getTelCtx",
58
- "_baseTelInit",
59
- "diagLog",
60
- "isInitialized",
61
- "setInitialized",
62
- "setNextPlugin",
63
- "processNext"
64
- ],
65
- cssPrefix: () => "ai",
66
- disableNotifications: () => false,
67
- dumpToConsole: () => false,
68
- maxMessages: () => 5000,
69
- showFunctions: () => false,
70
- logProcessTelemetry: () => false
71
- };
72
-
73
- return config;
74
- }
75
-
76
- export default class DebugPlugin extends BaseTelemetryPlugin {
77
-
78
- public static identifier: string = "DebugPlugin";
79
-
80
- public identifier: string = DebugPlugin.identifier;
81
-
82
- constructor() {
83
- super();
84
- let dashboard: Dashboard;
85
-
86
- /**
87
- * the style that will be permanently embedded in the webpage
88
- * TODO: manage style conflicts (prepend unique ID to relevant class names?)
89
- */
90
- let permStyleEl: HTMLStyleElement;
91
-
92
- /**
93
- * an object containing the individual debug bin items
94
- */
95
- let debugBins: {
96
- [key: string]: DebugBin;
97
- };
98
-
99
- /**
100
- * the parent containing all the individual debugBins
101
- */
102
- let debugBinParent: DebugBinParent;
103
-
104
- /**
105
- * the different telemetry functions that will be tracked
106
- */
107
- let trackers: string[];
108
-
109
- /**
110
- * timestamp used to track number of seconds since webpage was loaded
111
- */
112
- let startTime: number = +new Date();
113
-
114
- /**
115
- * the config for this plugin
116
- */
117
- let _theConfig: IDebugConfig = getDefaultConfig();
118
-
119
- dynamicProto(DebugPlugin, this, (_self, base) => {
120
- _self.initialize = (config: IConfiguration | IDebugPluginConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) => {
121
- if (!_self.isInitialized()) {
122
- base.initialize(config, core, extensions, pluginChain);
123
-
124
- const defaultConfig = getDefaultConfig();
125
- const ctx = _self._getTelCtx();
126
- const identifier = _self.identifier;
127
- objForEachKey(defaultConfig, (field, value) => {
128
- _theConfig[field] = () => ctx.getConfig(identifier, field, value());
129
- });
130
-
131
- let foundTrackers: string[] = [];
132
- trackers = _theConfig.trackers();
133
- let prefix = _theConfig.cssPrefix();
134
-
135
- // 1. Listen to Notifications
136
- if (!_theConfig.disableNotifications()) {
137
- let notifyMgr = (isFunction(core.getNotifyMgr) && core.getNotifyMgr()) || core["_notificationManager"];
138
- if (notifyMgr) {
139
- notifyMgr.addNotificationListener({
140
- eventsSent: (events: ITelemetryItem[]) => {
141
- dashboard.newLogEntry(events, dateNow() - startTime, "Notification:eventsSent", 0, "eventsSent");
142
- },
143
- eventsDiscarded: (events: ITelemetryItem[], reason: number) => {
144
- dashboard.newLogEntry({
145
- events,
146
- reason
147
- }, dateNow() - startTime, "Notification:eventsDiscarded", 0, "eventsDiscarded");
148
-
149
- },
150
- eventsSendRequest: (sendReason: number, isAsync: boolean): void => {
151
- dashboard.newLogEntry({
152
- sendReason,
153
- isAsync
154
- }, dateNow() - startTime, "Notification:eventsSendRequest", 0, "eventsSendRequest");
155
- },
156
- perfEvent: (perfEvent: IPerfEvent): void => {
157
- let evtName = `Notification:perfEvent[${perfEvent.name}]`;
158
- dashboard.newLogEntry(
159
- perfEvent,
160
- dateNow() - startTime, evtName, 0, "perfEvent");
161
- }
162
- });
163
-
164
- if (arrIndexOf(trackers, "eventsSent") !== -1) {
165
- foundTrackers.push("eventsSent");
166
- }
167
- if (arrIndexOf(trackers, "eventsSendRequest") !== -1) {
168
- foundTrackers.push("eventsSendRequest");
169
- }
170
- if (arrIndexOf(trackers, "eventsDiscarded") !== -1) {
171
- foundTrackers.push("eventsDiscarded");
172
- }
173
- if (arrIndexOf(trackers, "perfEvent") !== -1) {
174
- foundTrackers.push("perfEvent");
175
- }
176
- }
177
- }
178
-
179
- // 2. Get all of the extensions and channels
180
- debugBins = {};
181
- let targetObjects: any[] = [core, _self.diagLog()];
182
-
183
- // Get all of the config extensions
184
- if (config.extensions) {
185
- arrForEach(config.extensions, (ext) => {
186
- _addTargets(targetObjects, ext);
187
- });
188
- }
189
-
190
- // Get all of the passed extensions
191
- if (extensions) {
192
- arrForEach(extensions, (ext) => {
193
- _addTargets(targetObjects, ext);
194
- });
195
- }
196
-
197
- if (isFunction(core["getTransmissionControls"])) {
198
- let channelControls: IChannelControls[][] = core["getTransmissionControls"]();
199
- if (channelControls) {
200
- arrForEach(channelControls, (channel) => {
201
- if (isArray(channel)) {
202
- arrForEach(channel, (theChannel) => {
203
- _addTargets(targetObjects, theChannel);
204
- });
205
- }
206
- });
207
- }
208
- }
209
-
210
- if (isFunction(core["getChannels"])) {
211
- let channelControls: IChannelControls[] = core["getChannels"]();
212
- if (channelControls) {
213
- arrForEach(channelControls, (theChannel) => {
214
- _addTargets(targetObjects, theChannel);
215
- });
216
- }
217
- }
218
-
219
- // 3. Instrument the functions
220
- arrForEach(trackers, (tracker: string) => {
221
- arrForEach(targetObjects, (target, idx) => {
222
- let val = InstrumentFunc(target, tracker, {
223
- req: _handleInstPreHook() as any as () => InstrumentorHooksCallback,
224
- rsp: _handleInstPostHook() as any as () => InstrumentorHooksCallback
225
- }, true);
226
-
227
- if (val) {
228
- if (arrIndexOf(foundTrackers, tracker) === -1) {
229
- foundTrackers.push(tracker);
230
- }
231
- }
232
- });
233
- });
234
-
235
- // Sort the items
236
- foundTrackers = foundTrackers.sort();
237
-
238
- // 4. Create the Dashboard
239
- dashboard = new Dashboard({
240
- prefix,
241
- trackers: foundTrackers,
242
- excludeKeys: _theConfig.excludeKeys(),
243
- maxMessages: _theConfig.maxMessages(),
244
- includeFunctions: _theConfig.showFunctions()
245
- });
246
-
247
- // 5. setup debugBin
248
- const debugBinContainer = document.createElement("div");
249
- debugBinContainer.className = `${prefix}-debug-bin-container`;
250
- debugBinParent = new DebugBinParent(debugBinContainer, [], 0, prefix);
251
-
252
- arrForEach(foundTrackers, (tracker, idx) => {
253
- debugBins[tracker] = new DebugBin(tracker, 0, debugBinParent, (idx + 1) * 50);
254
- });
255
-
256
- // 6. append permanent style
257
- permStyleEl = document.createElement("style");
258
- permStyleEl.innerHTML = permStyle(prefix);
259
- document.head.appendChild(permStyleEl);
260
-
261
- // 7. add button to debugBinParent
262
- debugBinParent.addButton((evt: MouseEvent) => {
263
- evt.stopPropagation();
264
-
265
- if (dashboard.isDisplayed()) {
266
- dashboard.hide();
267
- } else {
268
- dashboard.show();
269
- }
270
- }, "show dashboard");
271
-
272
- document.body.appendChild(
273
- debugBinContainer
274
- );
275
-
276
- // 8. Log the config as "keep" so it won't be dropped or cleared
277
- dashboard.newLogEntry(config, 0, "config", 0, "config", true);
278
- }
279
- }
280
-
281
- function _addTarget(targetObjects: any[], ext:any) {
282
- if (ext && arrIndexOf(targetObjects, ext) === -1) {
283
- targetObjects.push(ext);
284
- return true;
285
- }
286
-
287
- return false;
288
- }
289
-
290
- function _addTargets(targetObjects: any[], ext:any) {
291
- if (_addTarget(targetObjects, ext)) {
292
- if (isFunction(ext["_getDbgPlgTargets"])) {
293
- let extra = ext["_getDbgPlgTargets"]();
294
- if (isArray(extra)) {
295
- arrForEach(extra, (tgt) => {
296
- _addTargets(targetObjects, tgt);
297
- });
298
- }
299
- }
300
- }
301
- }
302
-
303
- function _createInstrumentObject(funcArgs: IInstrumentCallDetails, orgArgs: any[]) {
304
- let result: any = {
305
- funcName: funcArgs.name,
306
- inst: funcArgs.inst
307
- };
308
- if (orgArgs && orgArgs.length) {
309
- result.args = orgArgs;
310
- }
311
- if (!isUndefined(funcArgs.err)) {
312
- result.err = funcArgs.err;
313
- }
314
- if (!isUndefined(funcArgs.rslt)) {
315
- result.rslt = funcArgs.rslt;
316
- }
317
-
318
- return result;
319
- }
320
-
321
- function _getEvtPrefix(funcArgs: IInstrumentCallDetails) {
322
- let identifier = getTargetName(funcArgs.inst);
323
- let evtPrefix = funcArgs.name;
324
- if (identifier) {
325
- evtPrefix += ":" + identifier;
326
- }
327
-
328
- return evtPrefix;
329
- }
330
-
331
- function _logEntry(theEvent: any, evtName: string, kind: string) {
332
- dashboard.newLogEntry(theEvent, dateNow() - startTime, evtName, 0, kind);
333
-
334
- let dbgExt = getDebugExt(_self.core.config);
335
- if (dbgExt && dbgExt.debugMsg) {
336
- dbgExt.debugMsg(evtName, theEvent);
337
- }
338
- }
339
-
340
- function _handleInstPreHook() {
341
- return (funcArgs: IInstrumentCallDetails, ...orgArgs: any[]) => {
342
- (debugBins[funcArgs.name] || debugBins.default).increment();
343
- if (funcArgs.name === "trackException" && !debugBinParent.showChildren) {
344
- debugBinParent.addClassToEl("notify");
345
- }
346
-
347
- let evtPrefix = _getEvtPrefix(funcArgs);
348
- _logEntry(_createInstrumentObject(funcArgs, orgArgs), evtPrefix, funcArgs.name);
349
-
350
- if (_theConfig.dumpToConsole() && console && console.log) {
351
- console.log(`[${evtPrefix}] preProcess - funcArgs: `, funcArgs);
352
- console.log(`[${evtPrefix}] preProcess - orgArgs: `, orgArgs);
353
- }
354
- }
355
- }
356
-
357
- function _handleInstPostHook() {
358
- return (funcArgs: IInstrumentCallDetails, ...orgArgs: any[]) => {
359
- if (!isUndefined(funcArgs.err)) {
360
- let evtPrefix = _getEvtPrefix(funcArgs);
361
-
362
- if (!debugBinParent.showChildren) {
363
- debugBinParent.addClassToEl("notify");
364
- }
365
-
366
- // The called function threw an exception
367
- _logEntry(_createInstrumentObject(funcArgs, orgArgs), evtPrefix, funcArgs.name);
368
-
369
- if (_theConfig.dumpToConsole() && console && console.log) {
370
- console.log(`[${evtPrefix}] complete`);
371
- }
372
- }
373
- }
374
- }
375
-
376
- _self.processTelemetry = (event: ITelemetryItem, itemCtx?: IProcessTelemetryContext) => {
377
- if (_theConfig.dumpToConsole() && console && console.log) {
378
- console.log(`[${_self.identifier}:processTelemetry] complete`);
379
- }
380
-
381
- if (!debugBins["processTelemetry"] && _theConfig.logProcessTelemetry() === true) {
382
- _logEntry(event, `[${_self.identifier}:processTelemetry[${event.baseType}]`, "processTelemetry");
383
- }
384
-
385
- _self.processNext(event, itemCtx);
386
- }
387
- });
388
- }
389
-
390
- public initialize(config: IConfiguration | IDebugPluginConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) {
391
- // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
392
- }
393
-
394
- processTelemetry(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext) {
395
- // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
396
- }
397
- }
@@ -1,51 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
- // @skip-file-minify
4
-
5
- // ##############################################################
6
- // AUTO GENERATED FILE: This file is Auto Generated during build.
7
- // ##############################################################
8
-
9
- // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- // Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!
11
- // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
-
13
- export const _DYN_IDENTIFIER = "identifier"; // Count: 4
14
- export const _DYN_TRACKERS = "trackers"; // Count: 4
15
- export const _DYN_DISABLE_NOTIFICATION0 = "disableNotifications"; // Count: 2
16
- export const _DYN_NEW_LOG_ENTRY = "newLogEntry"; // Count: 7
17
- export const _DYN_PUSH = "push"; // Count: 21
18
- export const _DYN_EXCLUDE_KEYS = "excludeKeys"; // Count: 5
19
- export const _DYN_MAX_MESSAGES = "maxMessages"; // Count: 4
20
- export const _DYN_CREATE_ELEMENT = "createElement"; // Count: 35
21
- export const _DYN_CLASS_NAME = "className"; // Count: 40
22
- export const _DYN_INNER_HTML = "innerHTML"; // Count: 3
23
- export const _DYN_APPEND_CHILD = "appendChild"; // Count: 32
24
- export const _DYN_STOP_PROPAGATION = "stopPropagation"; // Count: 9
25
- export const _DYN_IS_DISPLAYED = "isDisplayed"; // Count: 5
26
- export const _DYN_NAME = "name"; // Count: 9
27
- export const _DYN_LENGTH = "length"; // Count: 12
28
- export const _DYN_SHOW_CHILDREN = "showChildren"; // Count: 8
29
- export const _DYN_DUMP_TO_CONSOLE = "dumpToConsole"; // Count: 4
30
- export const _DYN_LOG_PROCESS_TELEMETR1 = "logProcessTelemetry"; // Count: 2
31
- export const _DYN_INCLUDE_FUNCTIONS = "includeFunctions"; // Count: 3
32
- export const _DYN_POINTER_EVENTS = "pointerEvents"; // Count: 3
33
- export const _DYN_PARENT_ELEMENT = "parentElement"; // Count: 9
34
- export const _DYN_SET_TEXT_FILTER = "setTextFilter"; // Count: 4
35
- export const _DYN_RENDER = "render"; // Count: 11
36
- export const _DYN_GET_EL = "getEl"; // Count: 5
37
- export const _DYN_REMOVE_CHILD = "removeChild"; // Count: 10
38
- export const _DYN_SET_ATTRIBUTE = "setAttribute"; // Count: 7
39
- export const _DYN_ONKEYUP = "onkeyup"; // Count: 4
40
- export const _DYN_INNER_TEXT = "innerText"; // Count: 17
41
- export const _DYN_ONCLICK = "onclick"; // Count: 9
42
- export const _DYN_ONTOUCHEND = "ontouchend"; // Count: 5
43
- export const _DYN_ONKEYDOWN = "onkeydown"; // Count: 3
44
- export const _DYN_PREVENT_DEFAULT = "preventDefault"; // Count: 3
45
- export const _DYN_TARGET = "target"; // Count: 4
46
- export const _DYN_CHILDREN = "children"; // Count: 5
47
- export const _DYN_FILTER_LIST = "filterList"; // Count: 5
48
- export const _DYN_FOCUS = "focus"; // Count: 7
49
- export const _DYN_REPLACE = "replace"; // Count: 6
50
- export const _DYN_SUBSTRING = "substring"; // Count: 5
51
- export const _DYN_TO_STRING = "toString"; // Count: 4
@@ -1,6 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
-
4
- import DebugPlugin from "./DebugPlugin";
5
-
6
- export { DebugPlugin };