@microsoft/applicationinsights-common 2.8.0-nightly.2202-06 → 2.8.0-nightly.2204-06
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-common.integrity.json +9 -9
- package/browser/applicationinsights-common.js +926 -539
- package/browser/applicationinsights-common.js.map +1 -1
- package/browser/applicationinsights-common.min.js +2 -2
- package/browser/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.api.json +2625 -945
- package/dist/applicationinsights-common.api.md +103 -46
- package/dist/applicationinsights-common.d.ts +520 -286
- package/dist/applicationinsights-common.js +926 -539
- package/dist/applicationinsights-common.js.map +1 -1
- package/dist/applicationinsights-common.min.js +2 -2
- package/dist/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.rollup.d.ts +520 -286
- package/dist-esm/ConnectionStringParser.js +1 -1
- package/dist-esm/Constants.js +1 -1
- package/dist-esm/DomHelperFuncs.js +1 -1
- package/dist-esm/Enums.js +11 -24
- package/dist-esm/Enums.js.map +1 -1
- package/dist-esm/HelperFuncs.js +7 -6
- package/dist-esm/HelperFuncs.js.map +1 -1
- package/dist-esm/Interfaces/ConnectionString.js +1 -1
- package/dist-esm/Interfaces/Context/IApplication.js +1 -1
- package/dist-esm/Interfaces/Context/IDevice.js +1 -1
- package/dist-esm/Interfaces/Context/IInternal.js +1 -1
- package/dist-esm/Interfaces/Context/ILocation.js +1 -1
- package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-esm/Interfaces/Context/ISample.js +1 -1
- package/dist-esm/Interfaces/Context/ISession.js +1 -1
- package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-esm/Interfaces/Context/IUser.js +1 -1
- package/dist-esm/Interfaces/Context/IWeb.js +1 -1
- package/dist-esm/Interfaces/Contracts/AvailabilityData.js +52 -0
- package/dist-esm/Interfaces/Contracts/AvailabilityData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/{Generated/ContextTagKeys.js → ContextTagKeys.js} +1 -1
- package/dist-esm/Interfaces/Contracts/{Generated/ContextTagKeys.js.map → ContextTagKeys.js.map} +0 -0
- package/dist-esm/Interfaces/Contracts/DataPointType.js +8 -0
- package/dist-esm/Interfaces/Contracts/DataPointType.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/DependencyKind.js +8 -0
- package/dist-esm/Interfaces/Contracts/DependencyKind.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js +8 -0
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/{Generated/Domain.js → IBase.js} +2 -2
- package/dist-esm/Interfaces/Contracts/IBase.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IDataPoint.js +6 -0
- package/dist-esm/Interfaces/Contracts/IDataPoint.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IDomain.js +8 -0
- package/dist-esm/Interfaces/Contracts/IDomain.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IEnvelope.js +46 -0
- package/dist-esm/Interfaces/Contracts/IEnvelope.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IEventData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IEventData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IExceptionData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IExceptionData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +8 -0
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IMessageData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IMessageData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IMetricData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IMetricData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IPageViewData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IPageViewData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IStackFrame.js +8 -0
- package/dist-esm/Interfaces/Contracts/IStackFrame.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/RequestData.js +46 -0
- package/dist-esm/Interfaces/Contracts/RequestData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/{Generated/SeverityLevel.js → SeverityLevel.js} +1 -1
- package/dist-esm/Interfaces/Contracts/{Generated/SeverityLevel.js.map → SeverityLevel.js.map} +0 -0
- package/dist-esm/Interfaces/IAppInsights.js +1 -1
- package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
- package/dist-esm/Interfaces/IConfig.js +1 -1
- package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
- package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPartC.js +1 -1
- package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-esm/Interfaces/IRequestContext.js +1 -1
- package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
- package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-esm/Interfaces/PartAExtensions.js +2 -2
- package/dist-esm/Interfaces/PartAExtensions.js.map +1 -1
- package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-esm/RequestResponseHeaders.js +1 -1
- package/dist-esm/StorageHelperFuncs.js +27 -12
- package/dist-esm/StorageHelperFuncs.js.map +1 -1
- package/dist-esm/Telemetry/Common/Data.js +6 -11
- package/dist-esm/Telemetry/Common/Data.js.map +1 -1
- package/dist-esm/Telemetry/Common/DataPoint.js +8 -9
- package/dist-esm/Telemetry/Common/DataPoint.js.map +1 -1
- package/dist-esm/Telemetry/Common/DataSanitizer.js +10 -10
- package/dist-esm/Telemetry/Common/DataSanitizer.js.map +1 -1
- package/dist-esm/Telemetry/Common/Envelope.js +12 -12
- package/dist-esm/Telemetry/Common/Envelope.js.map +1 -1
- package/dist-esm/Telemetry/Event.js +9 -12
- package/dist-esm/Telemetry/Event.js.map +1 -1
- package/dist-esm/Telemetry/Exception.js +74 -81
- package/dist-esm/Telemetry/Exception.js.map +1 -1
- package/dist-esm/Telemetry/Metric.js +9 -12
- package/dist-esm/Telemetry/Metric.js.map +1 -1
- package/dist-esm/Telemetry/PageView.js +12 -15
- package/dist-esm/Telemetry/PageView.js.map +1 -1
- package/dist-esm/Telemetry/PageViewPerformance.js +16 -19
- package/dist-esm/Telemetry/PageViewPerformance.js.map +1 -1
- package/dist-esm/Telemetry/RemoteDependencyData.js +17 -20
- package/dist-esm/Telemetry/RemoteDependencyData.js.map +1 -1
- package/dist-esm/Telemetry/Trace.js +10 -13
- package/dist-esm/Telemetry/Trace.js.map +1 -1
- package/dist-esm/TelemetryItemCreator.js +1 -1
- package/dist-esm/UrlHelperFuncs.js +1 -1
- package/dist-esm/Util.js +1 -1
- package/dist-esm/applicationinsights-common.js +4 -7
- package/dist-esm/applicationinsights-common.js.map +1 -1
- package/package.json +3 -3
- package/src/Enums.ts +19 -3
- package/src/HelperFuncs.ts +7 -5
- package/src/Interfaces/Contracts/AvailabilityData.ts +57 -0
- package/src/Interfaces/Contracts/{Generated/ContextTagKeys.ts → ContextTagKeys.ts} +0 -0
- package/src/Interfaces/Contracts/{Generated/DataPointType.ts → DataPointType.ts} +2 -3
- package/src/Interfaces/Contracts/{Generated/DependencyKind.ts → DependencyKind.ts} +2 -3
- package/src/Interfaces/Contracts/{Generated/DependencySourceType.ts → DependencySourceType.ts} +2 -3
- package/src/Interfaces/Contracts/{Generated/Base.ts → IBase.ts} +2 -7
- package/src/Interfaces/Contracts/{Generated/Data.ts → IData.ts} +5 -12
- package/src/Interfaces/Contracts/{Generated/DataPoint.ts → IDataPoint.ts} +8 -8
- package/src/Interfaces/Contracts/{Generated/Domain.ts → IDomain.ts} +1 -3
- package/src/Interfaces/Contracts/IEnvelope.ts +50 -0
- package/src/Interfaces/Contracts/{Generated/EventData.ts → IEventData.ts} +7 -10
- package/src/Interfaces/Contracts/{Generated/ExceptionData.ts → IExceptionData.ts} +8 -11
- package/src/Interfaces/Contracts/{Generated/ExceptionDetails.ts → IExceptionDetails.ts} +9 -10
- package/src/Interfaces/Contracts/{Generated/MessageData.ts → IMessageData.ts} +7 -10
- package/src/Interfaces/Contracts/{Generated/MetricData.ts → IMetricData.ts} +7 -10
- package/{types/Interfaces/Contracts/Generated/PageViewData.d.ts → src/Interfaces/Contracts/IPageViewData.ts} +10 -19
- package/src/Interfaces/Contracts/IPageViewPerfData.ts +35 -0
- package/src/Interfaces/Contracts/{Generated/RemoteDependencyData.ts → IRemoteDependencyData.ts} +13 -16
- package/src/Interfaces/Contracts/{Generated/StackFrame.ts → IStackFrame.ts} +6 -7
- package/src/Interfaces/Contracts/RequestData.ts +50 -0
- package/src/Interfaces/Contracts/{Generated/SeverityLevel.ts → SeverityLevel.ts} +0 -0
- package/src/Interfaces/IExceptionTelemetry.ts +1 -1
- package/src/Interfaces/ITraceTelemetry.ts +1 -1
- package/src/Interfaces/PartAExtensions.ts +1 -1
- package/src/Interfaces/Telemetry/IEnvelope.ts +35 -3
- package/src/StorageHelperFuncs.ts +40 -23
- package/src/Telemetry/Common/Data.ts +12 -4
- package/src/Telemetry/Common/DataPoint.ts +38 -2
- package/src/Telemetry/Common/DataSanitizer.ts +19 -19
- package/src/Telemetry/Common/Envelope.ts +51 -10
- package/src/Telemetry/Event.ts +30 -12
- package/src/Telemetry/Exception.ts +179 -80
- package/src/Telemetry/Metric.ts +27 -7
- package/src/Telemetry/PageView.ts +45 -10
- package/src/Telemetry/PageViewPerformance.ts +76 -14
- package/src/Telemetry/RemoteDependencyData.ts +70 -15
- package/src/Telemetry/Trace.ts +34 -8
- package/src/TelemetryItemCreator.ts +1 -1
- package/src/applicationinsights-common.ts +7 -7
- package/types/Enums.d.ts +13 -2
- package/types/Interfaces/Contracts/AvailabilityData.d.ts +0 -0
- package/types/Interfaces/Contracts/{Generated/ContextTagKeys.d.ts → ContextTagKeys.d.ts} +0 -0
- package/types/Interfaces/Contracts/{Generated/DataPointType.d.ts → DataPointType.d.ts} +1 -1
- package/types/Interfaces/Contracts/{Generated/DependencyKind.d.ts → DependencyKind.d.ts} +1 -1
- package/types/Interfaces/Contracts/{Generated/DependencySourceType.d.ts → DependencySourceType.d.ts} +1 -1
- package/types/Interfaces/Contracts/{Generated/Base.d.ts → IBase.d.ts} +1 -2
- package/types/Interfaces/Contracts/{Generated/Data.d.ts → IData.d.ts} +2 -3
- package/types/Interfaces/Contracts/{Generated/DataPoint.d.ts → IDataPoint.d.ts} +1 -1
- package/types/Interfaces/Contracts/{Generated/Domain.d.ts → IDomain.d.ts} +1 -1
- package/types/Interfaces/Contracts/IEnvelope.d.ts +0 -0
- package/types/Interfaces/Contracts/{Generated/EventData.d.ts → IEventData.d.ts} +2 -3
- package/types/Interfaces/Contracts/{Generated/ExceptionData.d.ts → IExceptionData.d.ts} +4 -5
- package/types/Interfaces/Contracts/{Generated/ExceptionDetails.d.ts → IExceptionDetails.d.ts} +3 -3
- package/types/Interfaces/Contracts/{Generated/MessageData.d.ts → IMessageData.d.ts} +2 -3
- package/types/Interfaces/Contracts/{Generated/MetricData.d.ts → IMetricData.d.ts} +4 -5
- package/types/Interfaces/Contracts/IPageViewData.d.ts +18 -0
- package/types/Interfaces/Contracts/IPageViewPerfData.d.ts +26 -0
- package/types/Interfaces/Contracts/{Generated/RemoteDependencyData.d.ts → IRemoteDependencyData.d.ts} +2 -3
- package/types/Interfaces/Contracts/{Generated/StackFrame.d.ts → IStackFrame.d.ts} +1 -1
- package/types/Interfaces/Contracts/RequestData.d.ts +0 -0
- package/types/Interfaces/Contracts/{Generated/SeverityLevel.d.ts → SeverityLevel.d.ts} +0 -0
- package/types/Interfaces/IExceptionTelemetry.d.ts +1 -1
- package/types/Interfaces/ITraceTelemetry.d.ts +1 -1
- package/types/Interfaces/PartAExtensions.d.ts +1 -1
- package/types/Interfaces/Telemetry/IEnvelope.d.ts +24 -0
- package/types/StorageHelperFuncs.d.ts +14 -2
- package/types/Telemetry/Common/Data.d.ts +10 -2
- package/types/Telemetry/Common/DataPoint.d.ts +31 -2
- package/types/Telemetry/Common/DataSanitizer.d.ts +3 -3
- package/types/Telemetry/Common/Envelope.d.ts +35 -4
- package/types/Telemetry/Event.d.ts +19 -3
- package/types/Telemetry/Exception.d.ts +75 -7
- package/types/Telemetry/Metric.d.ts +19 -2
- package/types/Telemetry/PageView.d.ts +30 -2
- package/types/Telemetry/PageViewPerformance.d.ts +50 -2
- package/types/Telemetry/RemoteDependencyData.d.ts +46 -2
- package/types/Telemetry/Trace.d.ts +23 -3
- package/types/applicationinsights-common.d.ts +7 -7
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js +0 -27
- package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/Base.js +0 -17
- package/dist-esm/Interfaces/Contracts/Generated/Base.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/Data.js +0 -21
- package/dist-esm/Interfaces/Contracts/Generated/Data.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js +0 -21
- package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js +0 -16
- package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js +0 -17
- package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js +0 -17
- package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/Domain.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/Envelope.js +0 -28
- package/dist-esm/Interfaces/Contracts/Generated/Envelope.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/EventData.js +0 -28
- package/dist-esm/Interfaces/Contracts/Generated/EventData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js +0 -32
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js +0 -24
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/MessageData.js +0 -28
- package/dist-esm/Interfaces/Contracts/Generated/MessageData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/MetricData.js +0 -32
- package/dist-esm/Interfaces/Contracts/Generated/MetricData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js +0 -34
- package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js +0 -34
- package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js +0 -32
- package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/RequestData.js +0 -28
- package/dist-esm/Interfaces/Contracts/Generated/RequestData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js +0 -17
- package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js.map +0 -1
- package/dist-esm/Telemetry/Common/Base.js +0 -22
- package/dist-esm/Telemetry/Common/Base.js.map +0 -1
- package/src/Interfaces/Contracts/Generated/AvailabilityData.ts +0 -57
- package/src/Interfaces/Contracts/Generated/Envelope.ts +0 -50
- package/src/Interfaces/Contracts/Generated/PageViewData.ts +0 -50
- package/src/Interfaces/Contracts/Generated/PageViewPerfData.ts +0 -70
- package/src/Interfaces/Contracts/Generated/RequestData.ts +0 -50
- package/src/Telemetry/Common/Base.ts +0 -14
- package/types/Interfaces/Contracts/Generated/AvailabilityData.d.ts +0 -42
- package/types/Interfaces/Contracts/Generated/Envelope.d.ts +0 -38
- package/types/Interfaces/Contracts/Generated/PageViewPerfData.d.ts +0 -51
- package/types/Interfaces/Contracts/Generated/RequestData.d.ts +0 -38
- package/types/Telemetry/Common/Base.d.ts +0 -8
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.2204-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
import { __extendsFn as __extends } from "@microsoft/applicationinsights-shims";
|
|
8
|
-
import { PageViewPerfData } from "../Interfaces/Contracts/Generated/PageViewPerfData";
|
|
9
7
|
import { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from "./Common/DataSanitizer";
|
|
10
8
|
import { strNotSpecified } from "../Constants";
|
|
11
|
-
var PageViewPerformance = /** @class */ (function (
|
|
12
|
-
__extends(PageViewPerformance, _super);
|
|
9
|
+
var PageViewPerformance = /** @class */ (function () {
|
|
13
10
|
/**
|
|
14
11
|
* Constructs a new instance of the PageEventTelemetry object
|
|
15
12
|
*/
|
|
16
13
|
function PageViewPerformance(logger, name, url, unused, properties, measurements, cs4BaseData) {
|
|
17
|
-
|
|
18
|
-
_this.aiDataContract = {
|
|
14
|
+
this.aiDataContract = {
|
|
19
15
|
ver: 1 /* Required */,
|
|
20
16
|
name: 0 /* Default */,
|
|
21
17
|
url: 0 /* Default */,
|
|
@@ -28,23 +24,24 @@ var PageViewPerformance = /** @class */ (function (_super) {
|
|
|
28
24
|
properties: 0 /* Default */,
|
|
29
25
|
measurements: 0 /* Default */
|
|
30
26
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
var _self = this;
|
|
28
|
+
_self.ver = 2;
|
|
29
|
+
_self.url = dataSanitizeUrl(logger, url);
|
|
30
|
+
_self.name = dataSanitizeString(logger, name) || strNotSpecified;
|
|
31
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
32
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
35
33
|
if (cs4BaseData) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
_self.domProcessing = cs4BaseData.domProcessing;
|
|
35
|
+
_self.duration = cs4BaseData.duration;
|
|
36
|
+
_self.networkConnect = cs4BaseData.networkConnect;
|
|
37
|
+
_self.perfTotal = cs4BaseData.perfTotal;
|
|
38
|
+
_self.receivedResponse = cs4BaseData.receivedResponse;
|
|
39
|
+
_self.sentRequest = cs4BaseData.sentRequest;
|
|
42
40
|
}
|
|
43
|
-
return _this;
|
|
44
41
|
}
|
|
45
42
|
PageViewPerformance.envelopeType = "Microsoft.ApplicationInsights.{0}.PageviewPerformance";
|
|
46
43
|
PageViewPerformance.dataType = "PageviewPerformanceData";
|
|
47
44
|
return PageViewPerformance;
|
|
48
|
-
}(
|
|
45
|
+
}());
|
|
49
46
|
export { PageViewPerformance };
|
|
50
47
|
//# sourceMappingURL=PageViewPerformance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageViewPerformance.js.map","sources":["PageViewPerformance.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport {
|
|
1
|
+
{"version":3,"file":"PageViewPerformance.js.map","sources":["PageViewPerformance.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from \"./Common/DataSanitizer\";\r\nimport { strNotSpecified } from \"../Constants\";\r\nvar PageViewPerformance = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the PageEventTelemetry object\r\n */\r\n function PageViewPerformance(logger, name, url, unused, properties, measurements, cs4BaseData) {\r\n this.aiDataContract = {\r\n ver: 1 /* Required */,\r\n name: 0 /* Default */,\r\n url: 0 /* Default */,\r\n duration: 0 /* Default */,\r\n perfTotal: 0 /* Default */,\r\n networkConnect: 0 /* Default */,\r\n sentRequest: 0 /* Default */,\r\n receivedResponse: 0 /* Default */,\r\n domProcessing: 0 /* Default */,\r\n properties: 0 /* Default */,\r\n measurements: 0 /* Default */\r\n };\r\n var _self = this;\r\n _self.ver = 2;\r\n _self.url = dataSanitizeUrl(logger, url);\r\n _self.name = dataSanitizeString(logger, name) || strNotSpecified;\r\n _self.properties = dataSanitizeProperties(logger, properties);\r\n _self.measurements = dataSanitizeMeasurements(logger, measurements);\r\n if (cs4BaseData) {\r\n _self.domProcessing = cs4BaseData.domProcessing;\r\n _self.duration = cs4BaseData.duration;\r\n _self.networkConnect = cs4BaseData.networkConnect;\r\n _self.perfTotal = cs4BaseData.perfTotal;\r\n _self.receivedResponse = cs4BaseData.receivedResponse;\r\n _self.sentRequest = cs4BaseData.sentRequest;\r\n }\r\n }\r\n PageViewPerformance.envelopeType = \"Microsoft.ApplicationInsights.{0}.PageviewPerformance\";\r\n PageViewPerformance.dataType = \"PageviewPerformanceData\";\r\n return PageViewPerformance;\r\n}());\r\nexport { PageViewPerformance };\r\n//# sourceMappingURL=PageViewPerformance.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.2204-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
import { __extendsFn as __extends } from "@microsoft/applicationinsights-shims";
|
|
8
7
|
import { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from "./Common/DataSanitizer";
|
|
9
8
|
import { AjaxHelperParseDependencyPath } from "../Util";
|
|
10
|
-
import { RemoteDependencyData as GeneratedRemoteDependencyData } from "../Interfaces/Contracts/Generated/RemoteDependencyData";
|
|
11
9
|
import { msToTimeSpan } from "../HelperFuncs";
|
|
12
|
-
var RemoteDependencyData = /** @class */ (function (
|
|
13
|
-
__extends(RemoteDependencyData, _super);
|
|
10
|
+
var RemoteDependencyData = /** @class */ (function () {
|
|
14
11
|
/**
|
|
15
12
|
* Constructs a new instance of the RemoteDependencyData object
|
|
16
13
|
*/
|
|
17
14
|
function RemoteDependencyData(logger, id, absoluteUrl, commandName, value, success, resultCode, method, requestAPI, correlationContext, properties, measurements) {
|
|
18
15
|
if (requestAPI === void 0) { requestAPI = "Ajax"; }
|
|
19
|
-
|
|
20
|
-
_this.aiDataContract = {
|
|
16
|
+
this.aiDataContract = {
|
|
21
17
|
id: 1 /* Required */,
|
|
22
18
|
ver: 1 /* Required */,
|
|
23
19
|
name: 0 /* Default */,
|
|
@@ -40,25 +36,26 @@ var RemoteDependencyData = /** @class */ (function (_super) {
|
|
|
40
36
|
commandName: 0 /* Default */,
|
|
41
37
|
dependencyTypeName: 0 /* Default */
|
|
42
38
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
var _self = this;
|
|
40
|
+
_self.ver = 2;
|
|
41
|
+
_self.id = id;
|
|
42
|
+
_self.duration = msToTimeSpan(value);
|
|
43
|
+
_self.success = success;
|
|
44
|
+
_self.resultCode = resultCode + "";
|
|
45
|
+
_self.type = dataSanitizeString(logger, requestAPI);
|
|
48
46
|
var dependencyFields = AjaxHelperParseDependencyPath(logger, absoluteUrl, method, commandName);
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
_self.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data; // get a value from hosturl if commandName not available
|
|
48
|
+
_self.target = dataSanitizeString(logger, dependencyFields.target);
|
|
51
49
|
if (correlationContext) {
|
|
52
|
-
|
|
50
|
+
_self.target = "".concat(_self.target, " | ").concat(correlationContext);
|
|
53
51
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return _this;
|
|
52
|
+
_self.name = dataSanitizeString(logger, dependencyFields.name);
|
|
53
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
54
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
58
55
|
}
|
|
59
56
|
RemoteDependencyData.envelopeType = "Microsoft.ApplicationInsights.{0}.RemoteDependency";
|
|
60
57
|
RemoteDependencyData.dataType = "RemoteDependencyData";
|
|
61
58
|
return RemoteDependencyData;
|
|
62
|
-
}(
|
|
59
|
+
}());
|
|
63
60
|
export { RemoteDependencyData };
|
|
64
61
|
//# sourceMappingURL=RemoteDependencyData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteDependencyData.js.map","sources":["RemoteDependencyData.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport {
|
|
1
|
+
{"version":3,"file":"RemoteDependencyData.js.map","sources":["RemoteDependencyData.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from \"./Common/DataSanitizer\";\r\nimport { AjaxHelperParseDependencyPath } from \"../Util\";\r\nimport { msToTimeSpan } from \"../HelperFuncs\";\r\nvar RemoteDependencyData = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the RemoteDependencyData object\r\n */\r\n function RemoteDependencyData(logger, id, absoluteUrl, commandName, value, success, resultCode, method, requestAPI, correlationContext, properties, measurements) {\r\n if (requestAPI === void 0) { requestAPI = \"Ajax\"; }\r\n this.aiDataContract = {\r\n id: 1 /* Required */,\r\n ver: 1 /* Required */,\r\n name: 0 /* Default */,\r\n resultCode: 0 /* Default */,\r\n duration: 0 /* Default */,\r\n success: 0 /* Default */,\r\n data: 0 /* Default */,\r\n target: 0 /* Default */,\r\n type: 0 /* Default */,\r\n properties: 0 /* Default */,\r\n measurements: 0 /* Default */,\r\n kind: 0 /* Default */,\r\n value: 0 /* Default */,\r\n count: 0 /* Default */,\r\n min: 0 /* Default */,\r\n max: 0 /* Default */,\r\n stdDev: 0 /* Default */,\r\n dependencyKind: 0 /* Default */,\r\n dependencySource: 0 /* Default */,\r\n commandName: 0 /* Default */,\r\n dependencyTypeName: 0 /* Default */\r\n };\r\n var _self = this;\r\n _self.ver = 2;\r\n _self.id = id;\r\n _self.duration = msToTimeSpan(value);\r\n _self.success = success;\r\n _self.resultCode = resultCode + \"\";\r\n _self.type = dataSanitizeString(logger, requestAPI);\r\n var dependencyFields = AjaxHelperParseDependencyPath(logger, absoluteUrl, method, commandName);\r\n _self.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data; // get a value from hosturl if commandName not available\r\n _self.target = dataSanitizeString(logger, dependencyFields.target);\r\n if (correlationContext) {\r\n _self.target = \"\".concat(_self.target, \" | \").concat(correlationContext);\r\n }\r\n _self.name = dataSanitizeString(logger, dependencyFields.name);\r\n _self.properties = dataSanitizeProperties(logger, properties);\r\n _self.measurements = dataSanitizeMeasurements(logger, measurements);\r\n }\r\n RemoteDependencyData.envelopeType = \"Microsoft.ApplicationInsights.{0}.RemoteDependency\";\r\n RemoteDependencyData.dataType = \"RemoteDependencyData\";\r\n return RemoteDependencyData;\r\n}());\r\nexport { RemoteDependencyData };\r\n//# sourceMappingURL=RemoteDependencyData.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
@@ -1,38 +1,35 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.2204-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
import { __extendsFn as __extends } from "@microsoft/applicationinsights-shims";
|
|
8
|
-
import { MessageData } from "../Interfaces/Contracts/Generated/MessageData";
|
|
9
7
|
import { dataSanitizeMessage, dataSanitizeProperties, dataSanitizeMeasurements } from "./Common/DataSanitizer";
|
|
10
8
|
import { strNotSpecified } from "../Constants";
|
|
11
|
-
var Trace = /** @class */ (function (
|
|
12
|
-
__extends(Trace, _super);
|
|
9
|
+
var Trace = /** @class */ (function () {
|
|
13
10
|
/**
|
|
14
11
|
* Constructs a new instance of the TraceTelemetry object
|
|
15
12
|
*/
|
|
16
13
|
function Trace(logger, message, severityLevel, properties, measurements) {
|
|
17
|
-
|
|
18
|
-
_this.aiDataContract = {
|
|
14
|
+
this.aiDataContract = {
|
|
19
15
|
ver: 1 /* Required */,
|
|
20
16
|
message: 1 /* Required */,
|
|
21
17
|
severityLevel: 0 /* Default */,
|
|
22
18
|
properties: 0 /* Default */
|
|
23
19
|
};
|
|
20
|
+
var _self = this;
|
|
21
|
+
_self.ver = 2;
|
|
24
22
|
message = message || strNotSpecified;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
_self.message = dataSanitizeMessage(logger, message);
|
|
24
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
25
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
28
26
|
if (severityLevel) {
|
|
29
|
-
|
|
27
|
+
_self.severityLevel = severityLevel;
|
|
30
28
|
}
|
|
31
|
-
return _this;
|
|
32
29
|
}
|
|
33
30
|
Trace.envelopeType = "Microsoft.ApplicationInsights.{0}.Message";
|
|
34
31
|
Trace.dataType = "MessageData";
|
|
35
32
|
return Trace;
|
|
36
|
-
}(
|
|
33
|
+
}());
|
|
37
34
|
export { Trace };
|
|
38
35
|
//# sourceMappingURL=Trace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Trace.js.map","sources":["Trace.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport {
|
|
1
|
+
{"version":3,"file":"Trace.js.map","sources":["Trace.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { dataSanitizeMessage, dataSanitizeProperties, dataSanitizeMeasurements } from \"./Common/DataSanitizer\";\r\nimport { strNotSpecified } from \"../Constants\";\r\nvar Trace = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the TraceTelemetry object\r\n */\r\n function Trace(logger, message, severityLevel, properties, measurements) {\r\n this.aiDataContract = {\r\n ver: 1 /* Required */,\r\n message: 1 /* Required */,\r\n severityLevel: 0 /* Default */,\r\n properties: 0 /* Default */\r\n };\r\n var _self = this;\r\n _self.ver = 2;\r\n message = message || strNotSpecified;\r\n _self.message = dataSanitizeMessage(logger, message);\r\n _self.properties = dataSanitizeProperties(logger, properties);\r\n _self.measurements = dataSanitizeMeasurements(logger, measurements);\r\n if (severityLevel) {\r\n _self.severityLevel = severityLevel;\r\n }\r\n }\r\n Trace.envelopeType = \"Microsoft.ApplicationInsights.{0}.Message\";\r\n Trace.dataType = \"MessageData\";\r\n return Trace;\r\n}());\r\nexport { Trace };\r\n//# sourceMappingURL=Trace.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/dist-esm/Util.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.2204-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,21 +8,18 @@ export { Util, CorrelationIdHelper, DateTimeUtils, dateTimeUtilsNow, dateTimeUti
|
|
|
8
8
|
export { parseConnectionString, ConnectionStringParser } from "./ConnectionStringParser";
|
|
9
9
|
export { RequestHeaders } from "./RequestResponseHeaders";
|
|
10
10
|
export { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, strNotSpecified } from "./Constants";
|
|
11
|
-
export { Data as AIData } from "./Interfaces/Contracts/Generated/Data";
|
|
12
|
-
export { Base as AIBase } from "./Interfaces/Contracts/Generated/Base";
|
|
13
11
|
export { Envelope } from "./Telemetry/Common/Envelope";
|
|
14
12
|
export { Event } from "./Telemetry/Event";
|
|
15
13
|
export { Exception } from "./Telemetry/Exception";
|
|
16
14
|
export { Metric } from "./Telemetry/Metric";
|
|
17
15
|
export { PageView } from "./Telemetry/PageView";
|
|
18
|
-
export { PageViewData } from "./Interfaces/Contracts/Generated/PageViewData";
|
|
19
16
|
export { RemoteDependencyData } from "./Telemetry/RemoteDependencyData";
|
|
20
17
|
export { Trace } from "./Telemetry/Trace";
|
|
21
18
|
export { PageViewPerformance } from "./Telemetry/PageViewPerformance";
|
|
22
19
|
export { Data } from "./Telemetry/Common/Data";
|
|
23
|
-
export { SeverityLevel } from "./Interfaces/Contracts/
|
|
20
|
+
export { SeverityLevel } from "./Interfaces/Contracts/SeverityLevel";
|
|
24
21
|
export { ConfigurationManager } from "./Interfaces/IConfig";
|
|
25
|
-
export { ContextTagKeys } from "./Interfaces/Contracts/
|
|
22
|
+
export { ContextTagKeys } from "./Interfaces/Contracts/ContextTagKeys";
|
|
26
23
|
export { DataSanitizer, dataSanitizeKeyAndAddUniqueness, dataSanitizeKey, dataSanitizeString, dataSanitizeUrl, dataSanitizeMessage, dataSanitizeException, dataSanitizeProperties, dataSanitizeMeasurements, dataSanitizeId, dataSanitizeInput, dsPadNumber } from "./Telemetry/Common/DataSanitizer";
|
|
27
24
|
export { TelemetryItemCreator } from "./TelemetryItemCreator";
|
|
28
25
|
export { CtxTagKeys, Extensions } from "./Interfaces/PartAExtensions";
|
|
@@ -30,7 +27,7 @@ export { DistributedTracingModes } from "./Enums";
|
|
|
30
27
|
export { stringToBoolOrDefault, msToTimeSpan, getExtensionByName, isCrossOriginError } from "./HelperFuncs";
|
|
31
28
|
export { isBeaconsSupported as isBeaconApiSupported } from "@microsoft/applicationinsights-core-js";
|
|
32
29
|
export { createDomEvent } from "./DomHelperFuncs";
|
|
33
|
-
export { utlDisableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage, utlCanUseSessionStorage, utlGetSessionStorageKeys, utlGetSessionStorage, utlSetSessionStorage, utlRemoveSessionStorage } from "./StorageHelperFuncs";
|
|
30
|
+
export { utlDisableStorage, utlEnableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage, utlCanUseSessionStorage, utlGetSessionStorageKeys, utlGetSessionStorage, utlSetSessionStorage, utlRemoveSessionStorage } from "./StorageHelperFuncs";
|
|
34
31
|
export { urlParseUrl, urlGetAbsoluteUrl, urlGetPathName, urlGetCompleteUrl, urlParseHost, urlParseFullHost } from "./UrlHelperFuncs";
|
|
35
32
|
export var PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
|
|
36
33
|
export var BreezeChannelIdentifier = "AppInsightsChannelPlugin";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationinsights-common.js.map","sources":["applicationinsights-common.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the\r\nexport { Util, CorrelationIdHelper, DateTimeUtils, dateTimeUtilsNow, dateTimeUtilsDuration, UrlHelper, isInternalApplicationInsightsEndpoint } from \"./Util\";\r\nexport { parseConnectionString, ConnectionStringParser } from \"./ConnectionStringParser\";\r\nexport { RequestHeaders } from \"./RequestResponseHeaders\";\r\nexport { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, strNotSpecified } from \"./Constants\";\r\nexport {
|
|
1
|
+
{"version":3,"file":"applicationinsights-common.js.map","sources":["applicationinsights-common.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the\r\nexport { Util, CorrelationIdHelper, DateTimeUtils, dateTimeUtilsNow, dateTimeUtilsDuration, UrlHelper, isInternalApplicationInsightsEndpoint } from \"./Util\";\r\nexport { parseConnectionString, ConnectionStringParser } from \"./ConnectionStringParser\";\r\nexport { RequestHeaders } from \"./RequestResponseHeaders\";\r\nexport { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, strNotSpecified } from \"./Constants\";\r\nexport { Envelope } from \"./Telemetry/Common/Envelope\";\r\nexport { Event } from \"./Telemetry/Event\";\r\nexport { Exception } from \"./Telemetry/Exception\";\r\nexport { Metric } from \"./Telemetry/Metric\";\r\nexport { PageView } from \"./Telemetry/PageView\";\r\nexport { RemoteDependencyData } from \"./Telemetry/RemoteDependencyData\";\r\nexport { Trace } from \"./Telemetry/Trace\";\r\nexport { PageViewPerformance } from \"./Telemetry/PageViewPerformance\";\r\nexport { Data } from \"./Telemetry/Common/Data\";\r\nexport { SeverityLevel } from \"./Interfaces/Contracts/SeverityLevel\";\r\nexport { ConfigurationManager } from \"./Interfaces/IConfig\";\r\nexport { ContextTagKeys } from \"./Interfaces/Contracts/ContextTagKeys\";\r\nexport { DataSanitizer, dataSanitizeKeyAndAddUniqueness, dataSanitizeKey, dataSanitizeString, dataSanitizeUrl, dataSanitizeMessage, dataSanitizeException, dataSanitizeProperties, dataSanitizeMeasurements, dataSanitizeId, dataSanitizeInput, dsPadNumber } from \"./Telemetry/Common/DataSanitizer\";\r\nexport { TelemetryItemCreator } from \"./TelemetryItemCreator\";\r\nexport { CtxTagKeys, Extensions } from \"./Interfaces/PartAExtensions\";\r\nexport { DistributedTracingModes } from \"./Enums\";\r\nexport { stringToBoolOrDefault, msToTimeSpan, getExtensionByName, isCrossOriginError } from \"./HelperFuncs\";\r\nexport { isBeaconsSupported as isBeaconApiSupported } from \"@microsoft/applicationinsights-core-js\";\r\nexport { createDomEvent } from \"./DomHelperFuncs\";\r\nexport { utlDisableStorage, utlEnableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage, utlCanUseSessionStorage, utlGetSessionStorageKeys, utlGetSessionStorage, utlSetSessionStorage, utlRemoveSessionStorage } from \"./StorageHelperFuncs\";\r\nexport { urlParseUrl, urlGetAbsoluteUrl, urlGetPathName, urlGetCompleteUrl, urlParseHost, urlParseFullHost } from \"./UrlHelperFuncs\";\r\nexport var PropertiesPluginIdentifier = \"AppInsightsPropertiesPlugin\";\r\nexport var BreezeChannelIdentifier = \"AppInsightsChannelPlugin\";\r\nexport var AnalyticsPluginIdentifier = \"ApplicationInsightsAnalytics\";\r\n//# sourceMappingURL=applicationinsights-common.js.map"],"names":[],"mappings":";;;;AAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-common",
|
|
3
|
-
"version": "2.8.0-nightly.
|
|
3
|
+
"version": "2.8.0-nightly.2204-06",
|
|
4
4
|
"description": "Microsoft Application Insights Common JavaScript Library",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
36
36
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
37
37
|
"@rollup/plugin-replace": "^2.3.3",
|
|
38
|
-
"rollup-plugin-cleanup": "3.2.1",
|
|
38
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
39
39
|
"rollup": "^2.32.0",
|
|
40
40
|
"typescript": "^4.3.4",
|
|
41
41
|
"tslib": "^2.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@microsoft/applicationinsights-shims": "2.0.1",
|
|
50
|
-
"@microsoft/applicationinsights-core-js": "2.8.0-nightly.
|
|
50
|
+
"@microsoft/applicationinsights-core-js": "2.8.0-nightly.2204-06",
|
|
51
51
|
"@microsoft/dynamicproto-js": "^1.1.4"
|
|
52
52
|
},
|
|
53
53
|
"license": "MIT",
|
package/src/Enums.ts
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
|
+
import { createEnumStyle } from "@microsoft/applicationinsights-core-js";
|
|
5
|
+
|
|
4
6
|
/**
|
|
5
7
|
* Type of storage to differentiate between local storage and session storage
|
|
6
8
|
*/
|
|
7
|
-
export enum
|
|
9
|
+
export const enum eStorageType {
|
|
8
10
|
LocalStorage,
|
|
9
11
|
SessionStorage
|
|
10
12
|
}
|
|
11
13
|
|
|
14
|
+
export const StorageType = createEnumStyle<{ [key in (keyof typeof eStorageType)]: number; }>({
|
|
15
|
+
LocalStorage: eStorageType.LocalStorage,
|
|
16
|
+
SessionStorage: eStorageType.SessionStorage
|
|
17
|
+
});
|
|
18
|
+
export type StorageType = eStorageType | typeof StorageType;
|
|
19
|
+
|
|
20
|
+
|
|
12
21
|
/**
|
|
13
22
|
* Enum is used in aiDataContract to describe how fields are serialized.
|
|
14
23
|
* For instance: (Fieldtype.Required | FieldType.Array) will mark the field as required and indicate it's an array
|
|
15
24
|
*/
|
|
16
25
|
export const enum FieldType { Default = 0, Required = 1, Array = 2, Hidden = 4 }
|
|
17
26
|
|
|
18
|
-
export enum
|
|
27
|
+
export const enum eDistributedTracingModes {
|
|
19
28
|
/**
|
|
20
29
|
* (Default) Send Application Insights correlation headers
|
|
21
30
|
*/
|
|
22
31
|
|
|
23
|
-
AI=0,
|
|
32
|
+
AI = 0,
|
|
24
33
|
|
|
25
34
|
/**
|
|
26
35
|
* Send both W3C Trace Context headers and back-compatibility Application Insights headers
|
|
@@ -32,3 +41,10 @@ export enum DistributedTracingModes {
|
|
|
32
41
|
*/
|
|
33
42
|
W3C
|
|
34
43
|
}
|
|
44
|
+
|
|
45
|
+
export const DistributedTracingModes = createEnumStyle<{ [key in (keyof typeof eDistributedTracingModes)]: number; }>({
|
|
46
|
+
AI: eDistributedTracingModes.AI,
|
|
47
|
+
AI_AND_W3C: eDistributedTracingModes.AI_AND_W3C,
|
|
48
|
+
W3C: eDistributedTracingModes.W3C
|
|
49
|
+
});
|
|
50
|
+
export type DistributedTracingModes = number | eDistributedTracingModes;
|
package/src/HelperFuncs.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
import { arrForEach, IPlugin, isString } from "@microsoft/applicationinsights-core-js";
|
|
5
5
|
|
|
6
|
+
const strEmpty = "";
|
|
7
|
+
|
|
6
8
|
export function stringToBoolOrDefault(str: any, defaultValue = false): boolean {
|
|
7
9
|
if (str === undefined || str === null) {
|
|
8
10
|
return defaultValue;
|
|
@@ -21,10 +23,10 @@ export function msToTimeSpan(totalms: number): string {
|
|
|
21
23
|
|
|
22
24
|
totalms = Math.round(totalms);
|
|
23
25
|
|
|
24
|
-
let ms =
|
|
25
|
-
let sec =
|
|
26
|
-
let min =
|
|
27
|
-
let hour =
|
|
26
|
+
let ms = strEmpty + totalms % 1000;
|
|
27
|
+
let sec = strEmpty + Math.floor(totalms / 1000) % 60;
|
|
28
|
+
let min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;
|
|
29
|
+
let hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;
|
|
28
30
|
const days = Math.floor(totalms / (1000 * 60 * 60 * 24));
|
|
29
31
|
|
|
30
32
|
ms = ms.length === 1 ? "00" + ms : ms.length === 2 ? "0" + ms : ms;
|
|
@@ -32,7 +34,7 @@ export function msToTimeSpan(totalms: number): string {
|
|
|
32
34
|
min = min.length < 2 ? "0" + min : min;
|
|
33
35
|
hour = hour.length < 2 ? "0" + hour : hour;
|
|
34
36
|
|
|
35
|
-
return (days > 0 ? days + "." :
|
|
37
|
+
return (days > 0 ? days + "." : strEmpty) + hour + ":" + min + ":" + sec + "." + ms;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
export function getExtensionByName(extensions: IPlugin[], identifier: string): IPlugin | null {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// // Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// // Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
// // THIS FILE WAS AUTOGENERATED
|
|
5
|
+
// import { Domain } from "./Domain";
|
|
6
|
+
// "use strict";
|
|
7
|
+
|
|
8
|
+
// /**
|
|
9
|
+
// * Instances of AvailabilityData represent the result of executing an availability test.
|
|
10
|
+
// */
|
|
11
|
+
// export class AvailabilityData implements Domain {
|
|
12
|
+
|
|
13
|
+
// /**
|
|
14
|
+
// * Schema version
|
|
15
|
+
// */
|
|
16
|
+
// public ver: number = 2;
|
|
17
|
+
|
|
18
|
+
// /**
|
|
19
|
+
// * Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.
|
|
20
|
+
// */
|
|
21
|
+
// public id: string;
|
|
22
|
+
|
|
23
|
+
// /**
|
|
24
|
+
// * Name of the test that these availability results represent.
|
|
25
|
+
// */
|
|
26
|
+
// public name: string;
|
|
27
|
+
|
|
28
|
+
// /**
|
|
29
|
+
// * Duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
|
|
30
|
+
// */
|
|
31
|
+
// public duration: string;
|
|
32
|
+
|
|
33
|
+
// /**
|
|
34
|
+
// * Success flag.
|
|
35
|
+
// */
|
|
36
|
+
// public success: boolean;
|
|
37
|
+
|
|
38
|
+
// /**
|
|
39
|
+
// * Name of the location where the test was run from.
|
|
40
|
+
// */
|
|
41
|
+
// public runLocation: string;
|
|
42
|
+
|
|
43
|
+
// /**
|
|
44
|
+
// * Diagnostic message for the result.
|
|
45
|
+
// */
|
|
46
|
+
// public message: string;
|
|
47
|
+
|
|
48
|
+
// /**
|
|
49
|
+
// * Collection of custom properties.
|
|
50
|
+
// */
|
|
51
|
+
// public properties: any = {};
|
|
52
|
+
|
|
53
|
+
// /**
|
|
54
|
+
// * Collection of custom measurements.
|
|
55
|
+
// */
|
|
56
|
+
// public measurements: any = {};
|
|
57
|
+
// }
|
|
File without changes
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
|
-
// THIS FILE WAS AUTOGENERATED
|
|
5
4
|
/**
|
|
6
5
|
* Type of the metric data measurement.
|
|
7
6
|
*/
|
|
8
|
-
export enum DataPointType {
|
|
7
|
+
export const enum DataPointType {
|
|
9
8
|
Measurement = 0,
|
|
10
|
-
Aggregation = 1
|
|
9
|
+
Aggregation = 1
|
|
11
10
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
|
-
// THIS FILE WAS AUTOGENERATED
|
|
5
4
|
/**
|
|
6
5
|
* Identifies the type of dependency.
|
|
7
6
|
*/
|
|
8
|
-
export enum DependencyKind {
|
|
7
|
+
export const enum DependencyKind {
|
|
9
8
|
SQL = 0,
|
|
10
9
|
Http = 1,
|
|
11
|
-
Other = 2
|
|
10
|
+
Other = 2
|
|
12
11
|
}
|
package/src/Interfaces/Contracts/{Generated/DependencySourceType.ts → DependencySourceType.ts}
RENAMED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
|
-
// THIS FILE WAS AUTOGENERATED
|
|
5
4
|
/**
|
|
6
5
|
* Identifies the source of the dependency.
|
|
7
6
|
*/
|
|
8
|
-
export enum DependencySourceType {
|
|
7
|
+
export const enum DependencySourceType {
|
|
9
8
|
Undefined = 0,
|
|
10
9
|
Aic = 1,
|
|
11
|
-
Apmc = 2
|
|
10
|
+
Apmc = 2
|
|
12
11
|
}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
|
-
// THIS FILE WAS AUTOGENERATED
|
|
5
|
-
|
|
6
4
|
/**
|
|
7
5
|
* Data struct to contain only C section with custom fields.
|
|
8
6
|
*/
|
|
9
|
-
export
|
|
7
|
+
export interface IBase {
|
|
10
8
|
|
|
11
9
|
/**
|
|
12
10
|
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
|
|
13
11
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
constructor() {
|
|
17
|
-
}
|
|
12
|
+
baseType: string;
|
|
18
13
|
}
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import { Base } from "./Base";
|
|
4
|
+
import { IBase } from "./IBase";
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Data struct to contain both B and C sections.
|
|
9
8
|
*/
|
|
10
|
-
export
|
|
11
|
-
|
|
9
|
+
export interface IData<TDomain> extends IBase {
|
|
12
10
|
/**
|
|
13
11
|
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
|
|
14
12
|
*/
|
|
15
|
-
|
|
13
|
+
baseType: string;
|
|
16
14
|
|
|
17
15
|
/**
|
|
18
16
|
* Container for data item (B section).
|
|
19
17
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
constructor() {
|
|
23
|
-
super();
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
}
|
|
18
|
+
baseData: TDomain;
|
|
19
|
+
}
|
|
@@ -5,40 +5,40 @@ import { DataPointType } from "./DataPointType";
|
|
|
5
5
|
/**
|
|
6
6
|
* Metric data single measurement.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export interface IDataPoint {
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Name of the metric.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
name: string;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Metric type. Single measurement or the aggregated value.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
kind: DataPointType;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Single value for measurement. Sum of individual measurements for the aggregation.
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
value: number;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Metric weight of the aggregated metric. Should not be set for a measurement.
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
count: number;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Minimum value of the aggregated metric. Should not be set for a measurement.
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
min: number;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Maximum value of the aggregated metric. Should not be set for a measurement.
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
max: number;
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* Standard deviation of the aggregated metric. Should not be set for a measurement.
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
stdDev: number;
|
|
44
44
|
}
|