@microsoft/applicationinsights-core-js 3.0.0-beta.2303-03 → 3.0.0-beta.2303-05

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 (132) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +2 -2
  3. package/browser/applicationinsights-core-js.js.map +1 -1
  4. package/browser/applicationinsights-core-js.min.js +2 -2
  5. package/browser/applicationinsights-core-js.min.js.map +1 -1
  6. package/dist/applicationinsights-core-js.api.json +113 -206
  7. package/dist/applicationinsights-core-js.api.md +11 -14
  8. package/dist/applicationinsights-core-js.d.ts +15 -13
  9. package/dist/applicationinsights-core-js.js +2 -2
  10. package/dist/applicationinsights-core-js.js.map +1 -1
  11. package/dist/applicationinsights-core-js.min.js +2 -2
  12. package/dist/applicationinsights-core-js.min.js.map +1 -1
  13. package/dist/applicationinsights-core-js.rollup.d.ts +15 -13
  14. package/dist-esm/Config/ConfigDefaultHelpers.js +1 -1
  15. package/dist-esm/Config/ConfigDefaults.js +1 -1
  16. package/dist-esm/Config/DynamicConfig.js +1 -1
  17. package/dist-esm/Config/DynamicProperty.js +1 -1
  18. package/dist-esm/Config/DynamicState.js +1 -1
  19. package/dist-esm/Config/DynamicSupport.js +1 -1
  20. package/dist-esm/Config/IConfigDefaults.js +1 -1
  21. package/dist-esm/Config/IDynamicConfigHandler.js +1 -1
  22. package/dist-esm/Config/IDynamicPropertyHandler.js +1 -1
  23. package/dist-esm/Config/IDynamicWatcher.js +1 -1
  24. package/dist-esm/Config/_IDynamicConfigHandlerState.js +1 -1
  25. package/dist-esm/JavaScriptSDK/AggregationError.js +1 -1
  26. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
  27. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  28. package/dist-esm/JavaScriptSDK/Constants.js +1 -1
  29. package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
  30. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
  31. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
  32. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  33. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  34. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
  35. package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
  36. package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
  37. package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
  38. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
  39. package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
  40. package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
  41. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  42. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
  43. package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
  44. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
  45. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
  46. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  47. package/dist-esm/JavaScriptSDK/UnloadHookContainer.js +1 -1
  48. package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
  49. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  50. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  51. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  52. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  53. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  54. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  55. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  56. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  65. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  66. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  67. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  68. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  69. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  70. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  71. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  72. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  73. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  74. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
  75. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
  76. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  77. package/dist-esm/__DynamicConstants.js +1 -1
  78. package/dist-esm/applicationinsights-core-js.js +1 -1
  79. package/package.json +1 -1
  80. package/types/JavaScriptSDK/AppInsightsCore.d.ts +5 -6
  81. package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +9 -6
  82. package/src/JavaScriptSDK/AggregationError.ts +0 -36
  83. package/src/JavaScriptSDK/AppInsightsCore.ts +0 -1322
  84. package/src/JavaScriptSDK/BaseTelemetryPlugin.ts +0 -343
  85. package/src/JavaScriptSDK/Constants.ts +0 -4
  86. package/src/JavaScriptSDK/CookieMgr.ts +0 -449
  87. package/src/JavaScriptSDK/CoreUtils.ts +0 -58
  88. package/src/JavaScriptSDK/DataCacheHelper.ts +0 -107
  89. package/src/JavaScriptSDK/DbgExtensionUtils.ts +0 -56
  90. package/src/JavaScriptSDK/DiagnosticLogger.ts +0 -380
  91. package/src/JavaScriptSDK/EnvUtils.ts +0 -312
  92. package/src/JavaScriptSDK/EventHelpers.ts +0 -550
  93. package/src/JavaScriptSDK/HelperFuncs.ts +0 -351
  94. package/src/JavaScriptSDK/InstrumentHooks.ts +0 -280
  95. package/src/JavaScriptSDK/InternalConstants.ts +0 -31
  96. package/src/JavaScriptSDK/NotificationManager.ts +0 -165
  97. package/src/JavaScriptSDK/PerfManager.ts +0 -288
  98. package/src/JavaScriptSDK/ProcessTelemetryContext.ts +0 -674
  99. package/src/JavaScriptSDK/RandomHelper.ts +0 -145
  100. package/src/JavaScriptSDK/TelemetryHelpers.ts +0 -184
  101. package/src/JavaScriptSDK/TelemetryInitializerPlugin.ts +0 -112
  102. package/src/JavaScriptSDK/UnloadHandlerContainer.ts +0 -45
  103. package/src/JavaScriptSDK/UnloadHookContainer.ts +0 -52
  104. package/src/JavaScriptSDK/W3cTraceParent.ts +0 -197
  105. package/src/JavaScriptSDK.Enums/EnumHelperFuncs.ts +0 -24
  106. package/src/JavaScriptSDK.Enums/EventsDiscardedReason.ts +0 -71
  107. package/src/JavaScriptSDK.Enums/LoggingEnums.ts +0 -121
  108. package/src/JavaScriptSDK.Enums/SendRequestReason.ts +0 -56
  109. package/src/JavaScriptSDK.Enums/TelemetryUnloadReason.ts +0 -27
  110. package/src/JavaScriptSDK.Enums/TelemetryUpdateReason.ts +0 -27
  111. package/src/JavaScriptSDK.Interfaces/IAppInsightsCore.ts +0 -216
  112. package/src/JavaScriptSDK.Interfaces/IChannelControls.ts +0 -46
  113. package/src/JavaScriptSDK.Interfaces/IConfiguration.ts +0 -176
  114. package/src/JavaScriptSDK.Interfaces/ICookieMgr.ts +0 -116
  115. package/src/JavaScriptSDK.Interfaces/IDbgExtension.ts +0 -14
  116. package/src/JavaScriptSDK.Interfaces/IDiagnosticLogger.ts +0 -75
  117. package/src/JavaScriptSDK.Interfaces/IDistributedTraceContext.ts +0 -54
  118. package/src/JavaScriptSDK.Interfaces/IInstrumentHooks.ts +0 -100
  119. package/src/JavaScriptSDK.Interfaces/INotificationListener.ts +0 -39
  120. package/src/JavaScriptSDK.Interfaces/INotificationManager.ts +0 -52
  121. package/src/JavaScriptSDK.Interfaces/IPerfEvent.ts +0 -69
  122. package/src/JavaScriptSDK.Interfaces/IPerfManager.ts +0 -53
  123. package/src/JavaScriptSDK.Interfaces/IProcessTelemetryContext.ts +0 -157
  124. package/src/JavaScriptSDK.Interfaces/ITelemetryInitializers.ts +0 -17
  125. package/src/JavaScriptSDK.Interfaces/ITelemetryItem.ts +0 -62
  126. package/src/JavaScriptSDK.Interfaces/ITelemetryPlugin.ts +0 -94
  127. package/src/JavaScriptSDK.Interfaces/ITelemetryPluginChain.ts +0 -30
  128. package/src/JavaScriptSDK.Interfaces/ITelemetryUnloadState.ts +0 -10
  129. package/src/JavaScriptSDK.Interfaces/ITelemetryUpdateState.ts +0 -44
  130. package/src/JavaScriptSDK.Interfaces/ITraceParent.ts +0 -38
  131. package/src/JavaScriptSDK.Interfaces/IUnloadHook.ts +0 -22
  132. package/src/JavaScriptSDK.Interfaces/IUnloadableComponent.ts +0 -17
@@ -1,197 +0,0 @@
1
- import { isArray, isString, strLeft, strTrim } from "@nevware21/ts-utils";
2
- import { ITraceParent } from "../JavaScriptSDK.Interfaces/ITraceParent";
3
- import { generateW3CId } from "./CoreUtils";
4
- import { findMetaTag, findNamedServerTiming } from "./EnvUtils";
5
- import { STR_EMPTY } from "./InternalConstants";
6
-
7
- // using {0,16} for leading and trailing whitespace just to constrain the possible runtime of a random string
8
- const TRACE_PARENT_REGEX = /^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i;
9
- const DEFAULT_VERSION = "00";
10
- const INVALID_VERSION = "ff";
11
- const INVALID_TRACE_ID = "00000000000000000000000000000000";
12
- const INVALID_SPAN_ID = "0000000000000000";
13
- const SAMPLED_FLAG = 0x01;
14
-
15
- function _isValid(value: string, len: number, invalidValue?: string): boolean {
16
- if (value && value.length === len && value !== invalidValue) {
17
- return !!value.match(/^[\da-f]*$/i);
18
- }
19
-
20
- return false;
21
- }
22
-
23
- function _formatValue(value: string, len: number, defValue: string): string {
24
- if (_isValid(value, len)) {
25
- return value;
26
- }
27
-
28
- return defValue;
29
- }
30
-
31
- function _formatFlags(value: number): string {
32
- if (isNaN(value) || value < 0 || value > 255) {
33
- value = 0x01;
34
- }
35
-
36
- let result = value.toString(16);
37
- while (result.length < 2) {
38
- result = "0" + result;
39
- }
40
-
41
- return result;
42
- }
43
-
44
- /**
45
- * Create a new ITraceParent instance using the provided values.
46
- * @param traceId - The traceId to use, when invalid a new random W3C id will be generated.
47
- * @param spanId - The parent/span id to use, a new random value will be generated if it is invalid.
48
- * @param flags - The traceFlags to use, defaults to zero (0) if not supplied or invalid
49
- * @param version - The version to used, defaults to version "01" if not supplied or invalid.
50
- * @returns
51
- */
52
- export function createTraceParent(traceId?: string, spanId?: string, flags?: number, version?: string): ITraceParent {
53
-
54
- return {
55
- version: _isValid(version, 2, INVALID_VERSION) ? version : DEFAULT_VERSION,
56
- traceId: isValidTraceId(traceId) ? traceId : generateW3CId(),
57
- spanId: isValidSpanId(spanId) ? spanId : strLeft(generateW3CId(), 16),
58
- traceFlags: flags >= 0 && flags <= 0xFF ? flags : 1
59
- };
60
- }
61
-
62
- /**
63
- * Attempt to parse the provided string as a W3C TraceParent header value (https://www.w3.org/TR/trace-context/#traceparent-header)
64
- *
65
- * @param value
66
- * @returns
67
- */
68
- export function parseTraceParent(value: string): ITraceParent {
69
- if (!value) {
70
- // Don't pass a null/undefined or empty string
71
- return null;
72
- }
73
-
74
- if (isArray(value)) {
75
- // The value may have been encoded on the page into an array so handle this automatically
76
- value = value[0] || "";
77
- }
78
-
79
- if (!value || !isString(value) || value.length > 8192) {
80
- // limit potential processing based on total length
81
- return null;
82
- }
83
-
84
- // See https://www.w3.org/TR/trace-context/#versioning-of-traceparent
85
- const match = TRACE_PARENT_REGEX.exec(strTrim(value));
86
- if (!match || // No match
87
- match[1] === INVALID_VERSION || // version ff is forbidden
88
- match[2] === INVALID_TRACE_ID || // All zeros is considered to be invalid
89
- match[3] === INVALID_SPAN_ID) { // All zeros is considered to be invalid
90
- return null;
91
- }
92
-
93
- return {
94
- version: (match[1] || STR_EMPTY).toLowerCase(),
95
- traceId: (match[2] || STR_EMPTY).toLowerCase(),
96
- spanId: (match[3] || STR_EMPTY).toLowerCase(),
97
- traceFlags: parseInt(match[4], 16)
98
- }
99
- }
100
-
101
- /**
102
- * Is the provided W3c Trace Id a valid string representation, it must be a 32-character string
103
- * of lowercase hexadecimal characters for example, 4bf92f3577b34da6a3ce929d0e0e4736.
104
- * If all characters as zero (00000000000000000000000000000000) it will be considered an invalid value.
105
- * @param value - The W3c trace Id to be validated
106
- * @returns true if valid otherwise false
107
- */
108
- export function isValidTraceId(value: string): boolean {
109
- return _isValid(value, 32, INVALID_TRACE_ID);
110
- }
111
-
112
- /**
113
- * Is the provided W3c span id (aka. parent id) a valid string representation, it must be a 16-character
114
- * string of lowercase hexadecimal characters, for example, 00f067aa0ba902b7.
115
- * If all characters are zero (0000000000000000) this is considered an invalid value.
116
- * @param value - The W3c span id to be validated
117
- * @returns true if valid otherwise false
118
- */
119
- export function isValidSpanId(value: string): boolean {
120
- return _isValid(value, 16, INVALID_SPAN_ID);
121
- }
122
-
123
- /**
124
- * Validates that the provided ITraceParent instance conforms to the currently supported specifications
125
- * @param value
126
- * @returns
127
- */
128
- export function isValidTraceParent(value: ITraceParent) {
129
- if (!value ||
130
- !_isValid(value.version, 2, INVALID_VERSION) ||
131
- !_isValid(value.traceId, 32, INVALID_TRACE_ID) ||
132
- !_isValid(value.spanId, 16, INVALID_SPAN_ID) ||
133
- !_isValid(_formatFlags(value.traceFlags), 2)) {
134
-
135
- // Each known field must contain a valid value
136
- return false;
137
- }
138
-
139
- return true;
140
- }
141
-
142
- /**
143
- * Is the parsed traceParent indicating that the trace is currently sampled.
144
- * @param value - The parsed traceParent value
145
- * @returns
146
- */
147
- export function isSampledFlag(value: ITraceParent) {
148
- if (isValidTraceParent(value)) {
149
- return (value.traceFlags & SAMPLED_FLAG) === SAMPLED_FLAG;
150
- }
151
-
152
- return false;
153
- }
154
-
155
- /**
156
- * Format the ITraceParent value as a string using the supported and know version formats.
157
- * So even if the passed traceParent is a later version the string value returned from this
158
- * function will convert it to only the known version formats.
159
- * This currently only supports version "00" and invalid "ff"
160
- * @param value - The parsed traceParent value
161
- * @returns
162
- */
163
- export function formatTraceParent(value: ITraceParent) {
164
- if (value) {
165
- // Special Note: This only supports formatting as version 00, future versions should encode any known supported version
166
- // So parsing a future version will populate the correct version value but reformatting will reduce it to version 00.
167
- let flags = _formatFlags(value.traceFlags);
168
- if (!_isValid(flags, 2)) {
169
- flags = "01";
170
- }
171
-
172
- let version = value.version || DEFAULT_VERSION;
173
- if (version !== "00" && version !== "ff") {
174
- // Reduce version to "00"
175
- version = DEFAULT_VERSION;
176
- }
177
-
178
- // Format as version 00
179
- return `${version.toLowerCase()}-${_formatValue(value.traceId, 32, INVALID_TRACE_ID).toLowerCase()}-${_formatValue(value.spanId, 16, INVALID_SPAN_ID).toLowerCase()}-${flags.toLowerCase()}`;
180
- }
181
-
182
- return "";
183
- }
184
-
185
- /**
186
- * Helper function to fetch the passed traceparent from the page, looking for it as a meta-tag or a Server-Timing header.
187
- * @returns
188
- */
189
- export function findW3cTraceParent(): ITraceParent {
190
- const name = "traceparent";
191
- let traceParent: ITraceParent = parseTraceParent(findMetaTag(name));
192
- if (!traceParent) {
193
- traceParent = parseTraceParent(findNamedServerTiming(name))
194
- }
195
-
196
- return traceParent;
197
- }
@@ -1,24 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
-
4
- import { EnumCls, createEnum, createTypeMap } from "@nevware21/ts-utils";
5
-
6
- export declare type EnumValue<E = any> = EnumCls<E>;
7
-
8
- /**
9
- * Create an enum style object which has both the key => value and value => key mappings
10
- * @param values - The values to populate on the new object
11
- * @returns
12
- */
13
- export const createEnumStyle: <E>(values: { [key in keyof E]: E[keyof E] }) => EnumValue<E> = createEnum;
14
-
15
- /**
16
- * Create a 2 index map that maps an enum's key and value to the defined map value, X["key"] => mapValue and X[0] => mapValue.
17
- * Generic values
18
- * - E = the const enum type (typeof eRequestHeaders);
19
- * - V = Identifies the valid values for the keys, this should include both the enum numeric and string key of the type. The
20
- * resulting "Value" of each entry identifies the valid values withing the assignments.
21
- * @param values - The values to populate on the new object
22
- * @returns
23
- */
24
- export const createValueMap: <E, V = E>(values: { [key in keyof E]: [ E[keyof E], V[keyof V] ] }) => V = createTypeMap;
@@ -1,71 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
-
4
- import { createEnumStyle } from "../JavaScriptSDK.Enums/EnumHelperFuncs";
5
-
6
- /**
7
- * The eEventsDiscardedReason enumeration contains a set of values that specify the reason for discarding an event.
8
- */
9
- export const enum eEventsDiscardedReason {
10
- /**
11
- * Unknown.
12
- */
13
- Unknown = 0,
14
- /**
15
- * Status set to non-retryable.
16
- */
17
- NonRetryableStatus = 1,
18
- /**
19
- * The event is invalid.
20
- */
21
- InvalidEvent = 2,
22
- /**
23
- * The size of the event is too large.
24
- */
25
- SizeLimitExceeded = 3,
26
- /**
27
- * The server is not accepting events from this instrumentation key.
28
- */
29
- KillSwitch = 4,
30
- /**
31
- * The event queue is full.
32
- */
33
- QueueFull = 5
34
- }
35
-
36
- /**
37
- * The EventsDiscardedReason enumeration contains a set of values that specify the reason for discarding an event.
38
- */
39
- export const EventsDiscardedReason = createEnumStyle<typeof eEventsDiscardedReason>({
40
- /**
41
- * Unknown.
42
- */
43
- Unknown: eEventsDiscardedReason.Unknown,
44
-
45
- /**
46
- * Status set to non-retryable.
47
- */
48
- NonRetryableStatus: eEventsDiscardedReason.NonRetryableStatus,
49
-
50
- /**
51
- * The event is invalid.
52
- */
53
- InvalidEvent: eEventsDiscardedReason.InvalidEvent,
54
-
55
- /**
56
- * The size of the event is too large.
57
- */
58
- SizeLimitExceeded: eEventsDiscardedReason.SizeLimitExceeded,
59
-
60
- /**
61
- * The server is not accepting events from this instrumentation key.
62
- */
63
- KillSwitch: eEventsDiscardedReason.KillSwitch,
64
-
65
- /**
66
- * The event queue is full.
67
- */
68
- QueueFull: eEventsDiscardedReason.QueueFull
69
- });
70
-
71
- export type EventsDiscardedReason = number | eEventsDiscardedReason;
@@ -1,121 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
- // @skip-file-minify
4
-
5
- import { createEnumStyle } from "../JavaScriptSDK.Enums/EnumHelperFuncs";
6
-
7
- export const enum eLoggingSeverity {
8
- /**
9
- * No Logging will be enabled
10
- */
11
- DISABLED = 0,
12
-
13
- /**
14
- * Error will be sent as internal telemetry
15
- */
16
- CRITICAL = 1,
17
-
18
- /**
19
- * Error will NOT be sent as internal telemetry, and will only be shown in browser console
20
- */
21
- WARNING = 2
22
- }
23
-
24
- export const LoggingSeverity = createEnumStyle<typeof eLoggingSeverity>({
25
- DISABLED: eLoggingSeverity.DISABLED,
26
- CRITICAL: eLoggingSeverity.CRITICAL,
27
- WARNING: eLoggingSeverity.WARNING
28
- });
29
- export type LoggingSeverity = number | eLoggingSeverity;
30
-
31
- export const enum _eInternalMessageId {
32
- BrowserDoesNotSupportLocalStorage = 0,
33
- BrowserCannotReadLocalStorage = 1,
34
- BrowserCannotReadSessionStorage = 2,
35
- BrowserCannotWriteLocalStorage = 3,
36
- BrowserCannotWriteSessionStorage = 4,
37
- BrowserFailedRemovalFromLocalStorage = 5,
38
- BrowserFailedRemovalFromSessionStorage = 6,
39
- CannotSendEmptyTelemetry = 7,
40
- ClientPerformanceMathError = 8,
41
- ErrorParsingAISessionCookie = 9,
42
- ErrorPVCalc = 10,
43
- ExceptionWhileLoggingError = 11,
44
- FailedAddingTelemetryToBuffer = 12,
45
- FailedMonitorAjaxAbort = 13,
46
- FailedMonitorAjaxDur = 14,
47
- FailedMonitorAjaxOpen = 15,
48
- FailedMonitorAjaxRSC = 16,
49
- FailedMonitorAjaxSend = 17,
50
- FailedMonitorAjaxGetCorrelationHeader = 18,
51
- FailedToAddHandlerForOnBeforeUnload = 19,
52
- FailedToSendQueuedTelemetry = 20,
53
- FailedToReportDataLoss = 21,
54
- FlushFailed = 22,
55
- MessageLimitPerPVExceeded = 23,
56
- MissingRequiredFieldSpecification = 24,
57
- NavigationTimingNotSupported = 25,
58
- OnError = 26,
59
- SessionRenewalDateIsZero = 27,
60
- SenderNotInitialized = 28,
61
- StartTrackEventFailed = 29,
62
- StopTrackEventFailed = 30,
63
- StartTrackFailed = 31,
64
- StopTrackFailed = 32,
65
- TelemetrySampledAndNotSent = 33,
66
- TrackEventFailed = 34,
67
- TrackExceptionFailed = 35,
68
- TrackMetricFailed = 36,
69
- TrackPVFailed = 37,
70
- TrackPVFailedCalc = 38,
71
- TrackTraceFailed = 39,
72
- TransmissionFailed = 40,
73
- FailedToSetStorageBuffer = 41,
74
- FailedToRestoreStorageBuffer = 42,
75
- InvalidBackendResponse = 43,
76
- FailedToFixDepricatedValues = 44,
77
- InvalidDurationValue = 45,
78
- TelemetryEnvelopeInvalid = 46,
79
- CreateEnvelopeError = 47,
80
-
81
- // User actionable
82
- CannotSerializeObject = 48,
83
- CannotSerializeObjectNonSerializable = 49,
84
- CircularReferenceDetected = 50,
85
- ClearAuthContextFailed = 51,
86
- ExceptionTruncated = 52,
87
- IllegalCharsInName = 53,
88
- ItemNotInArray = 54,
89
- MaxAjaxPerPVExceeded = 55,
90
- MessageTruncated = 56,
91
- NameTooLong = 57,
92
- SampleRateOutOfRange = 58,
93
- SetAuthContextFailed = 59,
94
- SetAuthContextFailedAccountName = 60,
95
- StringValueTooLong = 61,
96
- StartCalledMoreThanOnce = 62,
97
- StopCalledWithoutStart = 63,
98
- TelemetryInitializerFailed = 64,
99
- TrackArgumentsNotSpecified = 65,
100
- UrlTooLong = 66,
101
- SessionStorageBufferFull = 67,
102
- CannotAccessCookie = 68,
103
- IdTooLong = 69,
104
- InvalidEvent = 70,
105
- FailedMonitorAjaxSetRequestHeader = 71,
106
- SendBrowserInfoOnUserInit = 72,
107
- PluginException = 73,
108
- NotificationException = 74,
109
- SnippetScriptLoadFailure = 99,
110
- InvalidInstrumentationKey = 100,
111
- CannotParseAiBlobValue = 101,
112
- InvalidContentBlob = 102,
113
- TrackPageActionEventFailed = 103,
114
- FailedAddingCustomDefinedRequestContext = 104,
115
- InMemoryStorageBufferFull = 105,
116
- InstrumentationKeyDeprecation = 106,
117
- ConfigWatcherException = 107,
118
- DynamicConfigException = 108
119
- }
120
-
121
- export type _InternalMessageId = number | _eInternalMessageId;
@@ -1,56 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
- /**
4
- * The EventsDiscardedReason enumeration contains a set of values that specify the reason for discarding an event.
5
- */
6
- export const enum SendRequestReason {
7
- /**
8
- * No specific reason was specified
9
- */
10
- Undefined = 0,
11
-
12
- /**
13
- * Events are being sent based on the normal event schedule / timer.
14
- */
15
- NormalSchedule = 1,
16
-
17
- /**
18
- * A manual flush request was received
19
- */
20
- ManualFlush = 1,
21
-
22
- /**
23
- * Unload event is being processed
24
- */
25
- Unload = 2,
26
-
27
- /**
28
- * The event(s) being sent are sync events
29
- */
30
- SyncEvent = 3,
31
-
32
- /**
33
- * The Channel was resumed
34
- */
35
- Resumed = 4,
36
-
37
- /**
38
- * The event(s) being sent as a retry
39
- */
40
- Retry = 5,
41
-
42
- /**
43
- * The SDK is unloading
44
- */
45
- SdkUnload = 6,
46
-
47
- /**
48
- * Maximum batch size would be exceeded
49
- */
50
- MaxBatchSize = 10,
51
-
52
- /**
53
- * The Maximum number of events have already been queued
54
- */
55
- MaxQueuedEvents = 20
56
- }
@@ -1,27 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
-
4
- /**
5
- * The TelemetryUnloadReason enumeration contains the possible reasons for why a plugin is being unloaded / torndown().
6
- */
7
- export const enum TelemetryUnloadReason {
8
- /**
9
- * Teardown has been called without any context.
10
- */
11
- ManualTeardown = 0,
12
-
13
- /**
14
- * Just this plugin is being removed
15
- */
16
- PluginUnload = 1,
17
-
18
- /**
19
- * This instance of the plugin is being removed and replaced
20
- */
21
- PluginReplace = 2,
22
-
23
- /**
24
- * The entire SDK is being unloaded
25
- */
26
- SdkUnload = 50
27
- }
@@ -1,27 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
-
4
- /**
5
- * The TelemetryUpdateReason enumeration contains a set of bit-wise values that specify the reason for update request.
6
- */
7
- export const enum TelemetryUpdateReason {
8
- /**
9
- * Unknown.
10
- */
11
- Unknown = 0,
12
-
13
- /**
14
- * The configuration has ben updated or changed
15
- */
16
- ConfigurationChanged = 0x01,
17
-
18
- /**
19
- * One or more plugins have been added
20
- */
21
- PluginAdded = 0x10,
22
-
23
- /**
24
- * One or more plugins have been removed
25
- */
26
- PluginRemoved = 0x20,
27
- }