@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
|
@@ -5,11 +5,11 @@ import { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, d
|
|
|
5
5
|
import { FieldType } from "../Enums";
|
|
6
6
|
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
7
7
|
import { AjaxHelperParseDependencyPath} from "../Util";
|
|
8
|
-
import {
|
|
8
|
+
import { IRemoteDependencyData } from "../Interfaces/Contracts/IRemoteDependencyData";
|
|
9
9
|
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
10
10
|
import { msToTimeSpan } from "../HelperFuncs";
|
|
11
11
|
|
|
12
|
-
export class RemoteDependencyData
|
|
12
|
+
export class RemoteDependencyData implements IRemoteDependencyData, ISerializable {
|
|
13
13
|
|
|
14
14
|
public static envelopeType = "Microsoft.ApplicationInsights.{0}.RemoteDependency";
|
|
15
15
|
public static dataType = "RemoteDependencyData";
|
|
@@ -39,29 +39,84 @@ export class RemoteDependencyData extends GeneratedRemoteDependencyData implemen
|
|
|
39
39
|
dependencyTypeName: FieldType.Default
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Schema version
|
|
44
|
+
*/
|
|
45
|
+
public ver: number; // = 2;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
|
|
49
|
+
*/
|
|
50
|
+
public name: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
|
|
54
|
+
*/
|
|
55
|
+
public id: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Result code of a dependency call. Examples are SQL error code and HTTP status code.
|
|
59
|
+
*/
|
|
60
|
+
public resultCode: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
|
|
64
|
+
*/
|
|
65
|
+
public duration: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Indication of successful or unsuccessful call.
|
|
69
|
+
*/
|
|
70
|
+
public success: boolean; /* true */
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
|
|
74
|
+
*/
|
|
75
|
+
public data: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Target site of a dependency call. Examples are server name, host address.
|
|
79
|
+
*/
|
|
80
|
+
public target: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Dependency type name. Very low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP.
|
|
84
|
+
*/
|
|
85
|
+
public type: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Collection of custom properties.
|
|
89
|
+
*/
|
|
90
|
+
public properties: any; // = {};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Collection of custom measurements.
|
|
94
|
+
*/
|
|
95
|
+
public measurements: any; // = {};
|
|
96
|
+
|
|
42
97
|
/**
|
|
43
98
|
* Constructs a new instance of the RemoteDependencyData object
|
|
44
99
|
*/
|
|
45
100
|
constructor(logger: IDiagnosticLogger, id: string, absoluteUrl: string, commandName: string, value: number, success: boolean, resultCode: number, method?: string, requestAPI: string = "Ajax", correlationContext?: string, properties?: Object, measurements?: Object) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
this.id = id;
|
|
101
|
+
let _self = this;
|
|
49
102
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
103
|
+
_self.ver = 2;
|
|
104
|
+
_self.id = id;
|
|
105
|
+
_self.duration = msToTimeSpan(value);
|
|
106
|
+
_self.success = success;
|
|
107
|
+
_self.resultCode = resultCode + "";
|
|
53
108
|
|
|
54
|
-
|
|
109
|
+
_self.type = dataSanitizeString(logger, requestAPI);
|
|
55
110
|
|
|
56
111
|
const dependencyFields = AjaxHelperParseDependencyPath(logger, absoluteUrl, method, commandName);
|
|
57
|
-
|
|
58
|
-
|
|
112
|
+
_self.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data; // get a value from hosturl if commandName not available
|
|
113
|
+
_self.target = dataSanitizeString(logger, dependencyFields.target);
|
|
59
114
|
if (correlationContext) {
|
|
60
|
-
|
|
115
|
+
_self.target = `${_self.target} | ${correlationContext}`;
|
|
61
116
|
}
|
|
62
|
-
|
|
117
|
+
_self.name = dataSanitizeString(logger, dependencyFields.name);
|
|
63
118
|
|
|
64
|
-
|
|
65
|
-
|
|
119
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
120
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
66
121
|
}
|
|
67
122
|
}
|
package/src/Telemetry/Trace.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { IMessageData } from "../Interfaces/Contracts/IMessageData";
|
|
5
5
|
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
6
6
|
import { dataSanitizeMessage, dataSanitizeProperties, dataSanitizeMeasurements } from "./Common/DataSanitizer";
|
|
7
7
|
import { FieldType } from "../Enums";
|
|
8
|
-
import { SeverityLevel } from "../Interfaces/Contracts/
|
|
8
|
+
import { SeverityLevel } from "../Interfaces/Contracts/SeverityLevel";
|
|
9
9
|
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
10
10
|
import { strNotSpecified } from "../Constants";
|
|
11
11
|
|
|
12
|
-
export class Trace
|
|
12
|
+
export class Trace implements IMessageData, ISerializable {
|
|
13
13
|
|
|
14
14
|
public static envelopeType = "Microsoft.ApplicationInsights.{0}.Message";
|
|
15
15
|
public static dataType = "MessageData";
|
|
@@ -21,18 +21,44 @@ export class Trace extends MessageData implements ISerializable {
|
|
|
21
21
|
properties: FieldType.Default
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Schema version
|
|
26
|
+
*/
|
|
27
|
+
public ver: number; // = 2;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Trace message
|
|
31
|
+
*/
|
|
32
|
+
public message: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Trace severity level.
|
|
36
|
+
*/
|
|
37
|
+
public severityLevel: SeverityLevel;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Collection of custom properties.
|
|
41
|
+
*/
|
|
42
|
+
public properties: any;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Collection of custom measurements.
|
|
46
|
+
*/
|
|
47
|
+
public measurements: any;
|
|
48
|
+
|
|
24
49
|
/**
|
|
25
50
|
* Constructs a new instance of the TraceTelemetry object
|
|
26
51
|
*/
|
|
27
52
|
constructor(logger: IDiagnosticLogger, message: string, severityLevel?: SeverityLevel, properties?: any, measurements?: { [key: string]: number }) {
|
|
28
|
-
|
|
53
|
+
let _self = this;
|
|
54
|
+
_self.ver = 2;
|
|
29
55
|
message = message || strNotSpecified;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
56
|
+
_self.message = dataSanitizeMessage(logger, message);
|
|
57
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
58
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
33
59
|
|
|
34
60
|
if (severityLevel) {
|
|
35
|
-
|
|
61
|
+
_self.severityLevel = severityLevel;
|
|
36
62
|
}
|
|
37
63
|
}
|
|
38
64
|
}
|
|
@@ -29,7 +29,7 @@ export class TelemetryItemCreator {
|
|
|
29
29
|
if (isNullOrUndefined(item) ||
|
|
30
30
|
isNullOrUndefined(baseType) ||
|
|
31
31
|
isNullOrUndefined(envelopeName)) {
|
|
32
|
-
|
|
32
|
+
throw Error("Input doesn't contain all required fields");
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
let iKey = "";
|
|
@@ -9,8 +9,8 @@ export { parseConnectionString, ConnectionStringParser } from "./ConnectionStrin
|
|
|
9
9
|
export { FieldType } from "./Enums";
|
|
10
10
|
export { IRequestHeaders, RequestHeaders } from "./RequestResponseHeaders";
|
|
11
11
|
export { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, strNotSpecified } from "./Constants";
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
12
|
+
export { IData as AIData } from "./Interfaces/Contracts/IData";
|
|
13
|
+
export { IBase as AIBase } from "./Interfaces/Contracts/IBase";
|
|
14
14
|
export { ISerializable } from "./Interfaces/Telemetry/ISerializable";
|
|
15
15
|
export { IEnvelope } from "./Interfaces/Telemetry/IEnvelope";
|
|
16
16
|
export { Envelope } from "./Telemetry/Common/Envelope";
|
|
@@ -18,7 +18,7 @@ export { Event } from "./Telemetry/Event";
|
|
|
18
18
|
export { Exception } from "./Telemetry/Exception";
|
|
19
19
|
export { Metric } from "./Telemetry/Metric";
|
|
20
20
|
export { PageView } from "./Telemetry/PageView";
|
|
21
|
-
export {
|
|
21
|
+
export { IPageViewData } from "./Interfaces/Contracts/IPageViewData";
|
|
22
22
|
export { RemoteDependencyData } from "./Telemetry/RemoteDependencyData";
|
|
23
23
|
export { IEventTelemetry } from "./Interfaces/IEventTelemetry";
|
|
24
24
|
export { ITraceTelemetry } from "./Interfaces/ITraceTelemetry";
|
|
@@ -30,10 +30,10 @@ export { IPageViewPerformanceTelemetry, IPageViewPerformanceTelemetryInternal }
|
|
|
30
30
|
export { Trace } from "./Telemetry/Trace";
|
|
31
31
|
export { PageViewPerformance } from "./Telemetry/PageViewPerformance";
|
|
32
32
|
export { Data } from "./Telemetry/Common/Data";
|
|
33
|
-
export { SeverityLevel } from "./Interfaces/Contracts/
|
|
33
|
+
export { SeverityLevel } from "./Interfaces/Contracts/SeverityLevel";
|
|
34
34
|
export { IConfig, ConfigurationManager } from "./Interfaces/IConfig";
|
|
35
35
|
export { IChannelControlsAI } from "./Interfaces/IChannelControlsAI";
|
|
36
|
-
export { IContextTagKeys, ContextTagKeys } from "./Interfaces/Contracts/
|
|
36
|
+
export { IContextTagKeys, ContextTagKeys } from "./Interfaces/Contracts/ContextTagKeys";
|
|
37
37
|
export {
|
|
38
38
|
DataSanitizerValues, IDataSanitizer, DataSanitizer,
|
|
39
39
|
dataSanitizeKeyAndAddUniqueness, dataSanitizeKey, dataSanitizeString, dataSanitizeUrl, dataSanitizeMessage,
|
|
@@ -57,12 +57,12 @@ export { IPropertiesPlugin } from "./Interfaces/IPropertiesPlugin";
|
|
|
57
57
|
export { IUser, IUserContext } from "./Interfaces/Context/IUser";
|
|
58
58
|
export { ITelemetryTrace, ITraceState } from "./Interfaces/Context/ITelemetryTrace";
|
|
59
59
|
export { IRequestContext } from "./Interfaces/IRequestContext";
|
|
60
|
-
export { DistributedTracingModes } from "./Enums";
|
|
60
|
+
export { eDistributedTracingModes, DistributedTracingModes } from "./Enums";
|
|
61
61
|
export { stringToBoolOrDefault, msToTimeSpan, getExtensionByName, isCrossOriginError } from "./HelperFuncs";
|
|
62
62
|
export { isBeaconsSupported as isBeaconApiSupported } from "@microsoft/applicationinsights-core-js"
|
|
63
63
|
export { createDomEvent } from "./DomHelperFuncs";
|
|
64
64
|
export {
|
|
65
|
-
utlDisableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage,
|
|
65
|
+
utlDisableStorage, utlEnableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage,
|
|
66
66
|
utlCanUseSessionStorage, utlGetSessionStorageKeys, utlGetSessionStorage, utlSetSessionStorage, utlRemoveSessionStorage
|
|
67
67
|
} from "./StorageHelperFuncs";
|
|
68
68
|
export { urlParseUrl, urlGetAbsoluteUrl, urlGetPathName, urlGetCompleteUrl, urlParseHost, urlParseFullHost } from "./UrlHelperFuncs";
|
package/types/Enums.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type of storage to differentiate between local storage and session storage
|
|
3
3
|
*/
|
|
4
|
-
export declare enum
|
|
4
|
+
export declare const enum eStorageType {
|
|
5
5
|
LocalStorage = 0,
|
|
6
6
|
SessionStorage = 1
|
|
7
7
|
}
|
|
8
|
+
export declare const StorageType: import("@microsoft/applicationinsights-core-js").EnumValue<{
|
|
9
|
+
LocalStorage: number;
|
|
10
|
+
SessionStorage: number;
|
|
11
|
+
}>;
|
|
12
|
+
export declare type StorageType = eStorageType | typeof StorageType;
|
|
8
13
|
/**
|
|
9
14
|
* Enum is used in aiDataContract to describe how fields are serialized.
|
|
10
15
|
* For instance: (Fieldtype.Required | FieldType.Array) will mark the field as required and indicate it's an array
|
|
@@ -15,7 +20,7 @@ export declare const enum FieldType {
|
|
|
15
20
|
Array = 2,
|
|
16
21
|
Hidden = 4
|
|
17
22
|
}
|
|
18
|
-
export declare enum
|
|
23
|
+
export declare const enum eDistributedTracingModes {
|
|
19
24
|
/**
|
|
20
25
|
* (Default) Send Application Insights correlation headers
|
|
21
26
|
*/
|
|
@@ -29,3 +34,9 @@ export declare enum DistributedTracingModes {
|
|
|
29
34
|
*/
|
|
30
35
|
W3C = 2
|
|
31
36
|
}
|
|
37
|
+
export declare const DistributedTracingModes: import("@microsoft/applicationinsights-core-js").EnumValue<{
|
|
38
|
+
AI: number;
|
|
39
|
+
AI_AND_W3C: number;
|
|
40
|
+
W3C: number;
|
|
41
|
+
}>;
|
|
42
|
+
export declare type DistributedTracingModes = number | eDistributedTracingModes;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Data struct to contain only C section with custom fields.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export interface IBase {
|
|
5
5
|
/**
|
|
6
6
|
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
|
|
7
7
|
*/
|
|
8
8
|
baseType: string;
|
|
9
|
-
constructor();
|
|
10
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IBase } from "./IBase";
|
|
2
2
|
/**
|
|
3
3
|
* Data struct to contain both B and C sections.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export interface IData<TDomain> extends IBase {
|
|
6
6
|
/**
|
|
7
7
|
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
|
|
8
8
|
*/
|
|
@@ -11,5 +11,4 @@ export declare class Data<TDomain> extends Base {
|
|
|
11
11
|
* Container for data item (B section).
|
|
12
12
|
*/
|
|
13
13
|
baseData: TDomain;
|
|
14
|
-
constructor();
|
|
15
14
|
}
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDomain } from "./IDomain";
|
|
2
2
|
/**
|
|
3
3
|
* Instances of Event represent structured event records that can be grouped and searched by their properties. Event data item also creates a metric of event count by name.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export interface IEventData extends IDomain {
|
|
6
6
|
/**
|
|
7
7
|
* Schema version
|
|
8
8
|
*/
|
|
@@ -19,5 +19,4 @@ export declare class EventData implements Domain {
|
|
|
19
19
|
* Collection of custom measurements.
|
|
20
20
|
*/
|
|
21
21
|
measurements: any;
|
|
22
|
-
constructor();
|
|
23
22
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IExceptionDetails } from "./IExceptionDetails";
|
|
2
|
+
import { IDomain } from "./IDomain";
|
|
3
3
|
import { SeverityLevel } from "./SeverityLevel";
|
|
4
4
|
/**
|
|
5
5
|
* An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export interface IExceptionData extends IDomain {
|
|
8
8
|
/**
|
|
9
9
|
* Schema version
|
|
10
10
|
*/
|
|
@@ -12,7 +12,7 @@ export declare class ExceptionData implements Domain {
|
|
|
12
12
|
/**
|
|
13
13
|
* Exception chain - list of inner exceptions.
|
|
14
14
|
*/
|
|
15
|
-
exceptions:
|
|
15
|
+
exceptions: IExceptionDetails[];
|
|
16
16
|
/**
|
|
17
17
|
* Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
|
|
18
18
|
*/
|
|
@@ -25,5 +25,4 @@ export declare class ExceptionData implements Domain {
|
|
|
25
25
|
* Collection of custom measurements.
|
|
26
26
|
*/
|
|
27
27
|
measurements: any;
|
|
28
|
-
constructor();
|
|
29
28
|
}
|
package/types/Interfaces/Contracts/{Generated/ExceptionDetails.d.ts → IExceptionDetails.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IStackFrame } from "./IStackFrame";
|
|
2
2
|
/**
|
|
3
3
|
* Exception details of the exception in a chain.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export interface IExceptionDetails {
|
|
6
6
|
/**
|
|
7
7
|
* In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
|
|
8
8
|
*/
|
|
@@ -30,5 +30,5 @@ export declare class ExceptionDetails {
|
|
|
30
30
|
/**
|
|
31
31
|
* List of stack frames. Either stack or parsedStack should have a value.
|
|
32
32
|
*/
|
|
33
|
-
parsedStack:
|
|
33
|
+
parsedStack: IStackFrame[];
|
|
34
34
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDomain } from "./IDomain";
|
|
2
2
|
import { SeverityLevel } from "./SeverityLevel";
|
|
3
3
|
/**
|
|
4
4
|
* Instances of Message represent printf-like trace statements that are text-searched. Log4Net, NLog and other text-based log file entries are translated into intances of this type. The message does not have measurements.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export interface IMessageData extends IDomain {
|
|
7
7
|
/**
|
|
8
8
|
* Schema version
|
|
9
9
|
*/
|
|
@@ -24,5 +24,4 @@ export declare class MessageData implements Domain {
|
|
|
24
24
|
* Collection of custom measurements.
|
|
25
25
|
*/
|
|
26
26
|
measurements: any;
|
|
27
|
-
constructor();
|
|
28
27
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IDomain } from "./IDomain";
|
|
2
|
+
import { IDataPoint } from "./IDataPoint";
|
|
3
3
|
/**
|
|
4
4
|
* An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export interface IMetricData extends IDomain {
|
|
7
7
|
/**
|
|
8
8
|
* Schema version
|
|
9
9
|
*/
|
|
@@ -11,7 +11,7 @@ export declare class MetricData implements Domain {
|
|
|
11
11
|
/**
|
|
12
12
|
* 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.
|
|
13
13
|
*/
|
|
14
|
-
metrics:
|
|
14
|
+
metrics: IDataPoint[];
|
|
15
15
|
/**
|
|
16
16
|
* Collection of custom properties.
|
|
17
17
|
*/
|
|
@@ -20,5 +20,4 @@ export declare class MetricData implements Domain {
|
|
|
20
20
|
* Collection of custom measurements.
|
|
21
21
|
*/
|
|
22
22
|
measurements: any;
|
|
23
|
-
constructor();
|
|
24
23
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IEventData } from "./IEventData";
|
|
2
|
+
/**
|
|
3
|
+
* An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
|
|
4
|
+
*/
|
|
5
|
+
export interface IPageViewData extends IEventData {
|
|
6
|
+
/**
|
|
7
|
+
* Request URL with all query string parameters
|
|
8
|
+
*/
|
|
9
|
+
url: string;
|
|
10
|
+
/**
|
|
11
|
+
* 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.
|
|
12
|
+
*/
|
|
13
|
+
duration: string;
|
|
14
|
+
/**
|
|
15
|
+
* Identifier of a page view instance. Used for correlation between page view and other telemetry items.
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IPageViewData } from "./IPageViewData";
|
|
2
|
+
/**
|
|
3
|
+
* An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request.
|
|
4
|
+
*/
|
|
5
|
+
export interface IPageViewPerfData extends IPageViewData {
|
|
6
|
+
/**
|
|
7
|
+
* Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
8
|
+
*/
|
|
9
|
+
perfTotal: string;
|
|
10
|
+
/**
|
|
11
|
+
* Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
12
|
+
*/
|
|
13
|
+
networkConnect: string;
|
|
14
|
+
/**
|
|
15
|
+
* Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
16
|
+
*/
|
|
17
|
+
sentRequest: string;
|
|
18
|
+
/**
|
|
19
|
+
* Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
20
|
+
*/
|
|
21
|
+
receivedResponse: string;
|
|
22
|
+
/**
|
|
23
|
+
* DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
24
|
+
*/
|
|
25
|
+
domProcessing: string;
|
|
26
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDomain } from "./IDomain";
|
|
2
2
|
/**
|
|
3
3
|
* An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export interface IRemoteDependencyData extends IDomain {
|
|
6
6
|
/**
|
|
7
7
|
* Schema version
|
|
8
8
|
*/
|
|
@@ -47,5 +47,4 @@ export declare class RemoteDependencyData implements Domain {
|
|
|
47
47
|
* Collection of custom measurements.
|
|
48
48
|
*/
|
|
49
49
|
measurements: any;
|
|
50
|
-
constructor();
|
|
51
50
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,13 +1,37 @@
|
|
|
1
1
|
import { ISerializable } from "./ISerializable";
|
|
2
2
|
export interface IEnvelope extends ISerializable {
|
|
3
|
+
/**
|
|
4
|
+
* Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.
|
|
5
|
+
*/
|
|
3
6
|
ver: number;
|
|
7
|
+
/**
|
|
8
|
+
* Type name of telemetry data item.
|
|
9
|
+
*/
|
|
4
10
|
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Event date time when telemetry item was created. This is the wall clock time on the client when the event was generated. There is no guarantee that the client's time is accurate. This field must be formatted in UTC ISO 8601 format, with a trailing 'Z' character, as described publicly on https://en.wikipedia.org/wiki/ISO_8601#UTC. Note: the number of decimal seconds digits provided are variable (and unspecified). Consumers should handle this, i.e. managed code consumers should not use format 'O' for parsing as it specifies a fixed length. Example: 2009-06-15T13:45:30.0000000Z.
|
|
13
|
+
*/
|
|
5
14
|
time: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
|
|
17
|
+
*/
|
|
6
18
|
sampleRate: number;
|
|
19
|
+
/**
|
|
20
|
+
* Sequence field used to track absolute order of uploaded events.
|
|
21
|
+
*/
|
|
7
22
|
seq: string;
|
|
23
|
+
/**
|
|
24
|
+
* The application's instrumentation key. The key is typically represented as a GUID, but there are cases when it is not a guid. No code should rely on iKey being a GUID. Instrumentation key is case insensitive.
|
|
25
|
+
*/
|
|
8
26
|
iKey: string;
|
|
27
|
+
/**
|
|
28
|
+
* Key/value collection of context properties. See ContextTagKeys for information on available properties.
|
|
29
|
+
*/
|
|
9
30
|
tags: {
|
|
10
31
|
[name: string]: any;
|
|
11
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* Telemetry data item.
|
|
35
|
+
*/
|
|
12
36
|
data: any;
|
|
13
37
|
}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
2
|
+
/**
|
|
3
|
+
* Disables the global SDK usage of local or session storage if available
|
|
4
|
+
*/
|
|
2
5
|
export declare function utlDisableStorage(): void;
|
|
3
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Re-enables the global SDK usage of local or session storage if available
|
|
8
|
+
*/
|
|
9
|
+
export declare function utlEnableStorage(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Returns whether LocalStorage can be used, if the reset parameter is passed a true this will override
|
|
12
|
+
* any previous disable calls.
|
|
13
|
+
* @param reset - Should the usage be reset and determined only based on whether LocalStorage is available
|
|
14
|
+
*/
|
|
15
|
+
export declare function utlCanUseLocalStorage(reset?: boolean): boolean;
|
|
4
16
|
export declare function utlGetLocalStorage(logger: IDiagnosticLogger, name: string): string;
|
|
5
17
|
export declare function utlSetLocalStorage(logger: IDiagnosticLogger, name: string, data: string): boolean;
|
|
6
18
|
export declare function utlRemoveStorage(logger: IDiagnosticLogger, name: string): boolean;
|
|
7
|
-
export declare function utlCanUseSessionStorage(): boolean;
|
|
19
|
+
export declare function utlCanUseSessionStorage(reset?: boolean): boolean;
|
|
8
20
|
export declare function utlGetSessionStorageKeys(): string[];
|
|
9
21
|
export declare function utlGetSessionStorage(logger: IDiagnosticLogger, name: string): string;
|
|
10
22
|
export declare function utlSetSessionStorage(logger: IDiagnosticLogger, name: string, data: string): boolean;
|