@microsoft/applicationinsights-common 3.3.12-nightly3.2602-20 → 3.4.0-beta

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 (175) hide show
  1. package/README.md +21 -2
  2. package/browser/es5/applicationinsights-common.cjs.js +1089 -289
  3. package/browser/es5/applicationinsights-common.cjs.js.map +1 -1
  4. package/browser/es5/applicationinsights-common.cjs.min.js +2 -2
  5. package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -1
  6. package/browser/es5/applicationinsights-common.gbl.js +1091 -291
  7. package/browser/es5/applicationinsights-common.gbl.js.map +1 -1
  8. package/browser/es5/applicationinsights-common.gbl.min.js +2 -2
  9. package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -1
  10. package/browser/es5/applicationinsights-common.integrity.json +25 -25
  11. package/browser/es5/applicationinsights-common.js +1091 -291
  12. package/browser/es5/applicationinsights-common.js.map +1 -1
  13. package/browser/es5/applicationinsights-common.min.js +2 -2
  14. package/browser/es5/applicationinsights-common.min.js.map +1 -1
  15. package/dist/es5/applicationinsights-common.js +1089 -289
  16. package/dist/es5/applicationinsights-common.js.map +1 -1
  17. package/dist/es5/applicationinsights-common.min.js +2 -2
  18. package/dist/es5/applicationinsights-common.min.js.map +1 -1
  19. package/dist-es5/applicationinsights-common.js +42 -32
  20. package/dist-es5/applicationinsights-common.js.map +1 -1
  21. package/package.json +65 -66
  22. package/types/applicationinsights-common.d.ts +408 -2574
  23. package/types/applicationinsights-common.namespaced.d.ts +2385 -89
  24. package/dist-es5/ConnectionStringParser.js +0 -44
  25. package/dist-es5/ConnectionStringParser.js.map +0 -1
  26. package/dist-es5/Constants.js +0 -22
  27. package/dist-es5/Constants.js.map +0 -1
  28. package/dist-es5/DomHelperFuncs.js +0 -22
  29. package/dist-es5/DomHelperFuncs.js.map +0 -1
  30. package/dist-es5/Enums.js +0 -30
  31. package/dist-es5/Enums.js.map +0 -1
  32. package/dist-es5/HelperFuncs.js +0 -50
  33. package/dist-es5/HelperFuncs.js.map +0 -1
  34. package/dist-es5/Interfaces/ConnectionString.js +0 -6
  35. package/dist-es5/Interfaces/ConnectionString.js.map +0 -1
  36. package/dist-es5/Interfaces/Context/IApplication.js +0 -8
  37. package/dist-es5/Interfaces/Context/IApplication.js.map +0 -1
  38. package/dist-es5/Interfaces/Context/IDevice.js +0 -8
  39. package/dist-es5/Interfaces/Context/IDevice.js.map +0 -1
  40. package/dist-es5/Interfaces/Context/IInternal.js +0 -8
  41. package/dist-es5/Interfaces/Context/IInternal.js.map +0 -1
  42. package/dist-es5/Interfaces/Context/ILocation.js +0 -8
  43. package/dist-es5/Interfaces/Context/ILocation.js.map +0 -1
  44. package/dist-es5/Interfaces/Context/IOperatingSystem.js +0 -8
  45. package/dist-es5/Interfaces/Context/IOperatingSystem.js.map +0 -1
  46. package/dist-es5/Interfaces/Context/ISample.js +0 -8
  47. package/dist-es5/Interfaces/Context/ISample.js.map +0 -1
  48. package/dist-es5/Interfaces/Context/ISession.js +0 -8
  49. package/dist-es5/Interfaces/Context/ISession.js.map +0 -1
  50. package/dist-es5/Interfaces/Context/ISessionManager.js +0 -8
  51. package/dist-es5/Interfaces/Context/ISessionManager.js.map +0 -1
  52. package/dist-es5/Interfaces/Context/ITelemetryTrace.js +0 -8
  53. package/dist-es5/Interfaces/Context/ITelemetryTrace.js.map +0 -1
  54. package/dist-es5/Interfaces/Context/IUser.js +0 -8
  55. package/dist-es5/Interfaces/Context/IUser.js.map +0 -1
  56. package/dist-es5/Interfaces/Context/IWeb.js +0 -8
  57. package/dist-es5/Interfaces/Context/IWeb.js.map +0 -1
  58. package/dist-es5/Interfaces/Contracts/AvailabilityData.js +0 -52
  59. package/dist-es5/Interfaces/Contracts/AvailabilityData.js.map +0 -1
  60. package/dist-es5/Interfaces/Contracts/ContextTagKeys.js +0 -89
  61. package/dist-es5/Interfaces/Contracts/ContextTagKeys.js.map +0 -1
  62. package/dist-es5/Interfaces/Contracts/DataPointType.js +0 -8
  63. package/dist-es5/Interfaces/Contracts/DataPointType.js.map +0 -1
  64. package/dist-es5/Interfaces/Contracts/DependencyKind.js +0 -8
  65. package/dist-es5/Interfaces/Contracts/DependencyKind.js.map +0 -1
  66. package/dist-es5/Interfaces/Contracts/DependencySourceType.js +0 -8
  67. package/dist-es5/Interfaces/Contracts/DependencySourceType.js.map +0 -1
  68. package/dist-es5/Interfaces/Contracts/IBase.js +0 -8
  69. package/dist-es5/Interfaces/Contracts/IBase.js.map +0 -1
  70. package/dist-es5/Interfaces/Contracts/IData.js +0 -8
  71. package/dist-es5/Interfaces/Contracts/IData.js.map +0 -1
  72. package/dist-es5/Interfaces/Contracts/IDataPoint.js +0 -6
  73. package/dist-es5/Interfaces/Contracts/IDataPoint.js.map +0 -1
  74. package/dist-es5/Interfaces/Contracts/IDomain.js +0 -8
  75. package/dist-es5/Interfaces/Contracts/IDomain.js.map +0 -1
  76. package/dist-es5/Interfaces/Contracts/IEnvelope.js +0 -46
  77. package/dist-es5/Interfaces/Contracts/IEnvelope.js.map +0 -1
  78. package/dist-es5/Interfaces/Contracts/IEventData.js +0 -8
  79. package/dist-es5/Interfaces/Contracts/IEventData.js.map +0 -1
  80. package/dist-es5/Interfaces/Contracts/IExceptionData.js +0 -8
  81. package/dist-es5/Interfaces/Contracts/IExceptionData.js.map +0 -1
  82. package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +0 -8
  83. package/dist-es5/Interfaces/Contracts/IExceptionDetails.js.map +0 -1
  84. package/dist-es5/Interfaces/Contracts/IMessageData.js +0 -8
  85. package/dist-es5/Interfaces/Contracts/IMessageData.js.map +0 -1
  86. package/dist-es5/Interfaces/Contracts/IMetricData.js +0 -8
  87. package/dist-es5/Interfaces/Contracts/IMetricData.js.map +0 -1
  88. package/dist-es5/Interfaces/Contracts/IPageViewData.js +0 -8
  89. package/dist-es5/Interfaces/Contracts/IPageViewData.js.map +0 -1
  90. package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +0 -8
  91. package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js.map +0 -1
  92. package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +0 -8
  93. package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js.map +0 -1
  94. package/dist-es5/Interfaces/Contracts/IStackFrame.js +0 -8
  95. package/dist-es5/Interfaces/Contracts/IStackFrame.js.map +0 -1
  96. package/dist-es5/Interfaces/Contracts/RequestData.js +0 -46
  97. package/dist-es5/Interfaces/Contracts/RequestData.js.map +0 -1
  98. package/dist-es5/Interfaces/Contracts/SeverityLevel.js +0 -18
  99. package/dist-es5/Interfaces/Contracts/SeverityLevel.js.map +0 -1
  100. package/dist-es5/Interfaces/IAppInsights.js +0 -8
  101. package/dist-es5/Interfaces/IAppInsights.js.map +0 -1
  102. package/dist-es5/Interfaces/IConfig.js +0 -26
  103. package/dist-es5/Interfaces/IConfig.js.map +0 -1
  104. package/dist-es5/Interfaces/ICorrelationConfig.js +0 -8
  105. package/dist-es5/Interfaces/ICorrelationConfig.js.map +0 -1
  106. package/dist-es5/Interfaces/IDependencyTelemetry.js +0 -8
  107. package/dist-es5/Interfaces/IDependencyTelemetry.js.map +0 -1
  108. package/dist-es5/Interfaces/IEventTelemetry.js +0 -6
  109. package/dist-es5/Interfaces/IEventTelemetry.js.map +0 -1
  110. package/dist-es5/Interfaces/IExceptionTelemetry.js +0 -8
  111. package/dist-es5/Interfaces/IExceptionTelemetry.js.map +0 -1
  112. package/dist-es5/Interfaces/IMetricTelemetry.js +0 -6
  113. package/dist-es5/Interfaces/IMetricTelemetry.js.map +0 -1
  114. package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +0 -6
  115. package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js.map +0 -1
  116. package/dist-es5/Interfaces/IPageViewTelemetry.js +0 -6
  117. package/dist-es5/Interfaces/IPageViewTelemetry.js.map +0 -1
  118. package/dist-es5/Interfaces/IPartC.js +0 -8
  119. package/dist-es5/Interfaces/IPartC.js.map +0 -1
  120. package/dist-es5/Interfaces/IPropertiesPlugin.js +0 -8
  121. package/dist-es5/Interfaces/IPropertiesPlugin.js.map +0 -1
  122. package/dist-es5/Interfaces/IRequestContext.js +0 -6
  123. package/dist-es5/Interfaces/IRequestContext.js.map +0 -1
  124. package/dist-es5/Interfaces/IStorageBuffer.js +0 -6
  125. package/dist-es5/Interfaces/IStorageBuffer.js.map +0 -1
  126. package/dist-es5/Interfaces/ITelemetryContext.js +0 -8
  127. package/dist-es5/Interfaces/ITelemetryContext.js.map +0 -1
  128. package/dist-es5/Interfaces/IThrottleMgr.js +0 -6
  129. package/dist-es5/Interfaces/IThrottleMgr.js.map +0 -1
  130. package/dist-es5/Interfaces/ITraceTelemetry.js +0 -8
  131. package/dist-es5/Interfaces/ITraceTelemetry.js.map +0 -1
  132. package/dist-es5/Interfaces/PartAExtensions.js +0 -17
  133. package/dist-es5/Interfaces/PartAExtensions.js.map +0 -1
  134. package/dist-es5/Interfaces/Telemetry/IEnvelope.js +0 -8
  135. package/dist-es5/Interfaces/Telemetry/IEnvelope.js.map +0 -1
  136. package/dist-es5/Interfaces/Telemetry/ISerializable.js +0 -8
  137. package/dist-es5/Interfaces/Telemetry/ISerializable.js.map +0 -1
  138. package/dist-es5/Offline.js +0 -137
  139. package/dist-es5/Offline.js.map +0 -1
  140. package/dist-es5/RequestResponseHeaders.js +0 -19
  141. package/dist-es5/RequestResponseHeaders.js.map +0 -1
  142. package/dist-es5/StorageHelperFuncs.js +0 -184
  143. package/dist-es5/StorageHelperFuncs.js.map +0 -1
  144. package/dist-es5/Telemetry/Common/Data.js +0 -25
  145. package/dist-es5/Telemetry/Common/Data.js.map +0 -1
  146. package/dist-es5/Telemetry/Common/DataPoint.js +0 -29
  147. package/dist-es5/Telemetry/Common/DataPoint.js.map +0 -1
  148. package/dist-es5/Telemetry/Common/DataSanitizer.js +0 -129
  149. package/dist-es5/Telemetry/Common/DataSanitizer.js.map +0 -1
  150. package/dist-es5/Telemetry/Common/Envelope.js +0 -38
  151. package/dist-es5/Telemetry/Common/Envelope.js.map +0 -1
  152. package/dist-es5/Telemetry/Event.js +0 -32
  153. package/dist-es5/Telemetry/Event.js.map +0 -1
  154. package/dist-es5/Telemetry/Exception.js +0 -759
  155. package/dist-es5/Telemetry/Exception.js.map +0 -1
  156. package/dist-es5/Telemetry/Metric.js +0 -39
  157. package/dist-es5/Telemetry/Metric.js.map +0 -1
  158. package/dist-es5/Telemetry/PageView.js +0 -41
  159. package/dist-es5/Telemetry/PageView.js.map +0 -1
  160. package/dist-es5/Telemetry/PageViewPerformance.js +0 -48
  161. package/dist-es5/Telemetry/PageViewPerformance.js.map +0 -1
  162. package/dist-es5/Telemetry/RemoteDependencyData.js +0 -62
  163. package/dist-es5/Telemetry/RemoteDependencyData.js.map +0 -1
  164. package/dist-es5/Telemetry/Trace.js +0 -36
  165. package/dist-es5/Telemetry/Trace.js.map +0 -1
  166. package/dist-es5/TelemetryItemCreator.js +0 -65
  167. package/dist-es5/TelemetryItemCreator.js.map +0 -1
  168. package/dist-es5/ThrottleMgr.js +0 -388
  169. package/dist-es5/ThrottleMgr.js.map +0 -1
  170. package/dist-es5/UrlHelperFuncs.js +0 -90
  171. package/dist-es5/UrlHelperFuncs.js.map +0 -1
  172. package/dist-es5/Util.js +0 -198
  173. package/dist-es5/Util.js.map +0 -1
  174. package/dist-es5/__DynamicConstants.js +0 -44
  175. package/dist-es5/__DynamicConstants.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Common JavaScript Library, 3.3.12-nightly3.2602-20
2
+ * Microsoft Application Insights Common JavaScript Library, 3.4.0-beta
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -12,1980 +12,351 @@
12
12
  * ---------------------------------------------------------------------------
13
13
  */
14
14
 
15
+ import { AIBase } from '@microsoft/applicationinsights-core-js';
16
+ import { AIData } from '@microsoft/applicationinsights-core-js';
17
+ import { AnalyticsPluginIdentifier } from '@microsoft/applicationinsights-core-js';
18
+ import { BreezeChannelIdentifier } from '@microsoft/applicationinsights-core-js';
19
+ import { ConfigurationManager } from '@microsoft/applicationinsights-core-js';
20
+ import { ConnectionString } from '@microsoft/applicationinsights-core-js';
21
+ import { ConnectionStringParser } from '@microsoft/applicationinsights-core-js';
22
+ import { ContextTagKeys } from '@microsoft/applicationinsights-core-js';
23
+ import { correlationIdCanIncludeCorrelationHeader } from '@microsoft/applicationinsights-core-js';
24
+ import { correlationIdGetCorrelationContext } from '@microsoft/applicationinsights-core-js';
25
+ import { correlationIdGetCorrelationContextValue } from '@microsoft/applicationinsights-core-js';
26
+ import { correlationIdGetPrefix } from '@microsoft/applicationinsights-core-js';
27
+ import { correlationIdSetPrefix } from '@microsoft/applicationinsights-core-js';
28
+ import { createDistributedTraceContextFromTrace } from '@microsoft/applicationinsights-core-js';
29
+ import { createDomEvent } from '@microsoft/applicationinsights-core-js';
30
+ import { createOfflineListener } from '@microsoft/applicationinsights-core-js';
31
+ import { createTelemetryItem } from '@microsoft/applicationinsights-core-js';
15
32
  import { createTraceParent } from '@microsoft/applicationinsights-core-js';
16
- import { _eInternalMessageId } from '@microsoft/applicationinsights-core-js';
17
- import { eLoggingSeverity } from '@microsoft/applicationinsights-core-js';
18
- import { EnumValue } from '@microsoft/applicationinsights-core-js';
33
+ import { CtxTagKeys } from '@microsoft/applicationinsights-core-js';
34
+ import { Data } from '@microsoft/applicationinsights-core-js';
35
+ import { dataSanitizeException } from '@microsoft/applicationinsights-core-js';
36
+ import { dataSanitizeId } from '@microsoft/applicationinsights-core-js';
37
+ import { dataSanitizeInput } from '@microsoft/applicationinsights-core-js';
38
+ import { dataSanitizeKey } from '@microsoft/applicationinsights-core-js';
39
+ import { dataSanitizeKeyAndAddUniqueness } from '@microsoft/applicationinsights-core-js';
40
+ import { dataSanitizeMeasurements } from '@microsoft/applicationinsights-core-js';
41
+ import { dataSanitizeMessage } from '@microsoft/applicationinsights-core-js';
42
+ import { dataSanitizeProperties } from '@microsoft/applicationinsights-core-js';
43
+ import { DataSanitizerValues } from '@microsoft/applicationinsights-core-js';
44
+ import { dataSanitizeString } from '@microsoft/applicationinsights-core-js';
45
+ import { dataSanitizeUrl } from '@microsoft/applicationinsights-core-js';
46
+ import { dateTimeUtilsDuration } from '@microsoft/applicationinsights-core-js';
47
+ import { dateTimeUtilsNow } from '@microsoft/applicationinsights-core-js';
48
+ import { DEFAULT_BREEZE_ENDPOINT } from '@microsoft/applicationinsights-core-js';
49
+ import { DEFAULT_BREEZE_PATH } from '@microsoft/applicationinsights-core-js';
50
+ import { DisabledPropertyName } from '@microsoft/applicationinsights-core-js';
51
+ import { DistributedTracingModes } from '@microsoft/applicationinsights-core-js';
52
+ import { dsPadNumber } from '@microsoft/applicationinsights-core-js';
53
+ import { eDistributedTracingModes } from '@microsoft/applicationinsights-core-js';
54
+ import { Envelope } from '@microsoft/applicationinsights-core-js';
55
+ import { eOfflineValue } from '@microsoft/applicationinsights-core-js';
56
+ import { eRequestHeaders } from '@microsoft/applicationinsights-core-js';
57
+ import { eSeverityLevel } from '@microsoft/applicationinsights-core-js';
58
+ import { Event as Event_2 } from '@microsoft/applicationinsights-core-js';
59
+ import { EventDataType } from '@microsoft/applicationinsights-core-js';
60
+ import { EventEnvelopeType } from '@microsoft/applicationinsights-core-js';
61
+ import { EventPersistence } from '@microsoft/applicationinsights-core-js';
62
+ import { Exception } from '@microsoft/applicationinsights-core-js';
63
+ import { ExceptionDataType } from '@microsoft/applicationinsights-core-js';
64
+ import { ExceptionEnvelopeType } from '@microsoft/applicationinsights-core-js';
65
+ import { Extensions } from '@microsoft/applicationinsights-core-js';
66
+ import { FieldType } from '@microsoft/applicationinsights-core-js';
19
67
  import { findAllScripts } from '@microsoft/applicationinsights-core-js';
20
68
  import { findW3cTraceParent } from '@microsoft/applicationinsights-core-js';
21
69
  import { formatTraceParent } from '@microsoft/applicationinsights-core-js';
22
- import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
23
- import { IConfiguration } from '@microsoft/applicationinsights-core-js';
24
- import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
25
- import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
26
- import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
27
- import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
28
- import { IPlugin } from '@microsoft/applicationinsights-core-js';
70
+ import { getExtensionByName } from '@microsoft/applicationinsights-core-js';
71
+ import { HttpMethod } from '@microsoft/applicationinsights-core-js';
72
+ import { IAppInsights } from '@microsoft/applicationinsights-core-js';
73
+ import { IApplication } from '@microsoft/applicationinsights-core-js';
74
+ import { IAutoExceptionTelemetry } from '@microsoft/applicationinsights-core-js';
75
+ import { IConfig } from '@microsoft/applicationinsights-core-js';
76
+ import { IContextTagKeys } from '@microsoft/applicationinsights-core-js';
77
+ import { ICorrelationConfig } from '@microsoft/applicationinsights-core-js';
78
+ import { IDependencyTelemetry } from '@microsoft/applicationinsights-core-js';
79
+ import { IDevice } from '@microsoft/applicationinsights-core-js';
80
+ import { IEnvelope } from '@microsoft/applicationinsights-core-js';
81
+ import { IEventTelemetry } from '@microsoft/applicationinsights-core-js';
82
+ import { IExceptionInternal } from '@microsoft/applicationinsights-core-js';
83
+ import { IExceptionTelemetry } from '@microsoft/applicationinsights-core-js';
84
+ import { IInternal } from '@microsoft/applicationinsights-core-js';
85
+ import { ILocation } from '@microsoft/applicationinsights-core-js';
86
+ import { IMetricTelemetry } from '@microsoft/applicationinsights-core-js';
87
+ import { IOfflineListener } from '@microsoft/applicationinsights-core-js';
88
+ import { IOfflineState } from '@microsoft/applicationinsights-core-js';
89
+ import { IOperatingSystem } from '@microsoft/applicationinsights-core-js';
90
+ import { IPageViewData } from '@microsoft/applicationinsights-core-js';
91
+ import { IPageViewPerformanceTelemetry } from '@microsoft/applicationinsights-core-js';
92
+ import { IPageViewPerformanceTelemetryInternal } from '@microsoft/applicationinsights-core-js';
93
+ import { IPageViewTelemetry } from '@microsoft/applicationinsights-core-js';
94
+ import { IPageViewTelemetryInternal } from '@microsoft/applicationinsights-core-js';
95
+ import { IPropertiesPlugin } from '@microsoft/applicationinsights-core-js';
96
+ import { IRemoteDependencyData } from '@microsoft/applicationinsights-core-js';
97
+ import { IRequestContext } from '@microsoft/applicationinsights-core-js';
98
+ import { IRequestHeaders } from '@microsoft/applicationinsights-core-js';
99
+ import { IRequestTelemetry } from '@microsoft/applicationinsights-core-js';
100
+ import { ISample } from '@microsoft/applicationinsights-core-js';
29
101
  import { isBeaconsSupported as isBeaconApiSupported } from '@microsoft/applicationinsights-core-js';
102
+ import { isCrossOriginError } from '@microsoft/applicationinsights-core-js';
103
+ import { ISerializable } from '@microsoft/applicationinsights-core-js';
104
+ import { ISession } from '@microsoft/applicationinsights-core-js';
105
+ import { ISessionManager } from '@microsoft/applicationinsights-core-js';
106
+ import { isInternalApplicationInsightsEndpoint } from '@microsoft/applicationinsights-core-js';
30
107
  import { isSampledFlag } from '@microsoft/applicationinsights-core-js';
108
+ import { IStorageBuffer } from '@microsoft/applicationinsights-core-js';
31
109
  import { isValidSpanId } from '@microsoft/applicationinsights-core-js';
32
110
  import { isValidTraceId } from '@microsoft/applicationinsights-core-js';
33
111
  import { isValidTraceParent } from '@microsoft/applicationinsights-core-js';
34
- import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
112
+ import { ITelemetryContext } from '@microsoft/applicationinsights-core-js';
113
+ import { ITelemetryTrace } from '@microsoft/applicationinsights-core-js';
114
+ import { IThrottleInterval } from '@microsoft/applicationinsights-core-js';
115
+ import { IThrottleLimit } from '@microsoft/applicationinsights-core-js';
116
+ import { IThrottleLocalStorageObj } from '@microsoft/applicationinsights-core-js';
117
+ import { IThrottleMgrConfig } from '@microsoft/applicationinsights-core-js';
118
+ import { IThrottleResult } from '@microsoft/applicationinsights-core-js';
35
119
  import { ITraceParent } from '@microsoft/applicationinsights-core-js';
36
- import { IUnloadHook } from '@microsoft/applicationinsights-core-js';
120
+ import { ITraceTelemetry } from '@microsoft/applicationinsights-core-js';
121
+ import { IUser } from '@microsoft/applicationinsights-core-js';
122
+ import { IUserContext } from '@microsoft/applicationinsights-core-js';
123
+ import { IWeb } from '@microsoft/applicationinsights-core-js';
124
+ import { Metric } from '@microsoft/applicationinsights-core-js';
125
+ import { MetricDataType } from '@microsoft/applicationinsights-core-js';
126
+ import { MetricEnvelopeType } from '@microsoft/applicationinsights-core-js';
127
+ import { msToTimeSpan } from '@microsoft/applicationinsights-core-js';
128
+ import { OfflineCallback } from '@microsoft/applicationinsights-core-js';
129
+ import { PageView } from '@microsoft/applicationinsights-core-js';
130
+ import { PageViewDataType } from '@microsoft/applicationinsights-core-js';
131
+ import { PageViewEnvelopeType } from '@microsoft/applicationinsights-core-js';
132
+ import { PageViewPerformance } from '@microsoft/applicationinsights-core-js';
133
+ import { PageViewPerformanceDataType } from '@microsoft/applicationinsights-core-js';
134
+ import { PageViewPerformanceEnvelopeType } from '@microsoft/applicationinsights-core-js';
135
+ import { parseConnectionString } from '@microsoft/applicationinsights-core-js';
37
136
  import { parseTraceParent } from '@microsoft/applicationinsights-core-js';
137
+ import { ProcessLegacy } from '@microsoft/applicationinsights-core-js';
138
+ import { PropertiesPluginIdentifier } from '@microsoft/applicationinsights-core-js';
139
+ import { RemoteDependencyData } from '@microsoft/applicationinsights-core-js';
140
+ import { RemoteDependencyDataType } from '@microsoft/applicationinsights-core-js';
141
+ import { RemoteDependencyEnvelopeType } from '@microsoft/applicationinsights-core-js';
142
+ import { RequestDataType } from '@microsoft/applicationinsights-core-js';
143
+ import { RequestEnvelopeType } from '@microsoft/applicationinsights-core-js';
144
+ import { RequestHeaders } from '@microsoft/applicationinsights-core-js';
145
+ import { SampleRate } from '@microsoft/applicationinsights-core-js';
146
+ import { SeverityLevel } from '@microsoft/applicationinsights-core-js';
147
+ import { stringToBoolOrDefault } from '@microsoft/applicationinsights-core-js';
148
+ import { strNotSpecified } from '@microsoft/applicationinsights-core-js';
149
+ import { TelemetryItemCreator } from '@microsoft/applicationinsights-core-js';
150
+ import { ThrottleMgr } from '@microsoft/applicationinsights-core-js';
151
+ import { Trace } from '@microsoft/applicationinsights-core-js';
152
+ import { TraceDataType } from '@microsoft/applicationinsights-core-js';
153
+ import { TraceEnvelopeType } from '@microsoft/applicationinsights-core-js';
154
+ import { urlGetAbsoluteUrl } from '@microsoft/applicationinsights-core-js';
155
+ import { urlGetCompleteUrl } from '@microsoft/applicationinsights-core-js';
156
+ import { urlGetPathName } from '@microsoft/applicationinsights-core-js';
157
+ import { urlParseFullHost } from '@microsoft/applicationinsights-core-js';
158
+ import { urlParseHost } from '@microsoft/applicationinsights-core-js';
159
+ import { urlParseUrl } from '@microsoft/applicationinsights-core-js';
160
+ import { utlCanUseLocalStorage } from '@microsoft/applicationinsights-core-js';
161
+ import { utlCanUseSessionStorage } from '@microsoft/applicationinsights-core-js';
162
+ import { utlDisableStorage } from '@microsoft/applicationinsights-core-js';
163
+ import { utlEnableStorage } from '@microsoft/applicationinsights-core-js';
164
+ import { utlGetLocalStorage } from '@microsoft/applicationinsights-core-js';
165
+ import { utlGetSessionStorage } from '@microsoft/applicationinsights-core-js';
166
+ import { utlGetSessionStorageKeys } from '@microsoft/applicationinsights-core-js';
167
+ import { utlRemoveSessionStorage } from '@microsoft/applicationinsights-core-js';
168
+ import { utlRemoveStorage } from '@microsoft/applicationinsights-core-js';
169
+ import { utlSetLocalStorage } from '@microsoft/applicationinsights-core-js';
170
+ import { utlSetSessionStorage } from '@microsoft/applicationinsights-core-js';
171
+ import { utlSetStoragePrefix } from '@microsoft/applicationinsights-core-js';
38
172
 
39
- /**
40
- * Data struct to contain only C section with custom fields.
41
- */
42
- export declare interface AIBase {
43
- /**
44
- * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
45
- */
46
- baseType: string;
47
- }
48
-
49
- /**
50
- * Data struct to contain both B and C sections.
51
- */
52
- export declare interface AIData<TDomain> extends AIBase {
53
- /**
54
- * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
55
- */
56
- baseType: string;
57
- /**
58
- * Container for data item (B section).
59
- */
60
- baseData: TDomain;
61
- }
62
-
63
- export declare const AnalyticsPluginIdentifier = "ApplicationInsightsAnalytics";
64
-
65
- export declare const BreezeChannelIdentifier = "AppInsightsChannelPlugin";
66
-
67
- export declare class ConfigurationManager {
68
- static getConfig(config: IConfiguration & IConfig, field: string, identifier?: string, defaultValue?: number | string | boolean): number | string | boolean;
69
- }
70
-
71
- export declare type ConnectionString = {
72
- [key in ConnectionStringKey]?: string;
73
- };
74
-
75
- declare type ConnectionStringKey = "authorization" | "instrumentationkey" | "ingestionendpoint" | "location" | "endpointsuffix";
76
-
77
- export declare const ConnectionStringParser: {
78
- parse: typeof parseConnectionString;
79
- };
80
-
81
- export declare class ContextTagKeys extends ContextTagKeys_base {
82
- constructor();
83
- }
84
-
85
- declare const ContextTagKeys_base: new () => IContextTagKeys;
86
-
87
- /**
88
- * Checks if a request url is not on a excluded domain list and if it is safe to add correlation headers.
89
- * Headers are always included if the current domain matches the request domain. If they do not match (CORS),
90
- * they are regex-ed across correlationHeaderDomains and correlationHeaderExcludedDomains to determine if headers are included.
91
- * Some environments don't give information on currentHost via window.location.host (e.g. Cordova). In these cases, the user must
92
- * manually supply domains to include correlation headers on. Else, no headers will be included at all.
93
- */
94
- export declare function correlationIdCanIncludeCorrelationHeader(config: ICorrelationConfig, requestUrl: string, currentHost?: string): boolean;
173
+ export { AIBase }
95
174
 
96
- /**
97
- * Combines target appId and target role name from response header.
98
- */
99
- export declare function correlationIdGetCorrelationContext(responseHeader: string): string;
175
+ export { AIData }
100
176
 
101
- /**
102
- * Gets key from correlation response header
103
- */
104
- export declare function correlationIdGetCorrelationContextValue(responseHeader: string, key: string): string;
177
+ export { AnalyticsPluginIdentifier }
105
178
 
106
- export declare function correlationIdGetPrefix(): string;
179
+ export { BreezeChannelIdentifier }
107
180
 
108
- export declare function correlationIdSetPrefix(prefix: string): void;
181
+ export { ConfigurationManager }
109
182
 
110
- /**
111
- * Creates a IDistributedTraceContext from an optional telemetryTrace
112
- * @param telemetryTrace - The telemetryTrace instance that is being wrapped
113
- * @param parentCtx - An optional parent distributed trace instance, almost always undefined as this scenario is only used in the case of multiple property handlers.
114
- * @returns A new IDistributedTraceContext instance that is backed by the telemetryTrace or temporary object
115
- */
116
- export declare function createDistributedTraceContextFromTrace(telemetryTrace?: ITelemetryTrace, parentCtx?: IDistributedTraceContext): IDistributedTraceContext;
183
+ export { ConnectionString }
117
184
 
118
- export declare function createDomEvent(eventName: string): Event;
185
+ export { ConnectionStringParser }
119
186
 
120
- /**
121
- * Create a new OfflineListener instance to monitor browser online / offline events
122
- * @param parentEvtNamespace - The parent event namespace to append to any specific events for this instance
123
- */
124
- export declare function createOfflineListener(parentEvtNamespace?: string | string[]): IOfflineListener;
125
-
126
- /**
127
- * Create a telemetry item that the 1DS channel understands
128
- * @param item - domain specific properties; part B
129
- * @param baseType - telemetry item type. ie PageViewData
130
- * @param envelopeName - Name of the envelope, e.g., `Microsoft.ApplicationInsights.\<instrumentation key\>.PageView`.
131
- * @param customProperties - user defined custom properties; part C
132
- * @param systemProperties - system properties that are added to the context; part A
133
- * @returns ITelemetryItem that is sent to channel
134
- */
135
- export declare function createTelemetryItem<T>(item: T, baseType: string, envelopeName: string, logger: IDiagnosticLogger, customProperties?: {
136
- [key: string]: any;
137
- }, systemProperties?: {
138
- [key: string]: any;
139
- }): ITelemetryItem;
187
+ export { ContextTagKeys }
188
+
189
+ export { correlationIdCanIncludeCorrelationHeader }
190
+
191
+ export { correlationIdGetCorrelationContext }
192
+
193
+ export { correlationIdGetCorrelationContextValue }
194
+
195
+ export { correlationIdGetPrefix }
196
+
197
+ export { correlationIdSetPrefix }
198
+
199
+ export { createDistributedTraceContextFromTrace }
200
+
201
+ export { createDomEvent }
202
+
203
+ export { createOfflineListener }
204
+
205
+ export { createTelemetryItem }
140
206
 
141
207
  export { createTraceParent }
142
208
 
143
- export declare let CtxTagKeys: ContextTagKeys;
144
-
145
- export declare class Data<TDomain> implements AIData<TDomain>, ISerializable {
146
- /**
147
- * The data contract for serializing this object.
148
- */
149
- aiDataContract: {
150
- baseType: FieldType;
151
- baseData: FieldType;
152
- };
153
- /**
154
- * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
155
- */
156
- baseType: string;
157
- /**
158
- * Container for data item (B section).
159
- */
160
- baseData: TDomain;
161
- /**
162
- * Constructs a new instance of telemetry data.
163
- */
164
- constructor(baseType: string, data: TDomain);
165
- }
166
-
167
- declare class DataPoint implements IDataPoint, ISerializable {
168
- /**
169
- * The data contract for serializing this object.
170
- */
171
- aiDataContract: {
172
- name: FieldType;
173
- kind: FieldType;
174
- value: FieldType;
175
- count: FieldType;
176
- min: FieldType;
177
- max: FieldType;
178
- stdDev: FieldType;
179
- };
180
- /**
181
- * Name of the metric.
182
- */
183
- name: string;
184
- /**
185
- * Metric type. Single measurement or the aggregated value.
186
- */
187
- kind: DataPointType;
188
- /**
189
- * Single value for measurement. Sum of individual measurements for the aggregation.
190
- */
191
- value: number;
192
- /**
193
- * Metric weight of the aggregated metric. Should not be set for a measurement.
194
- */
195
- count: number;
196
- /**
197
- * Minimum value of the aggregated metric. Should not be set for a measurement.
198
- */
199
- min: number;
200
- /**
201
- * Maximum value of the aggregated metric. Should not be set for a measurement.
202
- */
203
- max: number;
204
- /**
205
- * Standard deviation of the aggregated metric. Should not be set for a measurement.
206
- */
207
- stdDev: number;
208
- }
209
-
210
- /**
211
- * Type of the metric data measurement.
212
- */
213
- declare const enum DataPointType {
214
- Measurement = 0,
215
- Aggregation = 1
216
- }
217
-
218
- export declare function dataSanitizeException(logger: IDiagnosticLogger, exception: any): any;
219
-
220
- export declare function dataSanitizeId(logger: IDiagnosticLogger, id: string): string;
221
-
222
- export declare function dataSanitizeInput(logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _eInternalMessageId): any;
223
-
224
- export declare function dataSanitizeKey(logger: IDiagnosticLogger, name: any): any;
225
-
226
- export declare function dataSanitizeKeyAndAddUniqueness(logger: IDiagnosticLogger, key: any, map: any): any;
227
-
228
- export declare function dataSanitizeMeasurements(logger: IDiagnosticLogger, measurements: any): any;
229
-
230
- export declare function dataSanitizeMessage(logger: IDiagnosticLogger, message: any): any;
231
-
232
- export declare function dataSanitizeProperties(logger: IDiagnosticLogger, properties: any): any;
233
-
234
- export declare const enum DataSanitizerValues {
235
- /**
236
- * Max length allowed for custom names.
237
- */
238
- MAX_NAME_LENGTH = 150,
239
- /**
240
- * Max length allowed for Id field in page views.
241
- */
242
- MAX_ID_LENGTH = 128,
243
- /**
244
- * Max length allowed for custom values.
245
- */
246
- MAX_PROPERTY_LENGTH = 8192,
247
- /**
248
- * Max length allowed for names
249
- */
250
- MAX_STRING_LENGTH = 1024,
251
- /**
252
- * Max length allowed for url.
253
- */
254
- MAX_URL_LENGTH = 2048,
255
- /**
256
- * Max length allowed for messages.
257
- */
258
- MAX_MESSAGE_LENGTH = 32768,
259
- /**
260
- * Max length allowed for exceptions.
261
- */
262
- MAX_EXCEPTION_LENGTH = 32768
263
- }
264
-
265
- export declare function dataSanitizeString(logger: IDiagnosticLogger, value: any, maxLength?: number): any;
266
-
267
- export declare function dataSanitizeUrl(logger: IDiagnosticLogger, url: any, config?: IConfiguration): any;
268
-
269
- export declare function dateTimeUtilsDuration(start: number, end: number): number;
270
-
271
- export declare function dateTimeUtilsNow(): number;
272
-
273
- export declare const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com";
274
-
275
- export declare const DEFAULT_BREEZE_PATH = "/v2/track";
276
-
277
- /**
278
- * This is an internal property used to cause internal (reporting) requests to be ignored from reporting
279
- * additional telemetry, to handle polyfil implementations ALL urls used with a disabled request will
280
- * also be ignored for future requests even when this property is not provided.
281
- * Tagging as Ignore as this is an internal value and is not expected to be used outside of the SDK
282
- * @ignore
283
- */
284
- export declare const DisabledPropertyName: string;
285
-
286
- export declare const DistributedTracingModes: EnumValue<typeof eDistributedTracingModes>;
287
-
288
- export declare type DistributedTracingModes = number | eDistributedTracingModes;
289
-
290
- export declare function dsPadNumber(num: number): string;
291
-
292
- export declare const enum eDistributedTracingModes {
293
- /**
294
- * (Default) Send Application Insights correlation headers
295
- */
296
- AI = 0,
297
- /**
298
- * Send both W3C Trace Context headers and back-compatibility Application Insights headers
299
- */
300
- AI_AND_W3C = 1,
301
- /**
302
- * Send W3C Trace Context headers
303
- */
304
- W3C = 2
305
- }
306
-
307
- export declare class Envelope implements IEnvelope {
308
- /**
309
- * The data contract for serializing this object.
310
- */
311
- aiDataContract: any;
312
- /**
313
- * Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.
314
- */
315
- ver: number;
316
- /**
317
- * Type name of telemetry data item.
318
- */
319
- name: string;
320
- /**
321
- * Event date time when telemetry item was created. This is the wall clock time on the client when the event was generated. There is no guarantee that the client's time is accurate. This field must be formatted in UTC ISO 8601 format, with a trailing 'Z' character, as described publicly on https://en.wikipedia.org/wiki/ISO_8601#UTC. Note: the number of decimal seconds digits provided are variable (and unspecified). Consumers should handle this, i.e. managed code consumers should not use format 'O' for parsing as it specifies a fixed length. Example: 2009-06-15T13:45:30.0000000Z.
322
- */
323
- time: string;
324
- /**
325
- * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
326
- */
327
- sampleRate: number;
328
- /**
329
- * Sequence field used to track absolute order of uploaded events.
330
- */
331
- seq: string;
332
- /**
333
- * The application's instrumentation key. The key is typically represented as a GUID, but there are cases when it is not a guid. No code should rely on iKey being a GUID. Instrumentation key is case insensitive.
334
- */
335
- iKey: string;
336
- /**
337
- * Key/value collection of context properties. See ContextTagKeys for information on available properties.
338
- */
339
- tags: any;
340
- /**
341
- * Telemetry data item.
342
- */
343
- data: AIBase;
344
- /**
345
- * Constructs a new instance of telemetry data.
346
- */
347
- constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
348
- }
349
-
350
- /**
351
- * This is the enum for the different network states current ai is experiencing
352
- */
353
- export declare const enum eOfflineValue {
354
- Unknown = 0,
355
- Online = 1,
356
- Offline = 2
357
- }
358
-
359
- export declare const enum eRequestHeaders {
360
- requestContextHeader = 0,
361
- requestContextTargetKey = 1,
362
- requestContextAppIdFormat = 2,
363
- requestIdHeader = 3,
364
- traceParentHeader = 4,
365
- traceStateHeader = 5,
366
- sdkContextHeader = 6,
367
- sdkContextHeaderAppIdRequest = 7,
368
- requestContextHeaderLowerCase = 8
369
- }
370
-
371
- /**
372
- * Defines the level of severity for the event.
373
- */
374
- export declare const enum eSeverityLevel {
375
- Verbose = 0,
376
- Information = 1,
377
- Warning = 2,
378
- Error = 3,
379
- Critical = 4
380
- }
381
-
382
- declare class Event_2 implements IEventData, ISerializable {
383
- static envelopeType: string;
384
- static dataType: string;
385
- aiDataContract: {
386
- ver: FieldType;
387
- name: FieldType;
388
- properties: FieldType;
389
- measurements: FieldType;
390
- };
391
- /**
392
- * Schema version
393
- */
394
- ver: number;
395
- /**
396
- * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
397
- */
398
- name: string;
399
- /**
400
- * Collection of custom properties.
401
- */
402
- properties: any;
403
- /**
404
- * Collection of custom measurements.
405
- */
406
- measurements: any;
407
- /**
408
- * Constructs a new instance of the EventTelemetry object
409
- */
410
- constructor(logger: IDiagnosticLogger, name: string, properties?: any, measurements?: any);
411
- }
209
+ export { CtxTagKeys }
210
+
211
+ export { Data }
212
+
213
+ export { dataSanitizeException }
214
+
215
+ export { dataSanitizeId }
216
+
217
+ export { dataSanitizeInput }
218
+
219
+ export { dataSanitizeKey }
220
+
221
+ export { dataSanitizeKeyAndAddUniqueness }
222
+
223
+ export { dataSanitizeMeasurements }
224
+
225
+ export { dataSanitizeMessage }
226
+
227
+ export { dataSanitizeProperties }
228
+
229
+ export { DataSanitizerValues }
230
+
231
+ export { dataSanitizeString }
232
+
233
+ export { dataSanitizeUrl }
234
+
235
+ export { dateTimeUtilsDuration }
236
+
237
+ export { dateTimeUtilsNow }
238
+
239
+ export { DEFAULT_BREEZE_ENDPOINT }
240
+
241
+ export { DEFAULT_BREEZE_PATH }
242
+
243
+ export { DisabledPropertyName }
244
+
245
+ export { DistributedTracingModes }
246
+
247
+ export { dsPadNumber }
248
+
249
+ export { eDistributedTracingModes }
250
+
251
+ export { Envelope }
252
+
253
+ export { eOfflineValue }
254
+
255
+ export { eRequestHeaders }
256
+
257
+ export { eSeverityLevel }
258
+
412
259
  export { Event_2 as Event }
413
260
 
414
- /**
415
- * The EventPersistence contains a set of values that specify the event's persistence.
416
- */
417
- export declare const EventPersistence: EnumValue<typeof EventPersistenceValue>;
261
+ export { EventDataType }
418
262
 
419
- export declare type EventPersistence = number | EventPersistenceValue;
263
+ export { EventEnvelopeType }
420
264
 
421
- /**
422
- * The EventPersistence contains a set of values that specify the event's persistence.
423
- */
424
- declare const enum EventPersistenceValue {
425
- /**
426
- * Normal persistence.
427
- */
428
- Normal = 1,
429
- /**
430
- * Critical persistence.
431
- */
432
- Critical = 2
433
- }
434
-
435
- export declare class Exception implements IExceptionData, ISerializable {
436
- static envelopeType: string;
437
- static dataType: string;
438
- id?: string;
439
- problemGroup?: string;
440
- isManual?: boolean;
441
- aiDataContract: {
442
- ver: FieldType;
443
- exceptions: FieldType;
444
- severityLevel: FieldType;
445
- properties: FieldType;
446
- measurements: FieldType;
447
- };
448
- /**
449
- * Schema version
450
- */
451
- ver: number;
452
- /**
453
- * Exception chain - list of inner exceptions.
454
- */
455
- exceptions: IExceptionDetails[];
456
- /**
457
- * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
458
- */
459
- severityLevel: SeverityLevel;
460
- /**
461
- * Collection of custom properties.
462
- */
463
- properties: any;
464
- /**
465
- * Collection of custom measurements.
466
- */
467
- measurements: any;
468
- /**
469
- * Constructs a new instance of the ExceptionTelemetry object
470
- */
471
- constructor(logger: IDiagnosticLogger, exception: Error | IExceptionInternal | IAutoExceptionTelemetry, properties?: {
472
- [key: string]: any;
473
- }, measurements?: {
474
- [key: string]: number;
475
- }, severityLevel?: SeverityLevel, id?: string);
476
- static CreateAutoException(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: any, evt?: Event | string, stack?: string, errorSrc?: string): IAutoExceptionTelemetry;
477
- static CreateFromInterface(logger: IDiagnosticLogger, exception: IExceptionInternal, properties?: any, measurements?: {
478
- [key: string]: number;
479
- }): Exception;
480
- toInterface(): IExceptionInternal;
481
- /**
482
- * Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.
483
- */
484
- static CreateSimpleException(message: string, typeName: string, assembly: string, fileName: string, details: string, line: number): Exception;
485
- static formatError: typeof _formatErrorCode;
486
- }
487
-
488
- export declare const Extensions: {
489
- UserExt: string;
490
- DeviceExt: string;
491
- TraceExt: string;
492
- WebExt: string;
493
- AppExt: string;
494
- OSExt: string;
495
- SessionExt: string;
496
- SDKExt: string;
497
- };
498
-
499
- /**
500
- * Enum is used in aiDataContract to describe how fields are serialized.
501
- * For instance: (Fieldtype.Required | FieldType.Array) will mark the field as required and indicate it's an array
502
- */
503
- export declare const enum FieldType {
504
- Default = 0,
505
- Required = 1,
506
- Array = 2,
507
- Hidden = 4
508
- }
265
+ export { EventPersistence }
266
+
267
+ export { Exception }
268
+
269
+ export { ExceptionDataType }
270
+
271
+ export { ExceptionEnvelopeType }
272
+
273
+ export { Extensions }
274
+
275
+ export { FieldType }
509
276
 
510
277
  export { findAllScripts }
511
278
 
512
279
  export { findW3cTraceParent }
513
280
 
514
- /**
515
- * Formats the provided errorObj for display and reporting, it may be a String, Object, integer or undefined depending on the browser.
516
- * @param errorObj - The supplied errorObj
517
- */
518
- declare function _formatErrorCode(errorObj: any): any;
519
-
520
281
  export { formatTraceParent }
521
282
 
522
- export declare function getExtensionByName(extensions: IPlugin[], identifier: string): IPlugin | null;
523
-
524
- export declare const HttpMethod = "http.method";
525
-
526
- export declare interface IAppInsights {
527
- /**
528
- * Get the current cookie manager for this instance
529
- */
530
- getCookieMgr(): ICookieMgr;
531
- trackEvent(event: IEventTelemetry, customProperties?: {
532
- [key: string]: any;
533
- }): void;
534
- trackPageView(pageView: IPageViewTelemetry, customProperties?: {
535
- [key: string]: any;
536
- }): void;
537
- trackException(exception: IExceptionTelemetry, customProperties?: {
538
- [key: string]: any;
539
- }): void;
540
- _onerror(exception: IAutoExceptionTelemetry): void;
541
- trackTrace(trace: ITraceTelemetry, customProperties?: {
542
- [key: string]: any;
543
- }): void;
544
- trackMetric(metric: IMetricTelemetry, customProperties?: {
545
- [key: string]: any;
546
- }): void;
547
- startTrackPage(name?: string): void;
548
- stopTrackPage(name?: string, url?: string, properties?: {
549
- [key: string]: string;
550
- }, measurements?: {
551
- [key: string]: number;
552
- }): void;
553
- startTrackEvent(name: string): void;
554
- stopTrackEvent(name: string, properties?: {
555
- [key: string]: string;
556
- }, measurements?: {
557
- [key: string]: number;
558
- }): void;
559
- addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): void;
560
- trackPageViewPerformance(pageViewPerformance: IPageViewPerformanceTelemetry, customProperties?: {
561
- [key: string]: any;
562
- }): void;
563
- }
564
-
565
- export declare interface IApplication {
566
- /**
567
- * The application version.
568
- */
569
- ver: string;
570
- /**
571
- * The application build version.
572
- */
573
- build: string;
574
- }
575
-
576
- /**
577
- * @description window.onerror function parameters
578
- * @export
579
- * @interface IAutoExceptionTelemetry
580
- */
581
- export declare interface IAutoExceptionTelemetry {
582
- /**
583
- * @description error message. Available as event in HTML onerror="" handler
584
- */
585
- message: string;
586
- /**
587
- * @description URL of the script where the error was raised
588
- */
589
- url: string;
590
- /**
591
- * @description Line number where error was raised
592
- */
593
- lineNumber: number;
594
- /**
595
- * @description Column number for the line where the error occurred
596
- */
597
- columnNumber: number;
598
- /**
599
- * @description Error Object (object)
600
- */
601
- error: any;
602
- /**
603
- * @description The event at the time of the exception (object)
604
- */
605
- evt?: Event | string;
606
- /**
607
- * @description The provided stack for the error
608
- */
609
- stackDetails?: IStackDetails;
610
- /**
611
- * @description The calculated type of the error
612
- */
613
- typeName?: string;
614
- /**
615
- * @description The descriptive source of the error
616
- */
617
- errorSrc?: string;
618
- }
619
-
620
- /**
621
- * Configuration settings for how telemetry is sent
622
- * @export
623
- * @interface IConfig
624
- */
625
- export declare interface IConfig {
626
- /**
627
- * The JSON format (normal vs line delimited). True means line delimited JSON.
628
- */
629
- emitLineDelimitedJson?: boolean;
630
- /**
631
- * An optional account id, if your app groups users into accounts. No spaces, commas, semicolons, equals, or vertical bars.
632
- */
633
- accountId?: string;
634
- /**
635
- * A session is logged if the user is inactive for this amount of time in milliseconds. Default 30 mins.
636
- * @default 30*60*1000
637
- */
638
- sessionRenewalMs?: number;
639
- /**
640
- * A session is logged if it has continued for this amount of time in milliseconds. Default 24h.
641
- * @default 24*60*60*1000
642
- */
643
- sessionExpirationMs?: number;
644
- /**
645
- * Max size of telemetry batch. If batch exceeds limit, it is sent and a new batch is started
646
- * @default 100000
647
- */
648
- maxBatchSizeInBytes?: number;
649
- /**
650
- * How long to batch telemetry for before sending (milliseconds)
651
- * @default 15 seconds
652
- */
653
- maxBatchInterval?: number;
654
- /**
655
- * If true, debugging data is thrown as an exception by the logger. Default false
656
- * @defaultValue false
657
- */
658
- enableDebug?: boolean;
659
- /**
660
- * If true, exceptions are not autocollected. Default is false
661
- * @defaultValue false
662
- */
663
- disableExceptionTracking?: boolean;
664
- /**
665
- * If true, telemetry is not collected or sent. Default is false
666
- * @defaultValue false
667
- */
668
- disableTelemetry?: boolean;
669
- /**
670
- * Percentage of events that will be sent. Default is 100, meaning all events are sent.
671
- * @defaultValue 100
672
- */
673
- samplingPercentage?: number;
674
- /**
675
- * If true, on a pageview, the previous instrumented page's view time is tracked and sent as telemetry and a new timer is started for the current pageview. It is sent as a custom metric named PageVisitTime in milliseconds and is calculated via the Date now() function (if available) and falls back to (new Date()).getTime() if now() is unavailable (IE8 or less). Default is false.
676
- */
677
- autoTrackPageVisitTime?: boolean;
678
- /**
679
- * Automatically track route changes in Single Page Applications (SPA). If true, each route change will send a new Pageview to Application Insights.
680
- */
681
- enableAutoRouteTracking?: boolean;
682
- /**
683
- * If true, Ajax calls are not autocollected. Default is false
684
- * @defaultValue false
685
- */
686
- disableAjaxTracking?: boolean;
687
- /**
688
- * If true, Fetch requests are not autocollected. Default is false (Since 2.8.0, previously true).
689
- * @defaultValue false
690
- */
691
- disableFetchTracking?: boolean;
692
- /**
693
- * Provide a way to exclude specific route from automatic tracking for XMLHttpRequest or Fetch request. For an ajax / fetch request that the request url matches with the regex patterns, auto tracking is turned off.
694
- * @defaultValue undefined.
695
- */
696
- excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
697
- /**
698
- * Provide a way to enrich dependencies logs with context at the beginning of api call.
699
- * Default is undefined.
700
- */
701
- addRequestContext?: (requestContext?: IRequestContext) => ICustomProperties;
702
- /**
703
- * If true, default behavior of trackPageView is changed to record end of page view duration interval when trackPageView is called. If false and no custom duration is provided to trackPageView, the page view performance is calculated using the navigation timing API. Default is false
704
- * @defaultValue false
705
- */
706
- overridePageViewDuration?: boolean;
707
- /**
708
- * Default 500 - controls how many ajax calls will be monitored per page view. Set to -1 to monitor all (unlimited) ajax calls on the page.
709
- */
710
- maxAjaxCallsPerView?: number;
711
- /**
712
- * @ignore
713
- * If false, internal telemetry sender buffers will be checked at startup for items not yet sent. Default is true
714
- * @defaultValue true
715
- */
716
- disableDataLossAnalysis?: boolean;
717
- /**
718
- * If false, the SDK will add two headers ('Request-Id' and 'Request-Context') to all dependency requests to correlate them with corresponding requests on the server side. Default is false.
719
- * @defaultValue false
720
- */
721
- disableCorrelationHeaders?: boolean;
722
- /**
723
- * Sets the distributed tracing mode. If AI_AND_W3C mode or W3C mode is set, W3C trace context headers (traceparent/tracestate) will be generated and included in all outgoing requests.
724
- * AI_AND_W3C is provided for back-compatibility with any legacy Application Insights instrumented services
725
- * @defaultValue AI_AND_W3C
726
- */
727
- distributedTracingMode?: DistributedTracingModes;
728
- /**
729
- * Disable correlation headers for specific domain
730
- */
731
- correlationHeaderExcludedDomains?: string[];
732
- /**
733
- * Default false. If true, flush method will not be called when onBeforeUnload, onUnload, onPageHide or onVisibilityChange (hidden state) event(s) trigger.
734
- */
735
- disableFlushOnBeforeUnload?: boolean;
736
- /**
737
- * Default value of `disableFlushOnBeforeUnload`. If true, flush method will not be called when onPageHide or onVisibilityChange (hidden state) event(s) trigger.
738
- */
739
- disableFlushOnUnload?: boolean;
740
- /**
741
- * If true, the buffer with all unsent telemetry is stored in session storage. The buffer is restored on page load. Default is true.
742
- * @defaultValue true
743
- */
744
- enableSessionStorageBuffer?: boolean;
745
- /**
746
- * If specified, overrides the storage & retrieval mechanism that is used to manage unsent telemetry.
747
- */
748
- bufferOverride?: IStorageBuffer;
749
- /**
750
- * @deprecated Use either disableCookiesUsage or specify a cookieCfg with the enabled value set.
751
- * If true, the SDK will not store or read any data from cookies. Default is false. As this field is being deprecated, when both
752
- * isCookieUseDisabled and disableCookiesUsage are used disableCookiesUsage will take precedent.
753
- * @defaultValue false
754
- */
755
- isCookieUseDisabled?: boolean;
756
- /**
757
- * If true, the SDK will not store or read any data from cookies. Default is false.
758
- * If you have also specified a cookieCfg then enabled property (if specified) will take precedent over this value.
759
- * @defaultValue false
760
- */
761
- disableCookiesUsage?: boolean;
762
- /**
763
- * Custom cookie domain. This is helpful if you want to share Application Insights cookies across subdomains.
764
- * @defaultValue ""
765
- */
766
- cookieDomain?: string;
767
- /**
768
- * Custom cookie path. This is helpful if you want to share Application Insights cookies behind an application gateway.
769
- * @defaultValue ""
770
- */
771
- cookiePath?: string;
772
- /**
773
- * Default false. If false, retry on 206 (partial success), 408 (timeout), 429 (too many requests), 500 (internal server error), 503 (service unavailable), and 0 (offline, only if detected)
774
- * @description
775
- * @defaultValue false
776
- */
777
- isRetryDisabled?: boolean;
778
- /**
779
- * @deprecated Used when initizialing from snippet only.
780
- * The url from where the JS SDK will be downloaded.
781
- */
782
- url?: string;
783
- /**
784
- * If true, the SDK will not store or read any data from local and session storage. Default is false.
785
- * @defaultValue false
786
- */
787
- isStorageUseDisabled?: boolean;
788
- /**
789
- * If false, the SDK will send all telemetry using the <a href="https://www.w3.org/TR/beacon">Beacon API</a>.
790
- * @defaultValue true
791
- */
792
- isBeaconApiDisabled?: boolean;
793
- /**
794
- * Don't use XMLHttpRequest or XDomainRequest (for IE \< 9) by default instead attempt to use fetch() or sendBeacon.
795
- * If no other transport is available it will still use XMLHttpRequest
796
- */
797
- disableXhr?: boolean;
798
- /**
799
- * If fetch keepalive is supported do not use it for sending events during unload, it may still fallback to fetch() without keepalive
800
- */
801
- onunloadDisableFetch?: boolean;
802
- /**
803
- * Sets the sdk extension name. Only alphabetic characters are allowed. The extension name is added as a prefix to the 'ai.internal.sdkVersion' tag (e.g. 'ext_javascript:2.0.0'). Default is null.
804
- * @defaultValue null
805
- */
806
- sdkExtension?: string;
807
- /**
808
- * Default is false. If true, the SDK will track all [Browser Link](https://docs.microsoft.com/en-us/aspnet/core/client-side/using-browserlink) requests.
809
- * @defaultValue false
810
- */
811
- isBrowserLinkTrackingEnabled?: boolean;
812
- /**
813
- * AppId is used for the correlation between AJAX dependencies happening on the client-side with the server-side requets. When Beacon API is enabled, it cannot be used automatically, but can be set manually in the configuration. Default is null
814
- * @defaultValue null
815
- */
816
- appId?: string;
817
- /**
818
- * If true, the SDK will add two headers ('Request-Id' and 'Request-Context') to all CORS requests to correlate outgoing AJAX dependencies with corresponding requests on the server side. Default is false
819
- * @defaultValue false
820
- */
821
- enableCorsCorrelation?: boolean;
822
- /**
823
- * An optional value that will be used as name postfix for localStorage and session cookie name.
824
- * @defaultValue null
825
- */
826
- namePrefix?: string;
827
- /**
828
- * An optional value that will be used as name postfix for session cookie name. If undefined, namePrefix is used as name postfix for session cookie name.
829
- * @defaultValue null
830
- */
831
- sessionCookiePostfix?: string;
832
- /**
833
- * An optional value that will be used as name postfix for user cookie name. If undefined, no postfix is added on user cookie name.
834
- * @defaultValue null
835
- */
836
- userCookiePostfix?: string;
837
- /**
838
- * An optional value that will track Request Header through trackDependency function.
839
- * @defaultValue false
840
- */
841
- enableRequestHeaderTracking?: boolean;
842
- /**
843
- * An optional value that will track Response Header through trackDependency function.
844
- * @defaultValue false
845
- */
846
- enableResponseHeaderTracking?: boolean;
847
- /**
848
- * An optional value that will track Response Error data through trackDependency function.
849
- * @defaultValue false
850
- */
851
- enableAjaxErrorStatusText?: boolean;
852
- /**
853
- * Flag to enable looking up and including additional browser window.performance timings
854
- * in the reported ajax (XHR and fetch) reported metrics.
855
- * Defaults to false.
856
- */
857
- enableAjaxPerfTracking?: boolean;
858
- /**
859
- * The maximum number of times to look for the window.performance timings (if available), this
860
- * is required as not all browsers populate the window.performance before reporting the
861
- * end of the XHR request and for fetch requests this is added after its complete
862
- * Defaults to 3
863
- */
864
- maxAjaxPerfLookupAttempts?: number;
865
- /**
866
- * The amount of time to wait before re-attempting to find the windows.performance timings
867
- * for an ajax request, time is in milliseconds and is passed directly to setTimeout()
868
- * Defaults to 25.
869
- */
870
- ajaxPerfLookupDelay?: number;
871
- /**
872
- * Default false. when tab is closed, the SDK will send all remaining telemetry using the [Beacon API](https://www.w3.org/TR/beacon)
873
- * @defaultValue false
874
- */
875
- onunloadDisableBeacon?: boolean;
876
- /**
877
- * @ignore
878
- * Internal only
879
- */
880
- autoExceptionInstrumented?: boolean;
881
- /**
882
- *
883
- */
884
- correlationHeaderDomains?: string[];
885
- /**
886
- * @ignore
887
- * Internal only
888
- */
889
- autoUnhandledPromiseInstrumented?: boolean;
890
- /**
891
- * Default false. Define whether to track unhandled promise rejections and report as JS errors.
892
- * When disableExceptionTracking is enabled (dont track exceptions) this value will be false.
893
- * @defaultValue false
894
- */
895
- enableUnhandledPromiseRejectionTracking?: boolean;
896
- /**
897
- * Disable correlation headers using regular expressions
898
- */
899
- correlationHeaderExcludePatterns?: RegExp[];
900
- /**
901
- * The ability for the user to provide extra headers
902
- */
903
- customHeaders?: [{
904
- header: string;
905
- value: string;
906
- }];
907
- /**
908
- * Provide user an option to convert undefined field to user defined value.
909
- */
910
- convertUndefined?: any;
911
- /**
912
- * [Optional] The number of events that can be kept in memory before the SDK starts to drop events. By default, this is 10,000.
913
- */
914
- eventsLimitInMem?: number;
915
- /**
916
- * [Optional] Disable iKey deprecation error message.
917
- * @defaultValue true
918
- */
919
- disableIkeyDeprecationMessage?: boolean;
920
- /**
921
- * [Optional] Sets to true if user wants to disable sending internal log message 'SendBrowserInfoOnUserInit'
922
- * default to be false for versions 2.8.x and 3.0.x, true for versions 3.1.x and later
923
- */
924
- disableUserInitMessage?: boolean;
925
- /**
926
- * [Optional] Flag to indicate whether the internal looking endpoints should be automatically
927
- * added to the `excludeRequestFromAutoTrackingPatterns` collection. (defaults to true).
928
- * This flag exists as the provided regex is generic and may unexpectedly match a domain that
929
- * should not be excluded.
930
- */
931
- addIntEndpoints?: boolean;
932
- /**
933
- * [Optional] Sets throttle mgr configuration by key
934
- */
935
- throttleMgrCfg?: {
936
- [key: number]: IThrottleMgrConfig;
937
- };
938
- /**
939
- * [Optional] Specifies a Highest Priority custom endpoint URL where telemetry data will be sent.
940
- * This URL takes precedence over the 'config.endpointUrl' and any endpoint in the connection string.
941
- */
942
- userOverrideEndpointUrl?: string;
943
- }
944
-
945
- export declare interface IContextTagKeys {
946
- /**
947
- * Application version. Information in the application context fields is always about the application that is sending the telemetry.
948
- */
949
- readonly applicationVersion: string;
950
- /**
951
- * Application build.
952
- */
953
- readonly applicationBuild: string;
954
- /**
955
- * Application type id.
956
- */
957
- readonly applicationTypeId: string;
958
- /**
959
- * Application id.
960
- */
961
- readonly applicationId: string;
962
- /**
963
- * Application layer.
964
- */
965
- readonly applicationLayer: string;
966
- /**
967
- * Unique client device id. Computer name in most cases.
968
- */
969
- readonly deviceId: string;
970
- readonly deviceIp: string;
971
- readonly deviceLanguage: string;
972
- /**
973
- * Device locale using <language>-<REGION> pattern, following RFC 5646. Example 'en-US'.
974
- */
975
- readonly deviceLocale: string;
976
- /**
977
- * Model of the device the end user of the application is using. Used for client scenarios. If this field is empty then it is derived from the user agent.
978
- */
979
- readonly deviceModel: string;
980
- readonly deviceFriendlyName: string;
981
- readonly deviceNetwork: string;
982
- readonly deviceNetworkName: string;
983
- /**
984
- * Client device OEM name taken from the browser.
985
- */
986
- readonly deviceOEMName: string;
987
- readonly deviceOS: string;
988
- /**
989
- * Operating system name and version of the device the end user of the application is using. If this field is empty then it is derived from the user agent. Example 'Windows 10 Pro 10.0.10586.0'
990
- */
991
- readonly deviceOSVersion: string;
992
- /**
993
- * Name of the instance where application is running. Computer name for on-premisis, instance name for Azure.
994
- */
995
- readonly deviceRoleInstance: string;
996
- /**
997
- * Name of the role application is part of. Maps directly to the role name in azure.
998
- */
999
- readonly deviceRoleName: string;
1000
- readonly deviceScreenResolution: string;
1001
- /**
1002
- * The type of the device the end user of the application is using. Used primarily to distinguish JavaScript telemetry from server side telemetry. Examples: 'PC', 'Phone', 'Browser'. 'PC' is the default value.
1003
- */
1004
- readonly deviceType: string;
1005
- readonly deviceMachineName: string;
1006
- readonly deviceVMName: string;
1007
- readonly deviceBrowser: string;
1008
- /**
1009
- * The browser name and version as reported by the browser.
1010
- */
1011
- readonly deviceBrowserVersion: string;
1012
- /**
1013
- * The IP address of the client device. IPv4 and IPv6 are supported. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
1014
- */
1015
- readonly locationIp: string;
1016
- /**
1017
- * The country of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
1018
- */
1019
- readonly locationCountry: string;
1020
- /**
1021
- * The province/state of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
1022
- */
1023
- readonly locationProvince: string;
1024
- /**
1025
- * The city of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
1026
- */
1027
- readonly locationCity: string;
1028
- /**
1029
- * A unique identifier for the operation instance. The operation.id is created by either a request or a page view. All other telemetry sets this to the value for the containing request or page view. Operation.id is used for finding all the telemetry items for a specific operation instance.
1030
- */
1031
- readonly operationId: string;
1032
- /**
1033
- * The name (group) of the operation. The operation.name is created by either a request or a page view. All other telemetry items set this to the value for the containing request or page view. Operation.name is used for finding all the telemetry items for a group of operations (i.e. 'GET Home/Index').
1034
- */
1035
- readonly operationName: string;
1036
- /**
1037
- * The unique identifier of the telemetry item's immediate parent.
1038
- */
1039
- readonly operationParentId: string;
1040
- readonly operationRootId: string;
1041
- /**
1042
- * Name of synthetic source. Some telemetry from the application may represent a synthetic traffic. It may be web crawler indexing the web site, site availability tests or traces from diagnostic libraries like Application Insights SDK itself.
1043
- */
1044
- readonly operationSyntheticSource: string;
1045
- /**
1046
- * The correlation vector is a light weight vector clock which can be used to identify and order related events across clients and services.
1047
- */
1048
- readonly operationCorrelationVector: string;
1049
- /**
1050
- * Session ID - the instance of the user's interaction with the app. Information in the session context fields is always about the end user. When telemetry is sent from a service, the session context is about the user that initiated the operation in the service.
1051
- */
1052
- readonly sessionId: string;
1053
- /**
1054
- * Boolean value indicating whether the session identified by ai.session.id is first for the user or not.
1055
- */
1056
- readonly sessionIsFirst: string;
1057
- readonly sessionIsNew: string;
1058
- readonly userAccountAcquisitionDate: string;
1059
- /**
1060
- * In multi-tenant applications this is the account ID or name which the user is acting with. Examples may be subscription ID for Azure portal or blog name blogging platform.
1061
- */
1062
- readonly userAccountId: string;
1063
- /**
1064
- * The browser's user agent string as reported by the browser. This property will be used to extract informaiton regarding the customer's browser but will not be stored. Use custom properties to store the original user agent.
1065
- */
1066
- readonly userAgent: string;
1067
- /**
1068
- * Anonymous user id. Represents the end user of the application. When telemetry is sent from a service, the user context is about the user that initiated the operation in the service.
1069
- */
1070
- readonly userId: string;
1071
- /**
1072
- * Store region for UWP applications.
1073
- */
1074
- readonly userStoreRegion: string;
1075
- /**
1076
- * Authenticated user id. The opposite of ai.user.id, this represents the user with a friendly name. Since it's PII information it is not collected by default by most SDKs.
1077
- */
1078
- readonly userAuthUserId: string;
1079
- readonly userAnonymousUserAcquisitionDate: string;
1080
- readonly userAuthenticatedUserAcquisitionDate: string;
1081
- readonly cloudName: string;
1082
- /**
1083
- * Name of the role the application is a part of. Maps directly to the role name in azure.
1084
- */
1085
- readonly cloudRole: string;
1086
- readonly cloudRoleVer: string;
1087
- /**
1088
- * Name of the instance where the application is running. Computer name for on-premisis, instance name for Azure.
1089
- */
1090
- readonly cloudRoleInstance: string;
1091
- readonly cloudEnvironment: string;
1092
- readonly cloudLocation: string;
1093
- readonly cloudDeploymentUnit: string;
1094
- /**
1095
- * SDK version. See https://github.com/microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.
1096
- */
1097
- readonly internalSdkVersion: string;
1098
- /**
1099
- * Agent version. Used to indicate the version of StatusMonitor installed on the computer if it is used for data collection.
1100
- */
1101
- readonly internalAgentVersion: string;
1102
- /**
1103
- * This is the node name used for billing purposes. Use it to override the standard detection of nodes.
1104
- */
1105
- readonly internalNodeName: string;
1106
- /**
1107
- * This identifies the version of the snippet that was used to initialize the SDK
1108
- */
1109
- readonly internalSnippet: string;
1110
- /**
1111
- * This identifies the source of the Sdk script (used to identify whether the SDK was loaded via the CDN)
1112
- */
1113
- readonly internalSdkSrc: string;
1114
- }
1115
-
1116
- export declare interface ICorrelationConfig {
1117
- enableCorsCorrelation: boolean;
1118
- correlationHeaderExcludedDomains: string[];
1119
- correlationHeaderExcludePatterns?: RegExp[];
1120
- disableCorrelationHeaders: boolean;
1121
- distributedTracingMode: DistributedTracingModes;
1122
- maxAjaxCallsPerView: number;
1123
- disableAjaxTracking: boolean;
1124
- disableFetchTracking: boolean;
1125
- appId?: string;
1126
- enableRequestHeaderTracking?: boolean;
1127
- enableResponseHeaderTracking?: boolean;
1128
- enableAjaxErrorStatusText?: boolean;
1129
- /**
1130
- * Flag to enable looking up and including additional browser window.performance timings
1131
- * in the reported ajax (XHR and fetch) reported metrics.
1132
- * Defaults to false.
1133
- */
1134
- enableAjaxPerfTracking?: boolean;
1135
- /**
1136
- * The maximum number of times to look for the window.performance timings (if available), this
1137
- * is required as not all browsers populate the window.performance before reporting the
1138
- * end of the XHR request and for fetch requests this is added after its complete
1139
- * Defaults to 3
1140
- */
1141
- maxAjaxPerfLookupAttempts?: number;
1142
- /**
1143
- * The amount of time to wait before re-attempting to find the windows.performance timings
1144
- * for an ajax request, time is in milliseconds and is passed directly to setTimeout()
1145
- * Defaults to 25.
1146
- */
1147
- ajaxPerfLookupDelay?: number;
1148
- correlationHeaderDomains?: string[];
1149
- /**
1150
- * [Optional] Response and request headers to be excluded from AJAX & Fetch tracking data.
1151
- * To override or discard the default, add an array with all headers to be excluded or
1152
- * an empty array to the configuration.
1153
- *
1154
- * For example: `["Authorization", "X-API-Key", "WWW-Authenticate"]`
1155
- *
1156
- * @example
1157
- * ```js
1158
- * import { ApplicationInsights } from '@microsoft/applicationinsights-web';
1159
- * import { AjaxPlugin } from '@microsoft/applicationinsights-dependencies-js';
1160
- *
1161
- * const dependencyPlugin = new AjaxPlugin();
1162
- * const appInsights = new ApplicationInsights({
1163
- * config: {
1164
- * connectionString: 'InstrumentationKey=YOUR_INSTRUMENTATION_KEY_GOES_HERE',
1165
- * extensions: [dependencyPlugin],
1166
- * extensionConfig: {
1167
- * [dependencyPlugin.identifier]: {
1168
- * ignoreHeaders: [
1169
- * "Authorization",
1170
- * "X-API-Key",
1171
- * "WWW-Authenticate"
1172
- * ]
1173
- * }
1174
- * }
1175
- * }
1176
- * });
1177
- * appInsights.loadAppInsights();
1178
- * appInsights.trackPageView(); // Manually call trackPageView to establish the current user/session/pageview
1179
- * ```
1180
- */
1181
- ignoreHeaders?: string[];
1182
- /**
1183
- * Provide a way to exclude specific route from automatic tracking for XMLHttpRequest or Fetch request.
1184
- * For an ajax / fetch request that the request url matches with the regex patterns, auto tracking is turned off.
1185
- * Default is undefined.
1186
- */
1187
- excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
1188
- /**
1189
- * Provide a way to enrich dependencies logs with context at the beginning of api call.
1190
- * Default is undefined.
1191
- */
1192
- addRequestContext?: (requestContext?: IRequestContext) => ICustomProperties;
1193
- /**
1194
- * [Optional] Flag to indicate whether the internal looking endpoints should be automatically
1195
- * added to the `excludeRequestFromAutoTrackingPatterns` collection. (defaults to true).
1196
- * This flag exists as the provided regex is generic and may unexpectedly match a domain that
1197
- * should not be excluded.
1198
- */
1199
- addIntEndpoints?: boolean;
1200
- }
1201
-
1202
- /**
1203
- * Metric data single measurement.
1204
- */
1205
- declare interface IDataPoint {
1206
- /**
1207
- * Name of the metric.
1208
- */
1209
- name: string;
1210
- /**
1211
- * Metric type. Single measurement or the aggregated value.
1212
- */
1213
- kind: DataPointType;
1214
- /**
1215
- * Single value for measurement. Sum of individual measurements for the aggregation.
1216
- */
1217
- value: number;
1218
- /**
1219
- * Metric weight of the aggregated metric. Should not be set for a measurement.
1220
- */
1221
- count: number;
1222
- /**
1223
- * Minimum value of the aggregated metric. Should not be set for a measurement.
1224
- */
1225
- min: number;
1226
- /**
1227
- * Maximum value of the aggregated metric. Should not be set for a measurement.
1228
- */
1229
- max: number;
1230
- /**
1231
- * Standard deviation of the aggregated metric. Should not be set for a measurement.
1232
- */
1233
- stdDev: number;
1234
- }
1235
-
1236
- /**
1237
- * DependencyTelemetry telemetry interface
1238
- */
1239
- export declare interface IDependencyTelemetry extends IPartC {
1240
- id: string;
1241
- name?: string;
1242
- duration?: number;
1243
- success?: boolean;
1244
- startTime?: Date;
1245
- responseCode: number;
1246
- correlationContext?: string;
1247
- type?: string;
1248
- data?: string;
1249
- target?: string;
1250
- iKey?: string;
1251
- }
1252
-
1253
- export declare interface IDevice {
1254
- /**
1255
- * The type for the current device.
1256
- */
1257
- deviceClass: string;
1258
- /**
1259
- * A device unique ID.
1260
- */
1261
- id: string;
1262
- /**
1263
- * The device model for the current device.
1264
- */
1265
- model: string;
1266
- /**
1267
- * The application screen resolution.
1268
- */
1269
- resolution: string;
1270
- /**
1271
- * The IP address.
1272
- */
1273
- ip: string;
1274
- }
1275
-
1276
- /**
1277
- * The abstract common base of all domains.
1278
- */
1279
- declare interface IDomain {
1280
- }
1281
-
1282
- export declare interface IEnvelope extends ISerializable {
1283
- /**
1284
- * Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.
1285
- */
1286
- ver: number;
1287
- /**
1288
- * Type name of telemetry data item.
1289
- */
1290
- name: string;
1291
- /**
1292
- * Event date time when telemetry item was created. This is the wall clock time on the client when the event was generated. There is no guarantee that the client's time is accurate. This field must be formatted in UTC ISO 8601 format, with a trailing 'Z' character, as described publicly on https://en.wikipedia.org/wiki/ISO_8601#UTC. Note: the number of decimal seconds digits provided are variable (and unspecified). Consumers should handle this, i.e. managed code consumers should not use format 'O' for parsing as it specifies a fixed length. Example: 2009-06-15T13:45:30.0000000Z.
1293
- */
1294
- time: string;
1295
- /**
1296
- * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
1297
- */
1298
- sampleRate: number;
1299
- /**
1300
- * Sequence field used to track absolute order of uploaded events.
1301
- */
1302
- seq: string;
1303
- /**
1304
- * The application's instrumentation key. The key is typically represented as a GUID, but there are cases when it is not a guid. No code should rely on iKey being a GUID. Instrumentation key is case insensitive.
1305
- */
1306
- iKey: string;
1307
- /**
1308
- * Key/value collection of context properties. See ContextTagKeys for information on available properties.
1309
- */
1310
- tags: {
1311
- [name: string]: any;
1312
- };
1313
- /**
1314
- * Telemetry data item.
1315
- */
1316
- data: any;
1317
- }
1318
-
1319
- /**
1320
- * Instances of Event represent structured event records that can be grouped and searched by their properties. Event data item also creates a metric of event count by name.
1321
- */
1322
- declare interface IEventData extends IDomain {
1323
- /**
1324
- * Schema version
1325
- */
1326
- ver: number;
1327
- /**
1328
- * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
1329
- */
1330
- name: string;
1331
- /**
1332
- * Collection of custom properties.
1333
- */
1334
- properties: any;
1335
- /**
1336
- * Collection of custom measurements.
1337
- */
1338
- measurements: any;
1339
- }
1340
-
1341
- export declare interface IEventTelemetry extends IPartC {
1342
- /**
1343
- * @description An event name string
1344
- */
1345
- name: string;
1346
- /**
1347
- * @description custom defined iKey
1348
- */
1349
- iKey?: string;
1350
- }
1351
-
1352
- /**
1353
- * An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
1354
- */
1355
- declare interface IExceptionData extends IDomain {
1356
- /**
1357
- * Schema version
1358
- */
1359
- ver: number;
1360
- /**
1361
- * Exception chain - list of inner exceptions.
1362
- */
1363
- exceptions: IExceptionDetails[];
1364
- /**
1365
- * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
1366
- */
1367
- severityLevel: SeverityLevel;
1368
- /**
1369
- * Collection of custom properties.
1370
- */
1371
- properties: any;
1372
- /**
1373
- * Collection of custom measurements.
1374
- */
1375
- measurements: any;
1376
- }
1377
-
1378
- /**
1379
- * Exception details of the exception in a chain.
1380
- */
1381
- declare interface IExceptionDetails {
1382
- /**
1383
- * In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
1384
- */
1385
- id: number;
1386
- /**
1387
- * The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
1388
- */
1389
- outerId: number;
1390
- /**
1391
- * Exception type name.
1392
- */
1393
- typeName: string;
1394
- /**
1395
- * Exception message.
1396
- */
1397
- message: string;
1398
- /**
1399
- * Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
1400
- */
1401
- hasFullStack: boolean;
1402
- /**
1403
- * Text describing the stack. Either stack or parsedStack should have a value.
1404
- */
1405
- stack: string;
1406
- /**
1407
- * List of stack frames. Either stack or parsedStack should have a value.
1408
- */
1409
- parsedStack: IStackFrame[];
1410
- }
1411
-
1412
- declare interface IExceptionDetailsInternal {
1413
- id: number;
1414
- outerId: number;
1415
- typeName: string;
1416
- message: string;
1417
- hasFullStack: boolean;
1418
- stack: string;
1419
- parsedStack: IExceptionStackFrameInternal[];
1420
- }
1421
-
1422
- export declare interface IExceptionInternal extends IPartC {
1423
- ver: string;
1424
- id: string;
1425
- exceptions: IExceptionDetailsInternal[];
1426
- severityLevel?: SeverityLevel | number;
1427
- problemGroup: string;
1428
- isManual: boolean;
1429
- }
1430
-
1431
- declare interface IExceptionStackFrameInternal {
1432
- level: number;
1433
- method: string;
1434
- assembly: string;
1435
- fileName: string;
1436
- line: number;
1437
- pos?: number;
1438
- }
1439
-
1440
- /**
1441
- * @export
1442
- * @interface IExceptionTelemetry
1443
- * @description Exception interface used as primary parameter to trackException
1444
- */
1445
- export declare interface IExceptionTelemetry extends IPartC {
1446
- /**
1447
- * Unique guid identifying this error
1448
- */
1449
- id?: string;
1450
- /**
1451
- * @deprecated Please use the `exception` field instead. The behavior and usage of `exception` remains the same as this field.
1452
- * Unique guid identifying this error.
1453
- */
1454
- error?: Error;
1455
- /**
1456
- * @description Error Object(s)
1457
- */
1458
- exception?: Error | IAutoExceptionTelemetry;
1459
- /**
1460
- * @description Specified severity of exception for use with
1461
- * telemetry filtering in dashboard
1462
- */
1463
- severityLevel?: SeverityLevel | number;
1464
- }
1465
-
1466
- export declare interface IInternal {
1467
- /**
1468
- * The SDK version used to create this telemetry item.
1469
- */
1470
- sdkVersion: string;
1471
- /**
1472
- * The SDK agent version.
1473
- */
1474
- agentVersion: string;
1475
- /**
1476
- * The Snippet version used to initialize the sdk instance, this will contain either
1477
- * undefined/null - Snippet not used
1478
- * '-' - Version and legacy mode not determined
1479
- * # - Version # of the snippet
1480
- * #.l - Version # in legacy mode
1481
- * .l - No defined version, but used legacy mode initialization
1482
- */
1483
- snippetVer: string;
1484
- /**
1485
- * Identifies the source of the sdk script
1486
- */
1487
- sdkSrc: string;
1488
- }
1489
-
1490
- export declare interface ILocation {
1491
- /**
1492
- * Client IP address for reverse lookup
1493
- */
1494
- ip: string;
1495
- }
1496
-
1497
- /**
1498
- * Instances of Message represent printf-like trace statements that are text-searched. Log4Net, NLog and other text-based log file entries are translated into intances of this type. The message does not have measurements.
1499
- */
1500
- declare interface IMessageData extends IDomain {
1501
- /**
1502
- * Schema version
1503
- */
1504
- ver: number;
1505
- /**
1506
- * Trace message
1507
- */
1508
- message: string;
1509
- /**
1510
- * Trace severity level.
1511
- */
1512
- severityLevel: SeverityLevel;
1513
- /**
1514
- * Collection of custom properties.
1515
- */
1516
- properties: any;
1517
- /**
1518
- * Collection of custom measurements.
1519
- */
1520
- measurements: any;
1521
- }
1522
-
1523
- /**
1524
- * An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
1525
- */
1526
- declare interface IMetricData extends IDomain {
1527
- /**
1528
- * Schema version
1529
- */
1530
- ver: number;
1531
- /**
1532
- * List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used.
1533
- */
1534
- metrics: IDataPoint[];
1535
- /**
1536
- * Collection of custom properties.
1537
- */
1538
- properties: any;
1539
- /**
1540
- * Collection of custom measurements.
1541
- */
1542
- measurements: any;
1543
- }
1544
-
1545
- export declare interface IMetricTelemetry extends IPartC {
1546
- /**
1547
- * @description (required) - name of this metric
1548
- */
1549
- name: string;
1550
- /**
1551
- * @description (required) - Recorded value/average for this metric
1552
- */
1553
- average: number;
1554
- /**
1555
- * @description (optional) Number of samples represented by the average.
1556
- * @default sampleCount=1
1557
- */
1558
- sampleCount?: number;
1559
- /**
1560
- * @description (optional) The smallest measurement in the sample. Defaults to the average
1561
- * @default min=average
1562
- */
1563
- min?: number;
1564
- /**
1565
- * @description (optional) The largest measurement in the sample. Defaults to the average.
1566
- * @default max=average
1567
- */
1568
- max?: number;
1569
- /**
1570
- * (optional) The standard deviation measurement in the sample, Defaults to undefined which results in zero.
1571
- */
1572
- stdDev?: number;
1573
- /**
1574
- * @description custom defined iKey
1575
- */
1576
- iKey?: string;
1577
- }
1578
-
1579
- export declare interface IOfflineListener {
1580
- isOnline: () => boolean;
1581
- isListening: () => boolean;
1582
- unload: () => void;
1583
- addListener: (callback: OfflineCallback) => IUnloadHook;
1584
- setOnlineState: (uState: eOfflineValue) => void;
1585
- }
1586
-
1587
- /**
1588
- * This is the interface for the Offline state
1589
- * runtime state is retrieved from the browser state
1590
- * user state is set by the user
1591
- */
1592
- export declare interface IOfflineState {
1593
- readonly isOnline: boolean;
1594
- readonly rState: eOfflineValue;
1595
- readonly uState: eOfflineValue;
1596
- }
1597
-
1598
- export declare interface IOperatingSystem {
1599
- name: string;
1600
- }
1601
-
1602
- /**
1603
- * An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
1604
- */
1605
- export declare interface IPageViewData extends IEventData {
1606
- /**
1607
- * Request URL with all query string parameters
1608
- */
1609
- url: string;
1610
- /**
1611
- * Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
1612
- */
1613
- duration: string;
1614
- /**
1615
- * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
1616
- */
1617
- id: string;
1618
- }
1619
-
1620
- /**
1621
- * An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request.
1622
- */
1623
- declare interface IPageViewPerfData extends IPageViewData {
1624
- /**
1625
- * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1626
- */
1627
- perfTotal: string;
1628
- /**
1629
- * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1630
- */
1631
- networkConnect: string;
1632
- /**
1633
- * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1634
- */
1635
- sentRequest: string;
1636
- /**
1637
- * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1638
- */
1639
- receivedResponse: string;
1640
- /**
1641
- * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1642
- */
1643
- domProcessing: string;
1644
- }
1645
-
1646
- export declare interface IPageViewPerformanceTelemetry extends IPartC {
1647
- /**
1648
- * name String - The name of the page. Defaults to the document title.
1649
- */
1650
- name?: string;
1651
- /**
1652
- * url String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.
1653
- */
1654
- uri?: string;
1655
- /**
1656
- * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff". This is total duration in timespan format.
1657
- */
1658
- perfTotal?: string;
1659
- /**
1660
- * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff". This represents the total page load time.
1661
- */
1662
- duration?: string;
1663
- /**
1664
- * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1665
- */
1666
- networkConnect?: string;
1667
- /**
1668
- * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff.
1669
- */
1670
- sentRequest?: string;
1671
- /**
1672
- * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff.
1673
- */
1674
- receivedResponse?: string;
1675
- /**
1676
- * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1677
- */
1678
- domProcessing?: string;
1679
- }
1680
-
1681
- export declare interface IPageViewPerformanceTelemetryInternal extends IPageViewPerformanceTelemetry {
1682
- /**
1683
- * An identifier assigned to each distinct impression for the purposes of correlating with pageview.
1684
- * A new id is automatically generated on each pageview. You can manually specify this field if you
1685
- * want to use a specific value instead.
1686
- */
1687
- id?: string;
1688
- /**
1689
- * Version of the part B schema, todo: set this value in trackpageView
1690
- */
1691
- ver?: string;
1692
- /**
1693
- * Field indicating whether this instance of PageViewPerformance is valid and should be sent
1694
- */
1695
- isValid?: boolean;
1696
- /**
1697
- * Duration in miliseconds
1698
- */
1699
- durationMs?: number;
1700
- }
1701
-
1702
- /**
1703
- * Pageview telemetry interface
1704
- */
1705
- export declare interface IPageViewTelemetry extends IPartC {
1706
- /**
1707
- * name String - The string you used as the name in startTrackPage. Defaults to the document title.
1708
- */
1709
- name?: string;
1710
- /**
1711
- * uri String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.
1712
- */
1713
- uri?: string;
1714
- /**
1715
- * refUri String - the URL of the source page where current page is loaded from
1716
- */
1717
- refUri?: string;
1718
- /**
1719
- * pageType String - page type
1720
- */
1721
- pageType?: string;
1722
- /**
1723
- * isLoggedIn - boolean is user logged in
1724
- */
1725
- isLoggedIn?: boolean;
1726
- /**
1727
- * Property bag to contain additional custom properties (Part C)
1728
- */
1729
- properties?: {
1730
- /**
1731
- * The number of milliseconds it took to load the page. Defaults to undefined. If set to default value, page load time is calculated internally.
1732
- */
1733
- duration?: number;
1734
- [key: string]: any;
1735
- };
1736
- /**
1737
- * iKey String - custom defined iKey.
1738
- */
1739
- iKey?: string;
1740
- /**
1741
- * Time first page view is triggered
1742
- */
1743
- startTime?: Date;
1744
- }
1745
-
1746
- export declare interface IPageViewTelemetryInternal extends IPageViewTelemetry {
1747
- /**
1748
- * An identifier assigned to each distinct impression for the purposes of correlating with pageview.
1749
- * A new id is automatically generated on each pageview. You can manually specify this field if you
1750
- * want to use a specific value instead.
1751
- */
1752
- id?: string;
1753
- /**
1754
- * Version of the part B schema, todo: set this value in trackpageView
1755
- */
1756
- ver?: string;
1757
- }
1758
-
1759
- /**
1760
- * PartC telemetry interface
1761
- */
1762
- declare interface IPartC {
1763
- /**
1764
- * Property bag to contain additional custom properties (Part C)
1765
- */
1766
- properties?: {
1767
- [key: string]: any;
1768
- };
1769
- /**
1770
- * Property bag to contain additional custom measurements (Part C)
1771
- * @deprecated -- please use properties instead
1772
- */
1773
- measurements?: {
1774
- [key: string]: number;
1775
- };
1776
- }
1777
-
1778
- export declare interface IPropertiesPlugin {
1779
- readonly context: ITelemetryContext;
1780
- }
1781
-
1782
- /**
1783
- * An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
1784
- */
1785
- declare interface IRemoteDependencyData extends IDomain {
1786
- /**
1787
- * Schema version
1788
- */
1789
- ver: number;
1790
- /**
1791
- * Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
1792
- */
1793
- name: string;
1794
- /**
1795
- * Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
1796
- */
1797
- id: string;
1798
- /**
1799
- * Result code of a dependency call. Examples are SQL error code and HTTP status code.
1800
- */
1801
- resultCode: string;
1802
- /**
1803
- * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
1804
- */
1805
- duration: string;
1806
- /**
1807
- * Indication of successful or unsuccessful call.
1808
- */
1809
- success: boolean;
1810
- /**
1811
- * Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
1812
- */
1813
- data: string;
1814
- /**
1815
- * Target site of a dependency call. Examples are server name, host address.
1816
- */
1817
- target: string;
1818
- /**
1819
- * Dependency type name. Very low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP.
1820
- */
1821
- type: string;
1822
- /**
1823
- * Collection of custom properties.
1824
- */
1825
- properties: any;
1826
- /**
1827
- * Collection of custom measurements.
1828
- */
1829
- measurements: any;
1830
- }
1831
-
1832
- export declare interface IRequestContext {
1833
- status?: number;
1834
- xhr?: XMLHttpRequest;
1835
- request?: Request;
1836
- response?: Response | string;
1837
- }
1838
-
1839
- export declare interface IRequestHeaders {
1840
- /**
1841
- * Request-Context header
1842
- */
1843
- requestContextHeader: string;
1844
- /**
1845
- * Target instrumentation header that is added to the response and retrieved by the
1846
- * calling application when processing incoming responses.
1847
- */
1848
- requestContextTargetKey: string;
1849
- /**
1850
- * Request-Context appId format
1851
- */
1852
- requestContextAppIdFormat: string;
1853
- /**
1854
- * Request-Id header
1855
- */
1856
- requestIdHeader: string;
1857
- /**
1858
- * W3C distributed tracing protocol header
1859
- */
1860
- traceParentHeader: string;
1861
- /**
1862
- * W3C distributed tracing protocol state header
1863
- */
1864
- traceStateHeader: string;
1865
- /**
1866
- * Sdk-Context header
1867
- * If this header passed with appId in content then appId will be returned back by the backend.
1868
- */
1869
- sdkContextHeader: string;
1870
- /**
1871
- * String to pass in header for requesting appId back from the backend.
1872
- */
1873
- sdkContextHeaderAppIdRequest: string;
1874
- requestContextHeaderLowerCase: string;
1875
- }
1876
-
1877
- export declare interface ISample {
1878
- /**
1879
- * Sample rate
1880
- */
1881
- sampleRate: number;
1882
- isSampledIn(envelope: ITelemetryItem): boolean;
1883
- }
283
+ export { getExtensionByName }
284
+
285
+ export { HttpMethod }
286
+
287
+ export { IAppInsights }
288
+
289
+ export { IApplication }
290
+
291
+ export { IAutoExceptionTelemetry }
292
+
293
+ export { IConfig }
294
+
295
+ export { IContextTagKeys }
296
+
297
+ export { ICorrelationConfig }
298
+
299
+ export { IDependencyTelemetry }
300
+
301
+ export { IDevice }
302
+
303
+ export { IEnvelope }
304
+
305
+ export { IEventTelemetry }
306
+
307
+ export { IExceptionInternal }
308
+
309
+ export { IExceptionTelemetry }
310
+
311
+ export { IInternal }
312
+
313
+ export { ILocation }
314
+
315
+ export { IMetricTelemetry }
316
+
317
+ export { IOfflineListener }
318
+
319
+ export { IOfflineState }
320
+
321
+ export { IOperatingSystem }
322
+
323
+ export { IPageViewData }
324
+
325
+ export { IPageViewPerformanceTelemetry }
326
+
327
+ export { IPageViewPerformanceTelemetryInternal }
328
+
329
+ export { IPageViewTelemetry }
330
+
331
+ export { IPageViewTelemetryInternal }
332
+
333
+ export { IPropertiesPlugin }
334
+
335
+ export { IRemoteDependencyData }
336
+
337
+ export { IRequestContext }
338
+
339
+ export { IRequestHeaders }
340
+
341
+ export { IRequestTelemetry }
342
+
343
+ export { ISample }
1884
344
 
1885
345
  export { isBeaconApiSupported }
1886
346
 
1887
- export declare function isCrossOriginError(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: Error | Event): boolean;
1888
-
1889
- export declare interface ISerializable {
1890
- /**
1891
- * The set of fields for a serializable object.
1892
- * This defines the serialization order and a value of true/false
1893
- * for each field defines whether the field is required or not.
1894
- */
1895
- aiDataContract: any;
1896
- }
1897
-
1898
- export declare interface ISession {
1899
- /**
1900
- * The session ID.
1901
- */
1902
- id?: string;
1903
- /**
1904
- * The date at which this guid was genereated.
1905
- * Per the spec the ID will be regenerated if more than acquisitionSpan milliseconds ellapse from this time.
1906
- */
1907
- acquisitionDate?: number;
1908
- /**
1909
- * The date at which this session ID was last reported.
1910
- * This value should be updated whenever telemetry is sent using this ID.
1911
- * Per the spec the ID will be regenerated if more than renewalSpan milliseconds elapse from this time with no activity.
1912
- */
1913
- renewalDate?: number;
1914
- }
1915
-
1916
- /**
1917
- * An interface that identifies the automatic session manager
1918
- * @since 3.0.3
1919
- */
1920
- export declare interface ISessionManager {
1921
- /**
1922
- * The automatic Session which has been initialized from the automatic SDK cookies and storage
1923
- */
1924
- automaticSession: ISession;
1925
- /**
1926
- * Update the automatic session cookie if required
1927
- * @returns
1928
- */
1929
- update: () => void;
1930
- /**
1931
- * Record the current state of the automatic session and store it in our cookie string format
1932
- * into the browser's local storage. This is used to restore the session data when the cookie
1933
- * expires.
1934
- */
1935
- backup: () => void;
1936
- }
1937
-
1938
- export declare function isInternalApplicationInsightsEndpoint(endpointUrl: string): boolean;
347
+ export { isCrossOriginError }
1939
348
 
1940
- export { isSampledFlag }
349
+ export { ISerializable }
1941
350
 
1942
- declare interface IStackDetails {
1943
- src: string;
1944
- obj: string[];
1945
- }
351
+ export { ISession }
1946
352
 
1947
- /**
1948
- * Stack frame information.
1949
- */
1950
- declare interface IStackFrame {
1951
- /**
1952
- * Level in the call stack. For the long stacks SDK may not report every function in a call stack.
1953
- */
1954
- level: number;
1955
- /**
1956
- * Method name.
1957
- */
1958
- method: string;
1959
- /**
1960
- * Name of the assembly (dll, jar, etc.) containing this function.
1961
- */
1962
- assembly: string;
1963
- /**
1964
- * File name or URL of the method implementation.
1965
- */
1966
- fileName: string;
1967
- /**
1968
- * Line number of the code implementation.
1969
- */
1970
- line: number;
1971
- }
1972
-
1973
- /**
1974
- * Identifies a simple interface to allow you to override the storage mechanism used
1975
- * to track unsent and unacknowledged events. When provided it must provide both
1976
- * the get and set item functions.
1977
- * @since 2.8.12
1978
- */
1979
- export declare interface IStorageBuffer {
1980
- /**
1981
- * Retrieves the stored value for a given key
1982
- */
1983
- getItem(logger: IDiagnosticLogger, name: string): string;
1984
- /**
1985
- * Sets the stored value for a given key
1986
- */
1987
- setItem(logger: IDiagnosticLogger, name: string, data: string): boolean;
1988
- }
353
+ export { ISessionManager }
354
+
355
+ export { isInternalApplicationInsightsEndpoint }
356
+
357
+ export { isSampledFlag }
358
+
359
+ export { IStorageBuffer }
1989
360
 
1990
361
  export { isValidSpanId }
1991
362
 
@@ -1993,661 +364,124 @@ export { isValidTraceId }
1993
364
 
1994
365
  export { isValidTraceParent }
1995
366
 
1996
- export declare interface ITelemetryContext {
1997
- /**
1998
- * The object describing a component tracked by this object.
1999
- */
2000
- readonly application: IApplication;
2001
- /**
2002
- * The object describing a device tracked by this object.
2003
- */
2004
- readonly device: IDevice;
2005
- /**
2006
- * The object describing internal settings.
2007
- */
2008
- readonly internal: IInternal;
2009
- /**
2010
- * The object describing a location tracked by this object.
2011
- */
2012
- readonly location: ILocation;
2013
- /**
2014
- * The object describing a operation tracked by this object.
2015
- */
2016
- readonly telemetryTrace: ITelemetryTrace;
2017
- /**
2018
- * The object describing a user tracked by this object.
2019
- */
2020
- readonly user: IUserContext;
2021
- /**
2022
- * The object describing a session tracked by this object.
2023
- */
2024
- readonly session: ISession;
2025
- /**
2026
- * The session manager that manages the automatic session from the cookies
2027
- */
2028
- readonly sessionManager: ISessionManager;
2029
- /**
2030
- * The object describing os details tracked by this object.
2031
- */
2032
- readonly os?: IOperatingSystem;
2033
- /**
2034
- * The object describing we details tracked by this object.
2035
- */
2036
- readonly web?: IWeb;
2037
- /**
2038
- * application id obtained from breeze responses. Is used if appId is not specified by root config
2039
- */
2040
- appId: () => string;
2041
- /**
2042
- * session id obtained from session manager.
2043
- */
2044
- getSessionId: () => string;
2045
- }
2046
-
2047
- export declare interface ITelemetryTrace {
2048
- /**
2049
- * Trace id
2050
- */
2051
- traceID?: string;
2052
- /**
2053
- * Parent id
2054
- */
2055
- parentID?: string;
2056
- /**
2057
- * @deprecated Never Used
2058
- * Trace state
2059
- */
2060
- traceState?: ITraceState;
2061
- /**
2062
- * An integer representation of the W3C TraceContext trace-flags. https://www.w3.org/TR/trace-context/#trace-flags
2063
- */
2064
- traceFlags?: number;
2065
- /**
2066
- * Name
2067
- */
2068
- name?: string;
2069
- }
2070
-
2071
- /**
2072
- * Identifies frequency of items sent
2073
- * Default: send data on 28th every 3 month each year
2074
- */
2075
- export declare interface IThrottleInterval {
2076
- /**
2077
- * Identifies month interval that items can be sent
2078
- * For example, if it is set to 2 and start date is in Jan, items will be sent out every two months (Jan, March, May etc.)
2079
- * If both monthInterval and dayInterval are undefined, it will be set to 3
2080
- */
2081
- monthInterval?: number;
2082
- /**
2083
- * Identifies days Interval from start date that items can be sent
2084
- * Default: undefined
2085
- */
2086
- dayInterval?: number;
2087
- /**
2088
- * Identifies days within each month that items can be sent
2089
- * If both monthInterval and dayInterval are undefined, it will be default to [28]
2090
- */
2091
- daysOfMonth?: number[];
2092
- }
2093
-
2094
- /**
2095
- * Identifies limit number/percentage of items sent per time
2096
- * If both are provided, minimum number between the two will be used
2097
- */
2098
- export declare interface IThrottleLimit {
2099
- /**
2100
- * Identifies sampling percentage of items per time
2101
- * The percentage is set to 4 decimal places, for example: 1 means 0.0001%
2102
- * Default: 100 (0.01%)
2103
- */
2104
- samplingRate?: number;
2105
- /**
2106
- * Identifies limit number of items per time
2107
- * Default: 1
2108
- */
2109
- maxSendNumber?: number;
2110
- }
2111
-
2112
- /**
2113
- * Identifies object for local storage
2114
- */
2115
- export declare interface IThrottleLocalStorageObj {
2116
- /**
2117
- * Identifies start date
2118
- */
2119
- date: Date;
2120
- /**
2121
- * Identifies current count
2122
- */
2123
- count: number;
2124
- /**
2125
- * identifies previous triggered throttle date
2126
- */
2127
- preTriggerDate?: Date;
2128
- }
2129
-
2130
- /**
2131
- * Identifies basic config
2132
- */
2133
- export declare interface IThrottleMgrConfig {
2134
- /**
2135
- * Identifies if throttle is disabled
2136
- * Default: false
2137
- */
2138
- disabled?: boolean;
2139
- /**
2140
- * Identifies limit number/percentage of items sent per time
2141
- * Default: sampling percentage 0.01% with one item sent per time
2142
- */
2143
- limit?: IThrottleLimit;
2144
- /**
2145
- * Identifies frequency of items sent
2146
- * Default: send data on 28th every 3 month each year
2147
- */
2148
- interval?: IThrottleInterval;
2149
- }
2150
-
2151
- /**
2152
- * Identifies throttle result
2153
- */
2154
- export declare interface IThrottleResult {
2155
- /**
2156
- * Identifies if items are sent
2157
- */
2158
- isThrottled: boolean;
2159
- /**
2160
- * Identifies numbers of items are sent
2161
- * if isThrottled is false, it will be set to 0
2162
- */
2163
- throttleNum: number;
2164
- }
367
+ export { ITelemetryContext }
368
+
369
+ export { ITelemetryTrace }
370
+
371
+ export { IThrottleInterval }
372
+
373
+ export { IThrottleLimit }
374
+
375
+ export { IThrottleLocalStorageObj }
376
+
377
+ export { IThrottleMgrConfig }
378
+
379
+ export { IThrottleResult }
2165
380
 
2166
381
  export { ITraceParent }
2167
382
 
2168
- export declare interface ITraceState {
2169
- }
2170
-
2171
- export declare interface ITraceTelemetry extends IPartC {
2172
- /**
2173
- * @description A message string
2174
- */
2175
- message: string;
2176
- /**
2177
- * @description Severity level of the logging message used for filtering in the portal
2178
- */
2179
- severityLevel?: SeverityLevel;
2180
- /**
2181
- * @description custom defiend iKey
2182
- */
2183
- iKey?: string;
2184
- }
2185
-
2186
- export declare interface IUser {
2187
- /**
2188
- * The telemetry configuration.
2189
- */
2190
- config: any;
2191
- /**
2192
- * The user ID.
2193
- */
2194
- id: string;
2195
- /**
2196
- * Authenticated user id
2197
- */
2198
- authenticatedId: string;
2199
- /**
2200
- * The account ID.
2201
- */
2202
- accountId: string;
2203
- /**
2204
- * The account acquisition date.
2205
- */
2206
- accountAcquisitionDate: string;
2207
- /**
2208
- * The localId
2209
- */
2210
- localId: string;
2211
- /**
2212
- * A flag indicating whether this represents a new user
2213
- */
2214
- isNewUser?: boolean;
2215
- /**
2216
- * A flag indicating whether the user cookie has been set
2217
- */
2218
- isUserCookieSet?: boolean;
2219
- }
2220
-
2221
- export declare interface IUserContext extends IUser {
2222
- setAuthenticatedUserContext(authenticatedUserId: string, accountId?: string, storeInCookie?: boolean): void;
2223
- clearAuthenticatedUserContext(): void;
2224
- update(userId?: string): void;
2225
- }
2226
-
2227
- export declare interface IWeb {
2228
- /**
2229
- * Browser name, set at ingestion
2230
- */
2231
- browser: string;
2232
- /**
2233
- * Browser ver, set at ingestion.
2234
- */
2235
- browserVer: string;
2236
- /**
2237
- * Language
2238
- */
2239
- browserLang: string;
2240
- /**
2241
- * User consent, populated to properties bag
2242
- */
2243
- userConsent: boolean;
2244
- /**
2245
- * Whether event was fired manually, populated to properties bag
2246
- */
2247
- isManual: boolean;
2248
- /**
2249
- * Screen resolution, populated to properties bag
2250
- */
2251
- screenRes: string;
2252
- /**
2253
- * Current domain. Leverages Window.location.hostname. populated to properties bag
2254
- */
2255
- domain: string;
2256
- }
2257
-
2258
- export declare class Metric implements IMetricData, ISerializable {
2259
- static envelopeType: string;
2260
- static dataType: string;
2261
- aiDataContract: {
2262
- ver: FieldType;
2263
- metrics: FieldType;
2264
- properties: FieldType;
2265
- };
2266
- /**
2267
- * Schema version
2268
- */
2269
- ver: number;
2270
- /**
2271
- * List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used.
2272
- */
2273
- metrics: DataPoint[];
2274
- /**
2275
- * Collection of custom properties.
2276
- */
2277
- properties: any;
2278
- /**
2279
- * Collection of custom measurements.
2280
- */
2281
- measurements: any;
2282
- /**
2283
- * Constructs a new instance of the MetricTelemetry object
2284
- */
2285
- constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: {
2286
- [key: string]: number;
2287
- });
2288
- }
2289
-
2290
- /**
2291
- * Convert ms to c# time span format
2292
- */
2293
- export declare function msToTimeSpan(totalms: number): string;
383
+ export { ITraceTelemetry }
2294
384
 
2295
- /**
2296
- * this is the callback that will be called when the network status changes
2297
- * @param onlineState - this is the current network running state
2298
- */
2299
- export declare type OfflineCallback = (onlineState: IOfflineState) => void;
2300
-
2301
- export declare class PageView implements IPageViewData, ISerializable {
2302
- static envelopeType: string;
2303
- static dataType: string;
2304
- aiDataContract: {
2305
- ver: FieldType;
2306
- name: FieldType;
2307
- url: FieldType;
2308
- duration: FieldType;
2309
- properties: FieldType;
2310
- measurements: FieldType;
2311
- id: FieldType;
2312
- };
2313
- /**
2314
- * Schema version
2315
- */
2316
- ver: number;
2317
- /**
2318
- * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
2319
- */
2320
- name: string;
2321
- /**
2322
- * Collection of custom properties.
2323
- */
2324
- properties: any;
2325
- /**
2326
- * Collection of custom measurements.
2327
- */
2328
- measurements: any;
2329
- /**
2330
- * Request URL with all query string parameters
2331
- */
2332
- url: string;
2333
- /**
2334
- * Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
2335
- */
2336
- duration: string;
2337
- /**
2338
- * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
2339
- */
2340
- id: string;
2341
- /**
2342
- * Constructs a new instance of the PageEventTelemetry object
2343
- */
2344
- constructor(logger: IDiagnosticLogger, name?: string, url?: string, durationMs?: number, properties?: {
2345
- [key: string]: string;
2346
- }, measurements?: {
2347
- [key: string]: number;
2348
- }, id?: string);
2349
- }
2350
-
2351
- export declare class PageViewPerformance implements IPageViewPerfData, ISerializable {
2352
- static envelopeType: string;
2353
- static dataType: string;
2354
- aiDataContract: {
2355
- ver: FieldType;
2356
- name: FieldType;
2357
- url: FieldType;
2358
- duration: FieldType;
2359
- perfTotal: FieldType;
2360
- networkConnect: FieldType;
2361
- sentRequest: FieldType;
2362
- receivedResponse: FieldType;
2363
- domProcessing: FieldType;
2364
- properties: FieldType;
2365
- measurements: FieldType;
2366
- };
2367
- /**
2368
- * Schema version
2369
- */
2370
- ver: number;
2371
- /**
2372
- * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
2373
- */
2374
- name: string;
2375
- /**
2376
- * Collection of custom properties.
2377
- */
2378
- properties: any;
2379
- /**
2380
- * Collection of custom measurements.
2381
- */
2382
- measurements: any;
2383
- /**
2384
- * Request URL with all query string parameters
2385
- */
2386
- url: string;
2387
- /**
2388
- * Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
2389
- */
2390
- duration: string;
2391
- /**
2392
- * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
2393
- */
2394
- id: string;
2395
- /**
2396
- * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2397
- */
2398
- perfTotal: string;
2399
- /**
2400
- * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2401
- */
2402
- networkConnect: string;
2403
- /**
2404
- * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2405
- */
2406
- sentRequest: string;
2407
- /**
2408
- * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2409
- */
2410
- receivedResponse: string;
2411
- /**
2412
- * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2413
- */
2414
- domProcessing: string;
2415
- /**
2416
- * Constructs a new instance of the PageEventTelemetry object
2417
- */
2418
- constructor(logger: IDiagnosticLogger, name: string, url: string, unused: number, properties?: {
2419
- [key: string]: string;
2420
- }, measurements?: {
2421
- [key: string]: number;
2422
- }, cs4BaseData?: IPageViewPerformanceTelemetry);
2423
- }
2424
-
2425
- export declare function parseConnectionString(connectionString?: string): ConnectionString;
385
+ export { IUser }
386
+
387
+ export { IUserContext }
388
+
389
+ export { IWeb }
390
+
391
+ export { Metric }
392
+
393
+ export { MetricDataType }
394
+
395
+ export { MetricEnvelopeType }
396
+
397
+ export { msToTimeSpan }
398
+
399
+ export { OfflineCallback }
400
+
401
+ export { PageView }
402
+
403
+ export { PageViewDataType }
404
+
405
+ export { PageViewEnvelopeType }
406
+
407
+ export { PageViewPerformance }
408
+
409
+ export { PageViewPerformanceDataType }
410
+
411
+ export { PageViewPerformanceEnvelopeType }
412
+
413
+ export { parseConnectionString }
2426
414
 
2427
415
  export { parseTraceParent }
2428
416
 
2429
- export declare const ProcessLegacy = "ProcessLegacy";
2430
-
2431
- export declare const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
2432
-
2433
- export declare class RemoteDependencyData implements IRemoteDependencyData, ISerializable {
2434
- static envelopeType: string;
2435
- static dataType: string;
2436
- aiDataContract: {
2437
- id: FieldType;
2438
- ver: FieldType;
2439
- name: FieldType;
2440
- resultCode: FieldType;
2441
- duration: FieldType;
2442
- success: FieldType;
2443
- data: FieldType;
2444
- target: FieldType;
2445
- type: FieldType;
2446
- properties: FieldType;
2447
- measurements: FieldType;
2448
- kind: FieldType;
2449
- value: FieldType;
2450
- count: FieldType;
2451
- min: FieldType;
2452
- max: FieldType;
2453
- stdDev: FieldType;
2454
- dependencyKind: FieldType;
2455
- dependencySource: FieldType;
2456
- commandName: FieldType;
2457
- dependencyTypeName: FieldType;
2458
- };
2459
- /**
2460
- * Schema version
2461
- */
2462
- ver: number;
2463
- /**
2464
- * Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
2465
- */
2466
- name: string;
2467
- /**
2468
- * Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
2469
- */
2470
- id: string;
2471
- /**
2472
- * Result code of a dependency call. Examples are SQL error code and HTTP status code.
2473
- */
2474
- resultCode: string;
2475
- /**
2476
- * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
2477
- */
2478
- duration: string;
2479
- /**
2480
- * Indication of successful or unsuccessful call.
2481
- */
2482
- success: boolean;
2483
- /**
2484
- * Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
2485
- */
2486
- data: string;
2487
- /**
2488
- * Target site of a dependency call. Examples are server name, host address.
2489
- */
2490
- target: string;
2491
- /**
2492
- * Dependency type name. Very low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP.
2493
- */
2494
- type: string;
2495
- /**
2496
- * Collection of custom properties.
2497
- */
2498
- properties: any;
2499
- /**
2500
- * Collection of custom measurements.
2501
- */
2502
- measurements: any;
2503
- /**
2504
- * Constructs a new instance of the RemoteDependencyData object
2505
- */
2506
- constructor(logger: IDiagnosticLogger, id: string, absoluteUrl: string, commandName: string, value: number, success: boolean, resultCode: number, method?: string, requestAPI?: string, correlationContext?: string, properties?: Object, measurements?: Object);
2507
- }
2508
-
2509
- export declare const RequestHeaders: IRequestHeaders & {
2510
- requestContextHeader: "Request-Context";
2511
- requestContextTargetKey: "appId";
2512
- requestContextAppIdFormat: "appId=cid-v1:";
2513
- requestIdHeader: "Request-Id";
2514
- traceParentHeader: "traceparent";
2515
- traceStateHeader: "tracestate";
2516
- sdkContextHeader: "Sdk-Context";
2517
- sdkContextHeaderAppIdRequest: "appId";
2518
- requestContextHeaderLowerCase: "request-context";
2519
- 0: "Request-Context";
2520
- 1: "appId";
2521
- 2: "appId=cid-v1:";
2522
- 3: "Request-Id";
2523
- 4: "traceparent";
2524
- 5: "tracestate";
2525
- 6: "Sdk-Context";
2526
- 7: "appId";
2527
- 8: "request-context";
2528
- };
2529
-
2530
- export declare const SampleRate = "sampleRate";
2531
-
2532
- /**
2533
- * Defines the level of severity for the event.
2534
- */
2535
- export declare const SeverityLevel: EnumValue<typeof eSeverityLevel>;
2536
-
2537
- export declare type SeverityLevel = number | eSeverityLevel;
2538
-
2539
- export declare function stringToBoolOrDefault(str: any, defaultValue?: boolean): boolean;
2540
-
2541
- export declare const strNotSpecified = "not_specified";
2542
-
2543
- export declare class TelemetryItemCreator {
2544
- /**
2545
- * Create a telemetry item that the 1DS channel understands
2546
- * @param item - domain specific properties; part B
2547
- * @param baseType - telemetry item type. ie PageViewData
2548
- * @param envelopeName - Name of the envelope (e.g., Microsoft.ApplicationInsights.[instrumentationKey].PageView).
2549
- * @param customProperties - user defined custom properties; part C
2550
- * @param systemProperties - system properties that are added to the context; part A
2551
- * @returns ITelemetryItem that is sent to channel
2552
- */
2553
- static create: typeof createTelemetryItem;
2554
- }
2555
-
2556
- export declare class ThrottleMgr {
2557
- canThrottle: (msgId: _eInternalMessageId | number) => boolean;
2558
- sendMessage: (msgId: _eInternalMessageId, message: string, severity?: eLoggingSeverity) => IThrottleResult | null;
2559
- getConfig: () => IThrottleMgrConfig;
2560
- isTriggered: (msgId: _eInternalMessageId | number) => boolean;
2561
- isReady: () => boolean;
2562
- onReadyState: (isReady?: boolean, flushAll?: boolean) => boolean;
2563
- flush: (msgId: _eInternalMessageId | number) => boolean;
2564
- flushAll: () => boolean;
2565
- config: IThrottleMgrConfig;
2566
- constructor(core: IAppInsightsCore, namePrefix?: string);
2567
- }
2568
-
2569
- export declare class Trace implements IMessageData, ISerializable {
2570
- static envelopeType: string;
2571
- static dataType: string;
2572
- aiDataContract: {
2573
- ver: FieldType;
2574
- message: FieldType;
2575
- severityLevel: FieldType;
2576
- properties: FieldType;
2577
- };
2578
- /**
2579
- * Schema version
2580
- */
2581
- ver: number;
2582
- /**
2583
- * Trace message
2584
- */
2585
- message: string;
2586
- /**
2587
- * Trace severity level.
2588
- */
2589
- severityLevel: SeverityLevel;
2590
- /**
2591
- * Collection of custom properties.
2592
- */
2593
- properties: any;
2594
- /**
2595
- * Collection of custom measurements.
2596
- */
2597
- measurements: any;
2598
- /**
2599
- * Constructs a new instance of the TraceTelemetry object
2600
- */
2601
- constructor(logger: IDiagnosticLogger, message: string, severityLevel?: SeverityLevel, properties?: any, measurements?: {
2602
- [key: string]: number;
2603
- });
2604
- }
2605
-
2606
- export declare function urlGetAbsoluteUrl(url: string): string;
2607
-
2608
- export declare function urlGetCompleteUrl(method: string, absoluteUrl: string): string;
2609
-
2610
- export declare function urlGetPathName(url: string): string;
2611
-
2612
- export declare function urlParseFullHost(url: string, inclPort?: boolean): string;
2613
-
2614
- export declare function urlParseHost(url: string, inclPort?: boolean): string;
2615
-
2616
- export declare function urlParseUrl(url: string): HTMLAnchorElement;
2617
-
2618
- /**
2619
- * Returns whether LocalStorage can be used, if the reset parameter is passed a true this will override
2620
- * any previous disable calls.
2621
- * @param reset - Should the usage be reset and determined only based on whether LocalStorage is available
2622
- */
2623
- export declare function utlCanUseLocalStorage(reset?: boolean): boolean;
417
+ export { ProcessLegacy }
2624
418
 
2625
- export declare function utlCanUseSessionStorage(reset?: boolean): boolean;
419
+ export { PropertiesPluginIdentifier }
2626
420
 
2627
- /**
2628
- * Disables the global SDK usage of local or session storage if available
2629
- */
2630
- export declare function utlDisableStorage(): void;
421
+ export { RemoteDependencyData }
2631
422
 
2632
- /**
2633
- * Re-enables the global SDK usage of local or session storage if available
2634
- */
2635
- export declare function utlEnableStorage(): void;
423
+ export { RemoteDependencyDataType }
424
+
425
+ export { RemoteDependencyEnvelopeType }
426
+
427
+ export { RequestDataType }
428
+
429
+ export { RequestEnvelopeType }
430
+
431
+ export { RequestHeaders }
432
+
433
+ export { SampleRate }
434
+
435
+ export { SeverityLevel }
436
+
437
+ export { stringToBoolOrDefault }
438
+
439
+ export { strNotSpecified }
440
+
441
+ export { TelemetryItemCreator }
442
+
443
+ export { ThrottleMgr }
444
+
445
+ export { Trace }
446
+
447
+ export { TraceDataType }
448
+
449
+ export { TraceEnvelopeType }
450
+
451
+ export { urlGetAbsoluteUrl }
452
+
453
+ export { urlGetCompleteUrl }
454
+
455
+ export { urlGetPathName }
456
+
457
+ export { urlParseFullHost }
458
+
459
+ export { urlParseHost }
460
+
461
+ export { urlParseUrl }
462
+
463
+ export { utlCanUseLocalStorage }
464
+
465
+ export { utlCanUseSessionStorage }
466
+
467
+ export { utlDisableStorage }
468
+
469
+ export { utlEnableStorage }
2636
470
 
2637
- export declare function utlGetLocalStorage(logger: IDiagnosticLogger, name: string): string;
471
+ export { utlGetLocalStorage }
2638
472
 
2639
- export declare function utlGetSessionStorage(logger: IDiagnosticLogger, name: string): string;
473
+ export { utlGetSessionStorage }
2640
474
 
2641
- export declare function utlGetSessionStorageKeys(): string[];
475
+ export { utlGetSessionStorageKeys }
2642
476
 
2643
- export declare function utlRemoveSessionStorage(logger: IDiagnosticLogger, name: string): boolean;
477
+ export { utlRemoveSessionStorage }
2644
478
 
2645
- export declare function utlRemoveStorage(logger: IDiagnosticLogger, name: string): boolean;
479
+ export { utlRemoveStorage }
2646
480
 
2647
- export declare function utlSetLocalStorage(logger: IDiagnosticLogger, name: string, data: string): boolean;
481
+ export { utlSetLocalStorage }
2648
482
 
2649
- export declare function utlSetSessionStorage(logger: IDiagnosticLogger, name: string, data: string): boolean;
483
+ export { utlSetSessionStorage }
2650
484
 
2651
- export declare function utlSetStoragePrefix(storagePrefix: string): void;
485
+ export { utlSetStoragePrefix }
2652
486
 
2653
487
  export { }