@microsoft/applicationinsights-common 2.8.0-nightly.2202-06 → 2.8.0-nightly.2204-04

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 (253) hide show
  1. package/browser/applicationinsights-common.integrity.json +9 -9
  2. package/browser/applicationinsights-common.js +1007 -536
  3. package/browser/applicationinsights-common.js.map +1 -1
  4. package/browser/applicationinsights-common.min.js +2 -2
  5. package/browser/applicationinsights-common.min.js.map +1 -1
  6. package/dist/applicationinsights-common.api.json +2599 -928
  7. package/dist/applicationinsights-common.api.md +99 -43
  8. package/dist/applicationinsights-common.d.ts +515 -282
  9. package/dist/applicationinsights-common.js +1007 -536
  10. package/dist/applicationinsights-common.js.map +1 -1
  11. package/dist/applicationinsights-common.min.js +2 -2
  12. package/dist/applicationinsights-common.min.js.map +1 -1
  13. package/dist/applicationinsights-common.rollup.d.ts +515 -282
  14. package/dist-esm/ConnectionStringParser.js +1 -1
  15. package/dist-esm/Constants.js +1 -1
  16. package/dist-esm/DomHelperFuncs.js +1 -1
  17. package/dist-esm/Enums.js +11 -24
  18. package/dist-esm/Enums.js.map +1 -1
  19. package/dist-esm/HelperFuncs.js +7 -6
  20. package/dist-esm/HelperFuncs.js.map +1 -1
  21. package/dist-esm/Interfaces/ConnectionString.js +1 -1
  22. package/dist-esm/Interfaces/Context/IApplication.js +1 -1
  23. package/dist-esm/Interfaces/Context/IDevice.js +1 -1
  24. package/dist-esm/Interfaces/Context/IInternal.js +1 -1
  25. package/dist-esm/Interfaces/Context/ILocation.js +1 -1
  26. package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
  27. package/dist-esm/Interfaces/Context/ISample.js +1 -1
  28. package/dist-esm/Interfaces/Context/ISession.js +1 -1
  29. package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
  30. package/dist-esm/Interfaces/Context/IUser.js +1 -1
  31. package/dist-esm/Interfaces/Context/IWeb.js +1 -1
  32. package/dist-esm/Interfaces/Contracts/AvailabilityData.js +52 -0
  33. package/dist-esm/Interfaces/Contracts/AvailabilityData.js.map +1 -0
  34. package/dist-esm/Interfaces/Contracts/{Generated/ContextTagKeys.js → ContextTagKeys.js} +1 -1
  35. package/dist-esm/Interfaces/Contracts/{Generated/ContextTagKeys.js.map → ContextTagKeys.js.map} +0 -0
  36. package/dist-esm/Interfaces/Contracts/DataPointType.js +8 -0
  37. package/dist-esm/Interfaces/Contracts/DataPointType.js.map +1 -0
  38. package/dist-esm/Interfaces/Contracts/DependencyKind.js +8 -0
  39. package/dist-esm/Interfaces/Contracts/DependencyKind.js.map +1 -0
  40. package/dist-esm/Interfaces/Contracts/DependencySourceType.js +8 -0
  41. package/dist-esm/Interfaces/Contracts/DependencySourceType.js.map +1 -0
  42. package/dist-esm/Interfaces/Contracts/{Generated/Domain.js → IBase.js} +2 -2
  43. package/dist-esm/Interfaces/Contracts/IBase.js.map +1 -0
  44. package/dist-esm/Interfaces/Contracts/IData.js +8 -0
  45. package/dist-esm/Interfaces/Contracts/IData.js.map +1 -0
  46. package/dist-esm/Interfaces/Contracts/IDataPoint.js +6 -0
  47. package/dist-esm/Interfaces/Contracts/IDataPoint.js.map +1 -0
  48. package/dist-esm/Interfaces/Contracts/IDomain.js +8 -0
  49. package/dist-esm/Interfaces/Contracts/IDomain.js.map +1 -0
  50. package/dist-esm/Interfaces/Contracts/IEnvelope.js +46 -0
  51. package/dist-esm/Interfaces/Contracts/IEnvelope.js.map +1 -0
  52. package/dist-esm/Interfaces/Contracts/IEventData.js +8 -0
  53. package/dist-esm/Interfaces/Contracts/IEventData.js.map +1 -0
  54. package/dist-esm/Interfaces/Contracts/IExceptionData.js +8 -0
  55. package/dist-esm/Interfaces/Contracts/IExceptionData.js.map +1 -0
  56. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +8 -0
  57. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js.map +1 -0
  58. package/dist-esm/Interfaces/Contracts/IMessageData.js +8 -0
  59. package/dist-esm/Interfaces/Contracts/IMessageData.js.map +1 -0
  60. package/dist-esm/Interfaces/Contracts/IMetricData.js +8 -0
  61. package/dist-esm/Interfaces/Contracts/IMetricData.js.map +1 -0
  62. package/dist-esm/Interfaces/Contracts/IPageViewData.js +8 -0
  63. package/dist-esm/Interfaces/Contracts/IPageViewData.js.map +1 -0
  64. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +8 -0
  65. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js.map +1 -0
  66. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +8 -0
  67. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js.map +1 -0
  68. package/dist-esm/Interfaces/Contracts/IStackFrame.js +8 -0
  69. package/dist-esm/Interfaces/Contracts/IStackFrame.js.map +1 -0
  70. package/dist-esm/Interfaces/Contracts/RequestData.js +46 -0
  71. package/dist-esm/Interfaces/Contracts/RequestData.js.map +1 -0
  72. package/dist-esm/Interfaces/Contracts/{Generated/SeverityLevel.js → SeverityLevel.js} +1 -1
  73. package/dist-esm/Interfaces/Contracts/{Generated/SeverityLevel.js.map → SeverityLevel.js.map} +0 -0
  74. package/dist-esm/Interfaces/IAppInsights.js +1 -1
  75. package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
  76. package/dist-esm/Interfaces/IConfig.js +1 -1
  77. package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
  78. package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
  79. package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
  80. package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
  81. package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
  82. package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
  83. package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
  84. package/dist-esm/Interfaces/IPartC.js +1 -1
  85. package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
  86. package/dist-esm/Interfaces/IRequestContext.js +1 -1
  87. package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
  88. package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
  89. package/dist-esm/Interfaces/PartAExtensions.js +2 -2
  90. package/dist-esm/Interfaces/PartAExtensions.js.map +1 -1
  91. package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
  92. package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
  93. package/dist-esm/RequestResponseHeaders.js +1 -1
  94. package/dist-esm/StorageHelperFuncs.js +27 -12
  95. package/dist-esm/StorageHelperFuncs.js.map +1 -1
  96. package/dist-esm/Telemetry/Common/Data.js +6 -11
  97. package/dist-esm/Telemetry/Common/Data.js.map +1 -1
  98. package/dist-esm/Telemetry/Common/DataPoint.js +8 -9
  99. package/dist-esm/Telemetry/Common/DataPoint.js.map +1 -1
  100. package/dist-esm/Telemetry/Common/DataSanitizer.js +8 -8
  101. package/dist-esm/Telemetry/Common/DataSanitizer.js.map +1 -1
  102. package/dist-esm/Telemetry/Common/Envelope.js +12 -12
  103. package/dist-esm/Telemetry/Common/Envelope.js.map +1 -1
  104. package/dist-esm/Telemetry/Event.js +9 -12
  105. package/dist-esm/Telemetry/Event.js.map +1 -1
  106. package/dist-esm/Telemetry/Exception.js +74 -81
  107. package/dist-esm/Telemetry/Exception.js.map +1 -1
  108. package/dist-esm/Telemetry/Metric.js +9 -12
  109. package/dist-esm/Telemetry/Metric.js.map +1 -1
  110. package/dist-esm/Telemetry/PageView.js +12 -15
  111. package/dist-esm/Telemetry/PageView.js.map +1 -1
  112. package/dist-esm/Telemetry/PageViewPerformance.js +16 -19
  113. package/dist-esm/Telemetry/PageViewPerformance.js.map +1 -1
  114. package/dist-esm/Telemetry/RemoteDependencyData.js +17 -20
  115. package/dist-esm/Telemetry/RemoteDependencyData.js.map +1 -1
  116. package/dist-esm/Telemetry/Trace.js +10 -13
  117. package/dist-esm/Telemetry/Trace.js.map +1 -1
  118. package/dist-esm/TelemetryItemCreator.js +1 -1
  119. package/dist-esm/UrlHelperFuncs.js +1 -1
  120. package/dist-esm/Util.js +1 -1
  121. package/dist-esm/applicationinsights-common.js +4 -7
  122. package/dist-esm/applicationinsights-common.js.map +1 -1
  123. package/package.json +3 -3
  124. package/src/Enums.ts +19 -3
  125. package/src/HelperFuncs.ts +7 -5
  126. package/src/Interfaces/Contracts/AvailabilityData.ts +57 -0
  127. package/src/Interfaces/Contracts/{Generated/ContextTagKeys.ts → ContextTagKeys.ts} +0 -0
  128. package/src/Interfaces/Contracts/{Generated/DataPointType.ts → DataPointType.ts} +2 -3
  129. package/src/Interfaces/Contracts/{Generated/DependencyKind.ts → DependencyKind.ts} +2 -3
  130. package/src/Interfaces/Contracts/{Generated/DependencySourceType.ts → DependencySourceType.ts} +2 -3
  131. package/src/Interfaces/Contracts/{Generated/Base.ts → IBase.ts} +2 -7
  132. package/src/Interfaces/Contracts/{Generated/Data.ts → IData.ts} +5 -12
  133. package/src/Interfaces/Contracts/{Generated/DataPoint.ts → IDataPoint.ts} +8 -8
  134. package/src/Interfaces/Contracts/{Generated/Domain.ts → IDomain.ts} +1 -3
  135. package/src/Interfaces/Contracts/IEnvelope.ts +50 -0
  136. package/src/Interfaces/Contracts/{Generated/EventData.ts → IEventData.ts} +7 -10
  137. package/src/Interfaces/Contracts/{Generated/ExceptionData.ts → IExceptionData.ts} +8 -11
  138. package/src/Interfaces/Contracts/{Generated/ExceptionDetails.ts → IExceptionDetails.ts} +9 -10
  139. package/src/Interfaces/Contracts/{Generated/MessageData.ts → IMessageData.ts} +7 -10
  140. package/src/Interfaces/Contracts/{Generated/MetricData.ts → IMetricData.ts} +7 -10
  141. package/{types/Interfaces/Contracts/Generated/PageViewData.d.ts → src/Interfaces/Contracts/IPageViewData.ts} +10 -19
  142. package/src/Interfaces/Contracts/IPageViewPerfData.ts +35 -0
  143. package/src/Interfaces/Contracts/{Generated/RemoteDependencyData.ts → IRemoteDependencyData.ts} +13 -16
  144. package/src/Interfaces/Contracts/{Generated/StackFrame.ts → IStackFrame.ts} +6 -7
  145. package/src/Interfaces/Contracts/RequestData.ts +50 -0
  146. package/src/Interfaces/Contracts/{Generated/SeverityLevel.ts → SeverityLevel.ts} +0 -0
  147. package/src/Interfaces/IExceptionTelemetry.ts +1 -1
  148. package/src/Interfaces/ITraceTelemetry.ts +1 -1
  149. package/src/Interfaces/PartAExtensions.ts +1 -1
  150. package/src/Interfaces/Telemetry/IEnvelope.ts +35 -3
  151. package/src/StorageHelperFuncs.ts +34 -17
  152. package/src/Telemetry/Common/Data.ts +12 -4
  153. package/src/Telemetry/Common/DataPoint.ts +38 -2
  154. package/src/Telemetry/Common/DataSanitizer.ts +13 -13
  155. package/src/Telemetry/Common/Envelope.ts +51 -10
  156. package/src/Telemetry/Event.ts +30 -12
  157. package/src/Telemetry/Exception.ts +179 -80
  158. package/src/Telemetry/Metric.ts +27 -7
  159. package/src/Telemetry/PageView.ts +45 -10
  160. package/src/Telemetry/PageViewPerformance.ts +75 -13
  161. package/src/Telemetry/RemoteDependencyData.ts +70 -15
  162. package/src/Telemetry/Trace.ts +34 -8
  163. package/src/TelemetryItemCreator.ts +1 -1
  164. package/src/applicationinsights-common.ts +7 -7
  165. package/types/Enums.d.ts +13 -2
  166. package/types/Interfaces/Contracts/AvailabilityData.d.ts +0 -0
  167. package/types/Interfaces/Contracts/{Generated/ContextTagKeys.d.ts → ContextTagKeys.d.ts} +0 -0
  168. package/types/Interfaces/Contracts/{Generated/DataPointType.d.ts → DataPointType.d.ts} +1 -1
  169. package/types/Interfaces/Contracts/{Generated/DependencyKind.d.ts → DependencyKind.d.ts} +1 -1
  170. package/types/Interfaces/Contracts/{Generated/DependencySourceType.d.ts → DependencySourceType.d.ts} +1 -1
  171. package/types/Interfaces/Contracts/{Generated/Base.d.ts → IBase.d.ts} +1 -2
  172. package/types/Interfaces/Contracts/{Generated/Data.d.ts → IData.d.ts} +2 -3
  173. package/types/Interfaces/Contracts/{Generated/DataPoint.d.ts → IDataPoint.d.ts} +1 -1
  174. package/types/Interfaces/Contracts/{Generated/Domain.d.ts → IDomain.d.ts} +1 -1
  175. package/types/Interfaces/Contracts/IEnvelope.d.ts +0 -0
  176. package/types/Interfaces/Contracts/{Generated/EventData.d.ts → IEventData.d.ts} +2 -3
  177. package/types/Interfaces/Contracts/{Generated/ExceptionData.d.ts → IExceptionData.d.ts} +4 -5
  178. package/types/Interfaces/Contracts/{Generated/ExceptionDetails.d.ts → IExceptionDetails.d.ts} +3 -3
  179. package/types/Interfaces/Contracts/{Generated/MessageData.d.ts → IMessageData.d.ts} +2 -3
  180. package/types/Interfaces/Contracts/{Generated/MetricData.d.ts → IMetricData.d.ts} +4 -5
  181. package/types/Interfaces/Contracts/IPageViewData.d.ts +18 -0
  182. package/types/Interfaces/Contracts/IPageViewPerfData.d.ts +26 -0
  183. package/types/Interfaces/Contracts/{Generated/RemoteDependencyData.d.ts → IRemoteDependencyData.d.ts} +2 -3
  184. package/types/Interfaces/Contracts/{Generated/StackFrame.d.ts → IStackFrame.d.ts} +1 -1
  185. package/types/Interfaces/Contracts/RequestData.d.ts +0 -0
  186. package/types/Interfaces/Contracts/{Generated/SeverityLevel.d.ts → SeverityLevel.d.ts} +0 -0
  187. package/types/Interfaces/IExceptionTelemetry.d.ts +1 -1
  188. package/types/Interfaces/ITraceTelemetry.d.ts +1 -1
  189. package/types/Interfaces/PartAExtensions.d.ts +1 -1
  190. package/types/Interfaces/Telemetry/IEnvelope.d.ts +24 -0
  191. package/types/StorageHelperFuncs.d.ts +14 -2
  192. package/types/Telemetry/Common/Data.d.ts +10 -2
  193. package/types/Telemetry/Common/DataPoint.d.ts +31 -2
  194. package/types/Telemetry/Common/Envelope.d.ts +35 -4
  195. package/types/Telemetry/Event.d.ts +19 -3
  196. package/types/Telemetry/Exception.d.ts +75 -7
  197. package/types/Telemetry/Metric.d.ts +19 -2
  198. package/types/Telemetry/PageView.d.ts +30 -2
  199. package/types/Telemetry/PageViewPerformance.d.ts +50 -2
  200. package/types/Telemetry/RemoteDependencyData.d.ts +46 -2
  201. package/types/Telemetry/Trace.d.ts +23 -3
  202. package/types/applicationinsights-common.d.ts +7 -7
  203. package/types/tsdoc-metadata.json +1 -1
  204. package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js +0 -27
  205. package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js.map +0 -1
  206. package/dist-esm/Interfaces/Contracts/Generated/Base.js +0 -17
  207. package/dist-esm/Interfaces/Contracts/Generated/Base.js.map +0 -1
  208. package/dist-esm/Interfaces/Contracts/Generated/Data.js +0 -21
  209. package/dist-esm/Interfaces/Contracts/Generated/Data.js.map +0 -1
  210. package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js +0 -21
  211. package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js.map +0 -1
  212. package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js +0 -16
  213. package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js.map +0 -1
  214. package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js +0 -17
  215. package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js.map +0 -1
  216. package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js +0 -17
  217. package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js.map +0 -1
  218. package/dist-esm/Interfaces/Contracts/Generated/Domain.js.map +0 -1
  219. package/dist-esm/Interfaces/Contracts/Generated/Envelope.js +0 -28
  220. package/dist-esm/Interfaces/Contracts/Generated/Envelope.js.map +0 -1
  221. package/dist-esm/Interfaces/Contracts/Generated/EventData.js +0 -28
  222. package/dist-esm/Interfaces/Contracts/Generated/EventData.js.map +0 -1
  223. package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js +0 -32
  224. package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js.map +0 -1
  225. package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js +0 -24
  226. package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js.map +0 -1
  227. package/dist-esm/Interfaces/Contracts/Generated/MessageData.js +0 -28
  228. package/dist-esm/Interfaces/Contracts/Generated/MessageData.js.map +0 -1
  229. package/dist-esm/Interfaces/Contracts/Generated/MetricData.js +0 -32
  230. package/dist-esm/Interfaces/Contracts/Generated/MetricData.js.map +0 -1
  231. package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js +0 -34
  232. package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js.map +0 -1
  233. package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js +0 -34
  234. package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js.map +0 -1
  235. package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js +0 -32
  236. package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js.map +0 -1
  237. package/dist-esm/Interfaces/Contracts/Generated/RequestData.js +0 -28
  238. package/dist-esm/Interfaces/Contracts/Generated/RequestData.js.map +0 -1
  239. package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js +0 -17
  240. package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js.map +0 -1
  241. package/dist-esm/Telemetry/Common/Base.js +0 -22
  242. package/dist-esm/Telemetry/Common/Base.js.map +0 -1
  243. package/src/Interfaces/Contracts/Generated/AvailabilityData.ts +0 -57
  244. package/src/Interfaces/Contracts/Generated/Envelope.ts +0 -50
  245. package/src/Interfaces/Contracts/Generated/PageViewData.ts +0 -50
  246. package/src/Interfaces/Contracts/Generated/PageViewPerfData.ts +0 -70
  247. package/src/Interfaces/Contracts/Generated/RequestData.ts +0 -50
  248. package/src/Telemetry/Common/Base.ts +0 -14
  249. package/types/Interfaces/Contracts/Generated/AvailabilityData.d.ts +0 -42
  250. package/types/Interfaces/Contracts/Generated/Envelope.d.ts +0 -38
  251. package/types/Interfaces/Contracts/Generated/PageViewPerfData.d.ts +0 -51
  252. package/types/Interfaces/Contracts/Generated/RequestData.d.ts +0 -38
  253. package/types/Telemetry/Common/Base.d.ts +0 -8
@@ -1,13 +1,13 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { StackFrame } from "../Interfaces/Contracts/Generated/StackFrame";
5
- import { ExceptionData } from "../Interfaces/Contracts/Generated/ExceptionData";
6
- import { ExceptionDetails } from "../Interfaces/Contracts/Generated/ExceptionDetails";
4
+ import { IStackFrame } from "../Interfaces/Contracts/IStackFrame";
5
+ import { IExceptionData } from "../Interfaces/Contracts/IExceptionData";
6
+ import { IExceptionDetails } from "../Interfaces/Contracts/IExceptionDetails";
7
7
  import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
8
8
  import { dataSanitizeException, dataSanitizeMeasurements, dataSanitizeMessage, dataSanitizeProperties, dataSanitizeString } from "./Common/DataSanitizer";
9
9
  import { FieldType } from "../Enums";
10
- import { SeverityLevel } from "../Interfaces/Contracts/Generated/SeverityLevel";
10
+ import { SeverityLevel } from "../Interfaces/Contracts/SeverityLevel";
11
11
  import { IDiagnosticLogger, isNullOrUndefined, arrMap, isString, strTrim, isArray, isError, arrForEach, isObject, isFunction } from "@microsoft/applicationinsights-core-js";
12
12
  import {
13
13
  IExceptionInternal, IExceptionDetailsInternal, IExceptionStackFrameInternal, IAutoExceptionTelemetry, IStackDetails
@@ -310,7 +310,7 @@ export function _formatErrorCode(errorObj:any) {
310
310
  return "" + (errorObj || "");
311
311
  }
312
312
 
313
- export class Exception extends ExceptionData implements ISerializable {
313
+ export class Exception implements IExceptionData, ISerializable {
314
314
 
315
315
  public static envelopeType = "Microsoft.ApplicationInsights.{0}.Exception";
316
316
  public static dataType = "ExceptionData";
@@ -327,46 +327,82 @@ export class Exception extends ExceptionData implements ISerializable {
327
327
  measurements: FieldType.Default
328
328
  }
329
329
 
330
+ /**
331
+ * Schema version
332
+ */
333
+ public ver: number; /* 2 */
334
+
335
+ /**
336
+ * Exception chain - list of inner exceptions.
337
+ */
338
+ public exceptions: IExceptionDetails[]; /* [] */
339
+
340
+ /**
341
+ * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
342
+ */
343
+ public severityLevel: SeverityLevel;
344
+
345
+ /**
346
+ * Collection of custom properties.
347
+ */
348
+ public properties: any;
349
+
350
+ /**
351
+ * Collection of custom measurements.
352
+ */
353
+ public measurements: any;
354
+
330
355
  /**
331
356
  * Constructs a new instance of the ExceptionTelemetry object
332
357
  */
333
358
  constructor(logger: IDiagnosticLogger, exception: Error | IExceptionInternal | IAutoExceptionTelemetry, properties?: {[key: string]: any}, measurements?: {[key: string]: number}, severityLevel?: SeverityLevel, id?: string) {
334
- super();
335
-
359
+ let _self = this;
360
+ _self.ver = 2; // TODO: handle the CS"4.0" ==> breeze 2 conversion in a better way
336
361
  if (!_isExceptionInternal(exception)) {
337
362
  if (!properties) {
338
363
  properties = { };
339
364
  }
340
365
 
341
- this.exceptions = [new _ExceptionDetails(logger, exception, properties)];
342
- this.properties = dataSanitizeProperties(logger, properties);
343
- this.measurements = dataSanitizeMeasurements(logger, measurements);
344
- if (severityLevel) { this.severityLevel = severityLevel; }
345
- if (id) { this.id = id; }
366
+ _self.exceptions = [new _ExceptionDetails(logger, exception, properties)];
367
+ _self.properties = dataSanitizeProperties(logger, properties);
368
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
369
+ if (severityLevel) {
370
+ _self.severityLevel = severityLevel;
371
+ }
372
+ if (id) {
373
+ _self.id = id;
374
+ }
346
375
  } else {
347
- this.exceptions = exception.exceptions;
348
- this.properties = exception.properties;
349
- this.measurements = exception.measurements;
350
- if (exception.severityLevel) { this.severityLevel = exception.severityLevel; }
351
- if (exception.id) { this.id = exception.id; }
352
- if (exception.problemGroup) { this.problemGroup = exception.problemGroup; }
376
+ _self.exceptions = exception.exceptions || [];
377
+ _self.properties = exception.properties;
378
+ _self.measurements = exception.measurements;
379
+ if (exception.severityLevel) {
380
+ _self.severityLevel = exception.severityLevel;
381
+ }
382
+ if (exception.id) {
383
+ _self.id = exception.id;
384
+ }
385
+ if (exception.problemGroup) {
386
+ _self.problemGroup = exception.problemGroup;
387
+ }
353
388
 
354
389
  // bool/int types, use isNullOrUndefined
355
- this.ver = 2; // TODO: handle the CS"4.0" ==> breeze 2 conversion in a better way
356
- if (!isNullOrUndefined(exception.isManual)) { this.isManual = exception.isManual; }
390
+ if (!isNullOrUndefined(exception.isManual)) {
391
+ _self.isManual = exception.isManual;
392
+ }
357
393
  }
358
394
  }
359
395
 
360
396
  public static CreateAutoException(
361
- message: string | Event,
362
- url: string,
363
- lineNumber: number,
364
- columnNumber: number,
365
- error: any,
366
- evt?: Event|string,
367
- stack?: string,
368
- errorSrc?: string
369
- ): IAutoExceptionTelemetry {
397
+ message: string | Event,
398
+ url: string,
399
+ lineNumber: number,
400
+ columnNumber: number,
401
+ error: any,
402
+ evt?: Event|string,
403
+ stack?: string,
404
+ errorSrc?: string
405
+ ): IAutoExceptionTelemetry {
370
406
 
371
407
  let errorType = _getErrorType(error || evt || message);
372
408
 
@@ -422,7 +458,7 @@ export class Exception extends ExceptionData implements ISerializable {
422
458
  message,
423
459
  stack: details,
424
460
  typeName
425
- } as ExceptionDetails
461
+ } as IExceptionDetails
426
462
  ]
427
463
  } as Exception;
428
464
  }
@@ -430,7 +466,7 @@ export class Exception extends ExceptionData implements ISerializable {
430
466
  public static formatError = _formatErrorCode;
431
467
  }
432
468
 
433
- export class _ExceptionDetails extends ExceptionDetails implements ISerializable {
469
+ export class _ExceptionDetails implements IExceptionDetails, ISerializable {
434
470
 
435
471
  public aiDataContract = {
436
472
  id: FieldType.Default,
@@ -442,9 +478,43 @@ export class _ExceptionDetails extends ExceptionDetails implements ISerializable
442
478
  parsedStack: FieldType.Array
443
479
  };
444
480
 
445
- constructor(logger: IDiagnosticLogger, exception: Error | IExceptionDetailsInternal | IAutoExceptionTelemetry, properties?: {[key: string]: any}) {
446
- super();
481
+ /**
482
+ * In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
483
+ */
484
+ public id: number;
447
485
 
486
+ /**
487
+ * The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
488
+ */
489
+ public outerId: number;
490
+
491
+ /**
492
+ * Exception type name.
493
+ */
494
+ public typeName: string;
495
+
496
+ /**
497
+ * Exception message.
498
+ */
499
+ public message: string;
500
+
501
+ /**
502
+ * Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
503
+ */
504
+ public hasFullStack: boolean;
505
+
506
+ /**
507
+ * Text describing the stack. Either stack or parsedStack should have a value.
508
+ */
509
+ public stack: string;
510
+
511
+ /**
512
+ * List of stack frames. Either stack or parsedStack should have a value.
513
+ */
514
+ public parsedStack: IStackFrame[]; /* [] */
515
+
516
+ constructor(logger: IDiagnosticLogger, exception: Error | IExceptionDetailsInternal | IAutoExceptionTelemetry, properties?: {[key: string]: any}) {
517
+ let _self = this;
448
518
  if (!_isExceptionDetailsInternal(exception)) {
449
519
  let error = exception as any;
450
520
  let evt = error && error.evt;
@@ -452,36 +522,37 @@ export class _ExceptionDetails extends ExceptionDetails implements ISerializable
452
522
  error = error[strError] || evt || error;
453
523
  }
454
524
 
455
- this.typeName = dataSanitizeString(logger, _getErrorType(error)) || strNotSpecified;
456
- this.message = dataSanitizeMessage(logger, _formatMessage(exception || error, this.typeName)) || strNotSpecified;
525
+ _self.typeName = dataSanitizeString(logger, _getErrorType(error)) || strNotSpecified;
526
+ _self.message = dataSanitizeMessage(logger, _formatMessage(exception || error, _self.typeName)) || strNotSpecified;
457
527
  const stack = exception[strStackDetails] || _getStackFromErrorObj(exception);
458
- this.parsedStack = _parseStack(stack);
459
- this[strStack] = dataSanitizeException(logger, _formatStackTrace(stack));
460
- this.hasFullStack = isArray(this.parsedStack) && this.parsedStack.length > 0;
528
+ _self.parsedStack = _parseStack(stack);
529
+ _self[strStack] = dataSanitizeException(logger, _formatStackTrace(stack));
530
+ _self.hasFullStack = isArray(_self.parsedStack) && _self.parsedStack.length > 0;
461
531
 
462
532
  if (properties) {
463
- properties.typeName = properties.typeName || this.typeName;
533
+ properties.typeName = properties.typeName || _self.typeName;
464
534
  }
465
535
  } else {
466
- this.typeName = exception.typeName;
467
- this.message = exception.message;
468
- this[strStack] = exception[strStack];
469
- this.parsedStack = exception.parsedStack
470
- this.hasFullStack = exception.hasFullStack
536
+ _self.typeName = exception.typeName;
537
+ _self.message = exception.message;
538
+ _self[strStack] = exception[strStack];
539
+ _self.parsedStack = exception.parsedStack || [];
540
+ _self.hasFullStack = exception.hasFullStack;
471
541
  }
472
542
  }
473
543
 
474
544
  public toInterface(): IExceptionDetailsInternal {
475
- const parsedStack = this.parsedStack instanceof Array
476
- && arrMap(this.parsedStack, (frame: _StackFrame) => frame.toInterface());
545
+ let _self = this;
546
+ const parsedStack = _self.parsedStack instanceof Array
547
+ && arrMap(_self.parsedStack, (frame: _StackFrame) => frame.toInterface());
477
548
 
478
549
  const exceptionDetailsInterface: IExceptionDetailsInternal = {
479
- id: this.id,
480
- outerId: this.outerId,
481
- typeName: this.typeName,
482
- message: this.message,
483
- hasFullStack: this.hasFullStack,
484
- stack: this[strStack],
550
+ id: _self.id,
551
+ outerId: _self.outerId,
552
+ typeName: _self.typeName,
553
+ message: _self.message,
554
+ hasFullStack: _self.hasFullStack,
555
+ stack: _self[strStack],
485
556
  parsedStack: parsedStack || undefined
486
557
  };
487
558
 
@@ -499,13 +570,14 @@ export class _ExceptionDetails extends ExceptionDetails implements ISerializable
499
570
  }
500
571
  }
501
572
 
502
- export class _StackFrame extends StackFrame implements ISerializable {
573
+ export class _StackFrame implements IStackFrame, ISerializable {
503
574
 
504
575
  // regex to match stack frames from ie/chrome/ff
505
576
  // methodName=$2, fileName=$4, lineNo=$5, column=$6
506
577
  public static regex = /^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/;
507
578
  public static baseSize = 58; // '{"method":"","level":,"assembly":"","fileName":"","line":}'.length
508
- public sizeInBytes = 0;
579
+
580
+ public sizeInBytes: number; /* 0 */
509
581
 
510
582
  public aiDataContract = {
511
583
  level: FieldType.Required,
@@ -515,41 +587,67 @@ export class _StackFrame extends StackFrame implements ISerializable {
515
587
  line: FieldType.Default
516
588
  };
517
589
 
590
+ /**
591
+ * Level in the call stack. For the long stacks SDK may not report every function in a call stack.
592
+ */
593
+ public level: number;
594
+
595
+ /**
596
+ * Method name.
597
+ */
598
+ public method: string;
599
+
600
+ /**
601
+ * Name of the assembly (dll, jar, etc.) containing this function.
602
+ */
603
+ public assembly: string;
604
+
605
+ /**
606
+ * File name or URL of the method implementation.
607
+ */
608
+ public fileName: string;
609
+
610
+ /**
611
+ * Line number of the code implementation.
612
+ */
613
+ public line: number;
614
+
518
615
  constructor(sourceFrame: string | IExceptionStackFrameInternal, level: number) {
519
- super();
616
+ let _self = this;
617
+ _self.sizeInBytes = 0;
520
618
 
521
619
  // Not converting this to isString() as typescript uses this logic to "understand" the different
522
620
  // types for the 2 different code paths
523
621
  if (typeof sourceFrame === "string") {
524
622
  const frame: string = sourceFrame;
525
- this.level = level;
526
- this.method = NoMethod;
527
- this.assembly = strTrim(frame);
528
- this.fileName = "";
529
- this.line = 0;
623
+ _self.level = level;
624
+ _self.method = NoMethod;
625
+ _self.assembly = strTrim(frame);
626
+ _self.fileName = "";
627
+ _self.line = 0;
530
628
  const matches = frame.match(_StackFrame.regex);
531
629
  if (matches && matches.length >= 5) {
532
- this.method = strTrim(matches[2]) || this.method;
533
- this.fileName = strTrim(matches[4]);
534
- this.line = parseInt(matches[5]) || 0;
630
+ _self.method = strTrim(matches[2]) || _self.method;
631
+ _self.fileName = strTrim(matches[4]);
632
+ _self.line = parseInt(matches[5]) || 0;
535
633
  }
536
634
  } else {
537
- this.level = sourceFrame.level;
538
- this.method = sourceFrame.method;
539
- this.assembly = sourceFrame.assembly;
540
- this.fileName = sourceFrame.fileName;
541
- this.line = sourceFrame.line;
542
- this.sizeInBytes = 0;
635
+ _self.level = sourceFrame.level;
636
+ _self.method = sourceFrame.method;
637
+ _self.assembly = sourceFrame.assembly;
638
+ _self.fileName = sourceFrame.fileName;
639
+ _self.line = sourceFrame.line;
640
+ _self.sizeInBytes = 0;
543
641
  }
544
642
 
545
- this.sizeInBytes += this.method.length;
546
- this.sizeInBytes += this.fileName.length;
547
- this.sizeInBytes += this.assembly.length;
643
+ _self.sizeInBytes += _self.method.length;
644
+ _self.sizeInBytes += _self.fileName.length;
645
+ _self.sizeInBytes += _self.assembly.length;
548
646
 
549
647
  // todo: these might need to be removed depending on how the back-end settles on their size calculation
550
- this.sizeInBytes += _StackFrame.baseSize;
551
- this.sizeInBytes += this.level.toString().length;
552
- this.sizeInBytes += this.line.toString().length;
648
+ _self.sizeInBytes += _StackFrame.baseSize;
649
+ _self.sizeInBytes += _self.level.toString().length;
650
+ _self.sizeInBytes += _self.line.toString().length;
553
651
  }
554
652
 
555
653
  public static CreateFromInterface(frame: IExceptionStackFrameInternal) {
@@ -557,12 +655,13 @@ export class _StackFrame extends StackFrame implements ISerializable {
557
655
  }
558
656
 
559
657
  public toInterface() {
658
+ let _self = this;
560
659
  return {
561
- level: this.level,
562
- method: this.method,
563
- assembly: this.assembly,
564
- fileName: this.fileName,
565
- line: this.line
660
+ level: _self.level,
661
+ method: _self.method,
662
+ assembly: _self.assembly,
663
+ fileName: _self.fileName,
664
+ line: _self.line
566
665
  };
567
666
  }
568
667
  }
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { MetricData } from "../Interfaces/Contracts/Generated/MetricData";
4
+ import { IMetricData } from "../Interfaces/Contracts/IMetricData";
5
5
  import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
6
6
  import { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString } from "./Common/DataSanitizer";
7
7
  import { FieldType } from "../Enums";
@@ -9,7 +9,7 @@ import { DataPoint } from "./Common/DataPoint";
9
9
  import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
10
10
  import { strNotSpecified } from "../Constants";
11
11
 
12
- export class Metric extends MetricData implements ISerializable {
12
+ export class Metric implements IMetricData, ISerializable {
13
13
 
14
14
  public static envelopeType = "Microsoft.ApplicationInsights.{0}.Metric";
15
15
  public static dataType = "MetricData";
@@ -20,12 +20,32 @@ export class Metric extends MetricData implements ISerializable {
20
20
  properties: FieldType.Default
21
21
  }
22
22
 
23
+ /**
24
+ * Schema version
25
+ */
26
+ public ver: number; /* 2 */
27
+
28
+ /**
29
+ * 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.
30
+ */
31
+ public metrics: DataPoint[]; /* [] */
32
+
33
+ /**
34
+ * Collection of custom properties.
35
+ */
36
+ properties: any; /* {} */
37
+
38
+ /**
39
+ * Collection of custom measurements.
40
+ */
41
+ measurements: any; /* {} */
42
+
23
43
  /**
24
44
  * Constructs a new instance of the MetricTelemetry object
25
45
  */
26
46
  constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: { [key: string]: number }) {
27
- super();
28
-
47
+ let _self = this;
48
+ _self.ver = 2;
29
49
  const dataPoint = new DataPoint();
30
50
  dataPoint.count = count > 0 ? count : undefined;
31
51
  dataPoint.max = isNaN(max) || max === null ? undefined : max;
@@ -34,8 +54,8 @@ export class Metric extends MetricData implements ISerializable {
34
54
  dataPoint.value = value;
35
55
  dataPoint.stdDev = isNaN(stdDev) || stdDev === null ? undefined : stdDev;
36
56
 
37
- this.metrics = [dataPoint];
38
- this.properties = dataSanitizeProperties(logger, properties);
39
- this.measurements = dataSanitizeMeasurements(logger, measurements);
57
+ _self.metrics = [dataPoint];
58
+ _self.properties = dataSanitizeProperties(logger, properties);
59
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
40
60
  }
41
61
  }
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { PageViewData } from "../Interfaces/Contracts/Generated/PageViewData";
4
+ import { IPageViewData } from "../Interfaces/Contracts/IPageViewData";
5
5
  import { dataSanitizeId, dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from "./Common/DataSanitizer";
6
6
  import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
7
7
  import { FieldType } from "../Enums";
@@ -9,7 +9,7 @@ import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
9
9
  import { msToTimeSpan } from "../HelperFuncs";
10
10
  import { strNotSpecified } from "../Constants";
11
11
 
12
- export class PageView extends PageViewData implements ISerializable {
12
+ export class PageView implements IPageViewData, ISerializable {
13
13
 
14
14
  public static envelopeType = "Microsoft.ApplicationInsights.{0}.Pageview";
15
15
  public static dataType = "PageviewData";
@@ -24,19 +24,54 @@ export class PageView extends PageViewData implements ISerializable {
24
24
  id: FieldType.Default
25
25
  }
26
26
 
27
+ /**
28
+ * Schema version
29
+ */
30
+ public ver: number; // = 2;
31
+
32
+ /**
33
+ * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
34
+ */
35
+ public name: string;
36
+
37
+ /**
38
+ * Collection of custom properties.
39
+ */
40
+ public properties: any; // = {};
41
+
42
+ /**
43
+ * Collection of custom measurements.
44
+ */
45
+ public measurements: any; // = {};
46
+
47
+ /**
48
+ * Request URL with all query string parameters
49
+ */
50
+ public url: string;
51
+
52
+ /**
53
+ * 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.
54
+ */
55
+ public duration: string;
56
+
57
+ /**
58
+ * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
59
+ */
60
+ public id: string;
61
+
27
62
  /**
28
63
  * Constructs a new instance of the PageEventTelemetry object
29
64
  */
30
65
  constructor(logger: IDiagnosticLogger, name?: string, url?: string, durationMs?: number, properties?: {[key: string]: string}, measurements?: {[key: string]: number}, id?: string) {
31
- super();
32
-
33
- this.id = dataSanitizeId(logger, id);
34
- this.url = dataSanitizeUrl(logger, url);
35
- this.name = dataSanitizeString(logger, name) || strNotSpecified;
66
+ let _self = this;
67
+ _self.ver = 2;
68
+ _self.id = dataSanitizeId(logger, id);
69
+ _self.url = dataSanitizeUrl(logger, url);
70
+ _self.name = dataSanitizeString(logger, name) || strNotSpecified;
36
71
  if (!isNaN(durationMs)) {
37
- this.duration = msToTimeSpan(durationMs);
72
+ _self.duration = msToTimeSpan(durationMs);
38
73
  }
39
- this.properties = dataSanitizeProperties(logger, properties);
40
- this.measurements = dataSanitizeMeasurements(logger, measurements);
74
+ _self.properties = dataSanitizeProperties(logger, properties);
75
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
41
76
  }
42
77
  }
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { PageViewPerfData } from "../Interfaces/Contracts/Generated/PageViewPerfData";
4
+ import { IPageViewPerfData } from "../Interfaces/Contracts/IPageViewPerfData";
5
5
  import { FieldType } from "../Enums";
6
6
  import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
7
7
  import { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from "./Common/DataSanitizer";
@@ -10,7 +10,7 @@ import { IPageViewPerformanceTelemetry } from "../Interfaces/IPageViewPerformanc
10
10
  import { strNotSpecified } from "../Constants";
11
11
 
12
12
 
13
- export class PageViewPerformance extends PageViewPerfData implements ISerializable {
13
+ export class PageViewPerformance implements IPageViewPerfData, ISerializable {
14
14
 
15
15
  public static envelopeType = "Microsoft.ApplicationInsights.{0}.PageviewPerformance";
16
16
  public static dataType = "PageviewPerformanceData";
@@ -29,24 +29,86 @@ export class PageViewPerformance extends PageViewPerfData implements ISerializab
29
29
  measurements: FieldType.Default
30
30
  };
31
31
 
32
+ /**
33
+ * Schema version
34
+ */
35
+ public ver: number; // = 2;
36
+
37
+ /**
38
+ * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
39
+ */
40
+ public name: string;
41
+
42
+ /**
43
+ * Collection of custom properties.
44
+ */
45
+ public properties: any; // = {};
46
+
47
+ /**
48
+ * Collection of custom measurements.
49
+ */
50
+ public measurements: any; // = {};
51
+
52
+ /**
53
+ * Request URL with all query string parameters
54
+ */
55
+ public url: string;
56
+
57
+ /**
58
+ * 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.
59
+ */
60
+ public duration: string;
61
+
62
+ /**
63
+ * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
64
+ */
65
+ public id: string;
66
+
67
+ /**
68
+ * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
69
+ */
70
+ public perfTotal: string;
71
+
72
+ /**
73
+ * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
74
+ */
75
+ public networkConnect: string;
76
+
77
+ /**
78
+ * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
79
+ */
80
+ public sentRequest: string;
81
+
82
+ /**
83
+ * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
84
+ */
85
+ public receivedResponse: string;
86
+
87
+ /**
88
+ * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
89
+ */
90
+ public domProcessing: string;
91
+
32
92
  /**
33
93
  * Constructs a new instance of the PageEventTelemetry object
34
94
  */
35
95
  constructor(logger: IDiagnosticLogger, name: string, url: string, unused: number, properties?: { [key: string]: string }, measurements?: { [key: string]: number }, cs4BaseData?: IPageViewPerformanceTelemetry) {
36
- super();
37
- this.url = dataSanitizeUrl(logger, url);
38
- this.name = dataSanitizeString(logger, name) || strNotSpecified;
96
+ let _self = this;
97
+
98
+ _self.ver = 2;
99
+ _self.url = dataSanitizeUrl(logger, url);
100
+ _self.name = dataSanitizeString(logger, name) || strNotSpecified;
39
101
 
40
- this.properties = dataSanitizeProperties(logger, properties);
41
- this.measurements = dataSanitizeMeasurements(logger, measurements);
102
+ _self.properties = dataSanitizeProperties(logger, properties);
103
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
42
104
 
43
105
  if (cs4BaseData) {
44
- this.domProcessing = cs4BaseData.domProcessing;
45
- this.duration = cs4BaseData.duration;
46
- this.networkConnect = cs4BaseData.networkConnect;
47
- this.perfTotal = cs4BaseData.perfTotal;
48
- this.receivedResponse = cs4BaseData.receivedResponse;
49
- this.sentRequest = cs4BaseData.sentRequest;
106
+ _self.domProcessing = cs4BaseData.domProcessing;
107
+ _self.duration = cs4BaseData.duration;
108
+ _self.networkConnect = cs4BaseData.networkConnect;
109
+ _self.perfTotal = cs4BaseData.perfTotal;
110
+ _self.receivedResponse = cs4BaseData.receivedResponse;
111
+ _self.sentRequest = cs4BaseData.sentRequest;
50
112
  }
51
113
  }
52
114
  }