@microsoft/applicationinsights-common 2.8.5-nightly.2206-02 → 2.8.5-nightly.2206-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 +620 -530
- 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 +931 -197
- package/dist/applicationinsights-common.api.md +15 -4
- package/dist/applicationinsights-common.d.ts +15 -5
- package/dist/applicationinsights-common.js +620 -530
- 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 +15 -5
- package/dist-esm/ConnectionStringParser.js +10 -9
- package/dist-esm/ConnectionStringParser.js.map +1 -1
- package/dist-esm/Constants.js +2 -1
- package/dist-esm/Constants.js.map +1 -1
- package/dist-esm/DomHelperFuncs.js +1 -1
- package/dist-esm/Enums.js +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 +1 -1
- package/dist-esm/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-esm/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-esm/Interfaces/Contracts/IBase.js +1 -1
- package/dist-esm/Interfaces/Contracts/IData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-esm/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-esm/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-esm/Interfaces/IAppInsights.js +1 -1
- package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
- package/dist-esm/Interfaces/IConfig.js +4 -3
- package/dist-esm/Interfaces/IConfig.js.map +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 +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 +7 -6
- package/dist-esm/StorageHelperFuncs.js.map +1 -1
- package/dist-esm/Telemetry/Common/Data.js +1 -1
- package/dist-esm/Telemetry/Common/DataPoint.js +1 -1
- package/dist-esm/Telemetry/Common/DataSanitizer.js +43 -40
- package/dist-esm/Telemetry/Common/DataSanitizer.js.map +1 -1
- package/dist-esm/Telemetry/Common/Envelope.js +4 -3
- package/dist-esm/Telemetry/Common/Envelope.js.map +1 -1
- package/dist-esm/Telemetry/Event.js +6 -5
- package/dist-esm/Telemetry/Event.js.map +1 -1
- package/dist-esm/Telemetry/Exception.js +122 -115
- package/dist-esm/Telemetry/Exception.js.map +1 -1
- package/dist-esm/Telemetry/Metric.js +7 -6
- package/dist-esm/Telemetry/Metric.js.map +1 -1
- package/dist-esm/Telemetry/PageView.js +8 -7
- package/dist-esm/Telemetry/PageView.js.map +1 -1
- package/dist-esm/Telemetry/PageViewPerformance.js +8 -7
- package/dist-esm/Telemetry/PageViewPerformance.js.map +1 -1
- package/dist-esm/Telemetry/RemoteDependencyData.js +8 -7
- package/dist-esm/Telemetry/RemoteDependencyData.js.map +1 -1
- package/dist-esm/Telemetry/Trace.js +7 -6
- package/dist-esm/Telemetry/Trace.js.map +1 -1
- package/dist-esm/TelemetryItemCreator.js +16 -13
- package/dist-esm/TelemetryItemCreator.js.map +1 -1
- package/dist-esm/UrlHelperFuncs.js +8 -7
- package/dist-esm/UrlHelperFuncs.js.map +1 -1
- package/dist-esm/Util.js +30 -29
- package/dist-esm/Util.js.map +1 -1
- package/dist-esm/__DynamicConstants.js +50 -0
- package/dist-esm/__DynamicConstants.js.map +1 -0
- package/dist-esm/applicationinsights-common.js +2 -2
- package/dist-esm/applicationinsights-common.js.map +1 -1
- package/package.json +6 -3
- package/src/ConnectionStringParser.ts +8 -10
- package/src/Constants.ts +1 -0
- package/src/HelperFuncs.ts +6 -6
- package/src/Interfaces/IConfig.ts +7 -7
- package/src/StorageHelperFuncs.ts +10 -7
- package/src/Telemetry/Common/DataPoint.ts +3 -3
- package/src/Telemetry/Common/DataSanitizer.ts +8 -6
- package/src/Telemetry/Common/Envelope.ts +11 -11
- package/src/Telemetry/Event.ts +11 -11
- package/src/Telemetry/Exception.ts +21 -17
- package/src/Telemetry/Metric.ts +12 -12
- package/src/Telemetry/PageView.ts +14 -12
- package/src/Telemetry/PageViewPerformance.ts +12 -13
- package/src/Telemetry/RemoteDependencyData.ts +12 -12
- package/src/Telemetry/Trace.ts +12 -12
- package/src/TelemetryItemCreator.ts +10 -9
- package/src/UrlHelperFuncs.ts +6 -6
- package/src/Util.ts +26 -28
- package/src/__DynamicConstants.ts +48 -0
- package/src/applicationinsights-common.ts +1 -1
- package/types/Constants.d.ts +1 -0
- package/types/Telemetry/Common/DataPoint.d.ts +2 -2
- package/types/Telemetry/Common/DataSanitizer.d.ts +5 -4
- package/types/Telemetry/Common/Envelope.d.ts +1 -1
- package/types/Telemetry/Event.d.ts +2 -2
- package/types/Telemetry/Exception.d.ts +5 -5
- package/types/Telemetry/Metric.d.ts +2 -2
- package/types/Telemetry/PageView.d.ts +2 -2
- package/types/Telemetry/PageViewPerformance.d.ts +3 -3
- package/types/Telemetry/RemoteDependencyData.d.ts +2 -2
- package/types/Telemetry/Trace.d.ts +3 -3
- package/types/TelemetryItemCreator.d.ts +1 -1
- package/types/Util.d.ts +2 -2
- package/types/__DynamicConstants.d.ts +36 -0
- package/types/applicationinsights-common.d.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
package/src/Util.ts
CHANGED
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
IDiagnosticLogger, IPlugin,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
newId,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
import { ITelemetryTrace } from "./Interfaces/Context/ITelemetryTrace";
|
|
24
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
IDiagnosticLogger, IDistributedTraceContext, IPlugin, arrForEach, arrIndexOf, attachEvent, canUseCookies as coreCanUseCookies, dateNow,
|
|
6
|
+
deleteCookie as coreDeleteCookie, disableCookies as coreDisableCookies, dumpObj, generateW3CId, getCookie as coreGetCookie,
|
|
7
|
+
getExceptionName as coreGetExceptionName, getIEVersion, getPerformance, isArray, isBeaconsSupported, isDate, isError, isNullOrUndefined,
|
|
8
|
+
isValidSpanId, isValidTraceId, newId, random32, setCookie as coreSetCookie, strTrim, toISOString, uaDisallowsSameSiteNone
|
|
9
|
+
} from "@microsoft/applicationinsights-core-js";
|
|
10
|
+
import { DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, strNotSpecified } from "./Constants";
|
|
11
|
+
import { createDomEvent } from "./DomHelperFuncs";
|
|
12
|
+
import { getExtensionByName, isCrossOriginError, msToTimeSpan, stringToBoolOrDefault } from "./HelperFuncs";
|
|
13
|
+
import { ITelemetryTrace } from "./Interfaces/Context/ITelemetryTrace";
|
|
14
|
+
import { ICorrelationConfig } from "./Interfaces/ICorrelationConfig";
|
|
15
|
+
import { RequestHeaders, eRequestHeaders } from "./RequestResponseHeaders";
|
|
16
|
+
import {
|
|
17
|
+
utlCanUseLocalStorage, utlCanUseSessionStorage, utlDisableStorage, utlGetLocalStorage, utlGetSessionStorage, utlGetSessionStorageKeys,
|
|
18
|
+
utlRemoveSessionStorage, utlRemoveStorage, utlSetLocalStorage, utlSetSessionStorage
|
|
19
|
+
} from "./StorageHelperFuncs";
|
|
20
|
+
import { dataSanitizeString } from "./Telemetry/Common/DataSanitizer";
|
|
21
|
+
import { urlGetAbsoluteUrl, urlGetCompleteUrl, urlGetPathName, urlParseFullHost, urlParseHost, urlParseUrl } from "./UrlHelperFuncs";
|
|
22
|
+
|
|
25
23
|
// listing only non-geo specific locations
|
|
26
24
|
const _internalEndpoints: string[] = [
|
|
27
|
-
|
|
28
|
-
"https://breeze.aimon.applicationinsights.io
|
|
29
|
-
"https://dc-int.services.visualstudio.com
|
|
25
|
+
DEFAULT_BREEZE_ENDPOINT + DEFAULT_BREEZE_PATH,
|
|
26
|
+
"https://breeze.aimon.applicationinsights.io" + DEFAULT_BREEZE_PATH,
|
|
27
|
+
"https://dc-int.services.visualstudio.com" + DEFAULT_BREEZE_PATH
|
|
30
28
|
];
|
|
31
29
|
|
|
32
30
|
export function isInternalApplicationInsightsEndpoint(endpointUrl: string): boolean {
|
|
@@ -535,4 +533,4 @@ export function createDistributedTraceContextFromTrace(telemetryTrace?: ITelemet
|
|
|
535
533
|
trace.traceFlags = newTraceFlags
|
|
536
534
|
}
|
|
537
535
|
};
|
|
538
|
-
}
|
|
536
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
// @skip-file-minify
|
|
4
|
+
|
|
5
|
+
// ##############################################################
|
|
6
|
+
// AUTO GENERATED FILE: This file is Auto Generated during build.
|
|
7
|
+
// ##############################################################
|
|
8
|
+
|
|
9
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
+
// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!
|
|
11
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
|
+
|
|
13
|
+
export const _DYN_SPLIT = "split"; // Count: 6
|
|
14
|
+
export const _DYN_LENGTH = "length"; // Count: 40
|
|
15
|
+
export const _DYN_TO_LOWER_CASE = "toLowerCase"; // Count: 6
|
|
16
|
+
export const _DYN_INGESTIONENDPOINT = "ingestionendpoint"; // Count: 4
|
|
17
|
+
export const _DYN_TO_STRING = "toString"; // Count: 12
|
|
18
|
+
export const _DYN_REMOVE_ITEM = "removeItem"; // Count: 3
|
|
19
|
+
export const _DYN_NAME = "name"; // Count: 11
|
|
20
|
+
export const _DYN_PATHNAME = "pathname"; // Count: 4
|
|
21
|
+
export const _DYN_CORRELATION_HEADER_E0 = "correlationHeaderExcludePatterns"; // Count: 2
|
|
22
|
+
export const _DYN_INDEX_OF = "indexOf"; // Count: 4
|
|
23
|
+
export const _DYN_EXTENSION_CONFIG = "extensionConfig"; // Count: 4
|
|
24
|
+
export const _DYN_EXCEPTIONS = "exceptions"; // Count: 6
|
|
25
|
+
export const _DYN_PARSED_STACK = "parsedStack"; // Count: 11
|
|
26
|
+
export const _DYN_PROPERTIES = "properties"; // Count: 9
|
|
27
|
+
export const _DYN_MEASUREMENTS = "measurements"; // Count: 9
|
|
28
|
+
export const _DYN_STRINGIFY = "stringify"; // Count: 3
|
|
29
|
+
export const _DYN_MESSAGE = "message"; // Count: 8
|
|
30
|
+
export const _DYN_SIZE_IN_BYTES = "sizeInBytes"; // Count: 11
|
|
31
|
+
export const _DYN_TYPE_NAME = "typeName"; // Count: 11
|
|
32
|
+
export const _DYN_SEVERITY_LEVEL = "severityLevel"; // Count: 5
|
|
33
|
+
export const _DYN_PROBLEM_GROUP = "problemGroup"; // Count: 3
|
|
34
|
+
export const _DYN_IS_MANUAL = "isManual"; // Count: 3
|
|
35
|
+
export const _DYN__CREATE_FROM_INTERFA1 = "CreateFromInterface"; // Count: 2
|
|
36
|
+
export const _DYN_HAS_FULL_STACK = "hasFullStack"; // Count: 6
|
|
37
|
+
export const _DYN_LEVEL = "level"; // Count: 5
|
|
38
|
+
export const _DYN_METHOD = "method"; // Count: 7
|
|
39
|
+
export const _DYN_ASSEMBLY = "assembly"; // Count: 5
|
|
40
|
+
export const _DYN_FILE_NAME = "fileName"; // Count: 6
|
|
41
|
+
export const _DYN_LINE = "line"; // Count: 6
|
|
42
|
+
export const _DYN_DURATION = "duration"; // Count: 4
|
|
43
|
+
export const _DYN_RECEIVED_RESPONSE = "receivedResponse"; // Count: 2
|
|
44
|
+
export const _DYN_SUBSTRING = "substring"; // Count: 6
|
|
45
|
+
export const _DYN_SANITIZE_KEY_AND_ADD2 = "sanitizeKeyAndAddUniqueness"; // Count: 2
|
|
46
|
+
export const _DYN_SANITIZE_EXCEPTION = "sanitizeException"; // Count: 2
|
|
47
|
+
export const _DYN_SANITIZE_PROPERTIES = "sanitizeProperties"; // Count: 2
|
|
48
|
+
export const _DYN_SANITIZE_MEASUREMENT3 = "sanitizeMeasurements"; // Count: 2
|
|
@@ -9,7 +9,7 @@ export {
|
|
|
9
9
|
export { parseConnectionString, ConnectionStringParser } from "./ConnectionStringParser";
|
|
10
10
|
export { FieldType } from "./Enums";
|
|
11
11
|
export { IRequestHeaders, RequestHeaders, eRequestHeaders } from "./RequestResponseHeaders";
|
|
12
|
-
export { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, strNotSpecified } from "./Constants";
|
|
12
|
+
export { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, strNotSpecified } from "./Constants";
|
|
13
13
|
export { IData as AIData } from "./Interfaces/Contracts/IData";
|
|
14
14
|
export { IBase as AIBase } from "./Interfaces/Contracts/IBase";
|
|
15
15
|
export { ISerializable } from "./Interfaces/Telemetry/ISerializable";
|
package/types/Constants.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ export declare const SampleRate = "sampleRate";
|
|
|
10
10
|
export declare const ProcessLegacy = "ProcessLegacy";
|
|
11
11
|
export declare const HttpMethod = "http.method";
|
|
12
12
|
export declare const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com";
|
|
13
|
+
export declare const DEFAULT_BREEZE_PATH = "/v2/track";
|
|
13
14
|
export declare const strNotSpecified = "not_specified";
|
|
14
15
|
export declare const strIkey = "iKey";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IDataPoint } from "../../Interfaces/Contracts/IDataPoint";
|
|
2
|
-
import { ISerializable } from "../../Interfaces/Telemetry/ISerializable";
|
|
3
1
|
import { FieldType } from "../../Enums";
|
|
4
2
|
import { DataPointType } from "../../Interfaces/Contracts/DataPointType";
|
|
3
|
+
import { IDataPoint } from "../../Interfaces/Contracts/IDataPoint";
|
|
4
|
+
import { ISerializable } from "../../Interfaces/Telemetry/ISerializable";
|
|
5
5
|
export declare class DataPoint implements IDataPoint, ISerializable {
|
|
6
6
|
/**
|
|
7
7
|
* The data contract for serializing this object.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IDiagnosticLogger, _eInternalMessageId } from "@microsoft/applicationinsights-core-js";
|
|
2
|
+
import { _DYN_SANITIZE_EXCEPTION, _DYN_SANITIZE_KEY_AND_ADD2, _DYN_SANITIZE_MEASUREMENT3, _DYN_SANITIZE_PROPERTIES } from "../../__DynamicConstants";
|
|
2
3
|
export declare const enum DataSanitizerValues {
|
|
3
4
|
/**
|
|
4
5
|
* Max length allowed for custom names.
|
|
@@ -69,14 +70,14 @@ export interface IDataSanitizer {
|
|
|
69
70
|
* Max length allowed for exceptions.
|
|
70
71
|
*/
|
|
71
72
|
MAX_EXCEPTION_LENGTH: number;
|
|
72
|
-
|
|
73
|
+
[_DYN_SANITIZE_KEY_AND_ADD2]: (logger: IDiagnosticLogger, key: any, map: any) => string;
|
|
73
74
|
sanitizeKey: (logger: IDiagnosticLogger, name: any) => string;
|
|
74
75
|
sanitizeString: (logger: IDiagnosticLogger, value: any, maxLength?: number) => string;
|
|
75
76
|
sanitizeUrl: (logger: IDiagnosticLogger, url: any) => string;
|
|
76
77
|
sanitizeMessage: (logger: IDiagnosticLogger, message: any) => string;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
[_DYN_SANITIZE_EXCEPTION]: (logger: IDiagnosticLogger, exception: any) => string;
|
|
79
|
+
[_DYN_SANITIZE_PROPERTIES]: (logger: IDiagnosticLogger, properties: any) => any;
|
|
80
|
+
[_DYN_SANITIZE_MEASUREMENT3]: (logger: IDiagnosticLogger, measurements: any) => any;
|
|
80
81
|
sanitizeId: (logger: IDiagnosticLogger, id: string) => string;
|
|
81
82
|
sanitizeInput: (logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _eInternalMessageId) => any;
|
|
82
83
|
padNumber: (num: number) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
1
2
|
import { IBase } from "../../Interfaces/Contracts/IBase";
|
|
2
3
|
import { IEnvelope } from "../../Interfaces/Telemetry/IEnvelope";
|
|
3
|
-
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
4
4
|
export declare class Envelope implements IEnvelope {
|
|
5
5
|
/**
|
|
6
6
|
* The data contract for serializing this object.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
2
|
+
import { FieldType } from "../Enums";
|
|
1
3
|
import { IEventData } from "../Interfaces/Contracts/IEventData";
|
|
2
4
|
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
3
|
-
import { FieldType } from "../Enums";
|
|
4
|
-
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
5
5
|
export declare class Event implements IEventData, ISerializable {
|
|
6
6
|
static envelopeType: string;
|
|
7
7
|
static dataType: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
2
|
+
import { FieldType } from "../Enums";
|
|
2
3
|
import { IExceptionData } from "../Interfaces/Contracts/IExceptionData";
|
|
3
4
|
import { IExceptionDetails } from "../Interfaces/Contracts/IExceptionDetails";
|
|
4
|
-
import {
|
|
5
|
-
import { FieldType } from "../Enums";
|
|
5
|
+
import { IStackFrame } from "../Interfaces/Contracts/IStackFrame";
|
|
6
6
|
import { SeverityLevel } from "../Interfaces/Contracts/SeverityLevel";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { IAutoExceptionTelemetry, IExceptionDetailsInternal, IExceptionInternal, IExceptionStackFrameInternal } from "../Interfaces/IExceptionTelemetry";
|
|
8
|
+
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
9
9
|
/**
|
|
10
10
|
* Formats the provided errorObj for display and reporting, it may be a String, Object, integer or undefined depending on the browser.
|
|
11
11
|
* @param errorObj The supplied errorObj
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
2
|
+
import { FieldType } from "../Enums";
|
|
1
3
|
import { IMetricData } from "../Interfaces/Contracts/IMetricData";
|
|
2
4
|
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
3
|
-
import { FieldType } from "../Enums";
|
|
4
5
|
import { DataPoint } from "./Common/DataPoint";
|
|
5
|
-
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
6
6
|
export declare class Metric implements IMetricData, ISerializable {
|
|
7
7
|
static envelopeType: string;
|
|
8
8
|
static dataType: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
2
|
+
import { FieldType } from "../Enums";
|
|
1
3
|
import { IPageViewData } from "../Interfaces/Contracts/IPageViewData";
|
|
2
4
|
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
3
|
-
import { FieldType } from "../Enums";
|
|
4
|
-
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
5
5
|
export declare class PageView implements IPageViewData, ISerializable {
|
|
6
6
|
static envelopeType: string;
|
|
7
7
|
static dataType: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IPageViewPerfData } from "../Interfaces/Contracts/IPageViewPerfData";
|
|
2
|
-
import { FieldType } from "../Enums";
|
|
3
|
-
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
4
1
|
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
2
|
+
import { FieldType } from "../Enums";
|
|
3
|
+
import { IPageViewPerfData } from "../Interfaces/Contracts/IPageViewPerfData";
|
|
5
4
|
import { IPageViewPerformanceTelemetry } from "../Interfaces/IPageViewPerformanceTelemetry";
|
|
5
|
+
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
6
6
|
export declare class PageViewPerformance implements IPageViewPerfData, ISerializable {
|
|
7
7
|
static envelopeType: string;
|
|
8
8
|
static dataType: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
1
2
|
import { FieldType } from "../Enums";
|
|
2
|
-
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
3
3
|
import { IRemoteDependencyData } from "../Interfaces/Contracts/IRemoteDependencyData";
|
|
4
|
-
import {
|
|
4
|
+
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
5
5
|
export declare class RemoteDependencyData implements IRemoteDependencyData, ISerializable {
|
|
6
6
|
static envelopeType: string;
|
|
7
7
|
static dataType: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
1
|
+
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
3
2
|
import { FieldType } from "../Enums";
|
|
3
|
+
import { IMessageData } from "../Interfaces/Contracts/IMessageData";
|
|
4
4
|
import { SeverityLevel } from "../Interfaces/Contracts/SeverityLevel";
|
|
5
|
-
import {
|
|
5
|
+
import { ISerializable } from "../Interfaces/Telemetry/ISerializable";
|
|
6
6
|
export declare class Trace implements IMessageData, ISerializable {
|
|
7
7
|
static envelopeType: string;
|
|
8
8
|
static dataType: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDiagnosticLogger, ITelemetryItem } from "@microsoft/applicationinsights-core-js";
|
|
2
2
|
/**
|
|
3
3
|
* Create a telemetry item that the 1DS channel understands
|
|
4
4
|
* @param item domain specific properties; part B
|
package/types/Util.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IDiagnosticLogger,
|
|
2
|
-
import { ICorrelationConfig } from "./Interfaces/ICorrelationConfig";
|
|
1
|
+
import { IDiagnosticLogger, IDistributedTraceContext, IPlugin } from "@microsoft/applicationinsights-core-js";
|
|
3
2
|
import { ITelemetryTrace } from "./Interfaces/Context/ITelemetryTrace";
|
|
3
|
+
import { ICorrelationConfig } from "./Interfaces/ICorrelationConfig";
|
|
4
4
|
export declare function isInternalApplicationInsightsEndpoint(endpointUrl: string): boolean;
|
|
5
5
|
export interface IUtil {
|
|
6
6
|
NotSpecified: string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const _DYN_SPLIT = "split";
|
|
2
|
+
export declare const _DYN_LENGTH = "length";
|
|
3
|
+
export declare const _DYN_TO_LOWER_CASE = "toLowerCase";
|
|
4
|
+
export declare const _DYN_INGESTIONENDPOINT = "ingestionendpoint";
|
|
5
|
+
export declare const _DYN_TO_STRING = "toString";
|
|
6
|
+
export declare const _DYN_REMOVE_ITEM = "removeItem";
|
|
7
|
+
export declare const _DYN_NAME = "name";
|
|
8
|
+
export declare const _DYN_PATHNAME = "pathname";
|
|
9
|
+
export declare const _DYN_CORRELATION_HEADER_E0 = "correlationHeaderExcludePatterns";
|
|
10
|
+
export declare const _DYN_INDEX_OF = "indexOf";
|
|
11
|
+
export declare const _DYN_EXTENSION_CONFIG = "extensionConfig";
|
|
12
|
+
export declare const _DYN_EXCEPTIONS = "exceptions";
|
|
13
|
+
export declare const _DYN_PARSED_STACK = "parsedStack";
|
|
14
|
+
export declare const _DYN_PROPERTIES = "properties";
|
|
15
|
+
export declare const _DYN_MEASUREMENTS = "measurements";
|
|
16
|
+
export declare const _DYN_STRINGIFY = "stringify";
|
|
17
|
+
export declare const _DYN_MESSAGE = "message";
|
|
18
|
+
export declare const _DYN_SIZE_IN_BYTES = "sizeInBytes";
|
|
19
|
+
export declare const _DYN_TYPE_NAME = "typeName";
|
|
20
|
+
export declare const _DYN_SEVERITY_LEVEL = "severityLevel";
|
|
21
|
+
export declare const _DYN_PROBLEM_GROUP = "problemGroup";
|
|
22
|
+
export declare const _DYN_IS_MANUAL = "isManual";
|
|
23
|
+
export declare const _DYN__CREATE_FROM_INTERFA1 = "CreateFromInterface";
|
|
24
|
+
export declare const _DYN_HAS_FULL_STACK = "hasFullStack";
|
|
25
|
+
export declare const _DYN_LEVEL = "level";
|
|
26
|
+
export declare const _DYN_METHOD = "method";
|
|
27
|
+
export declare const _DYN_ASSEMBLY = "assembly";
|
|
28
|
+
export declare const _DYN_FILE_NAME = "fileName";
|
|
29
|
+
export declare const _DYN_LINE = "line";
|
|
30
|
+
export declare const _DYN_DURATION = "duration";
|
|
31
|
+
export declare const _DYN_RECEIVED_RESPONSE = "receivedResponse";
|
|
32
|
+
export declare const _DYN_SUBSTRING = "substring";
|
|
33
|
+
export declare const _DYN_SANITIZE_KEY_AND_ADD2 = "sanitizeKeyAndAddUniqueness";
|
|
34
|
+
export declare const _DYN_SANITIZE_EXCEPTION = "sanitizeException";
|
|
35
|
+
export declare const _DYN_SANITIZE_PROPERTIES = "sanitizeProperties";
|
|
36
|
+
export declare const _DYN_SANITIZE_MEASUREMENT3 = "sanitizeMeasurements";
|
|
@@ -2,7 +2,7 @@ export { IUtil, Util, ICorrelationIdHelper, CorrelationIdHelper, IDateTimeUtils,
|
|
|
2
2
|
export { parseConnectionString, ConnectionStringParser } from "./ConnectionStringParser";
|
|
3
3
|
export { FieldType } from "./Enums";
|
|
4
4
|
export { IRequestHeaders, RequestHeaders, eRequestHeaders } from "./RequestResponseHeaders";
|
|
5
|
-
export { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, strNotSpecified } from "./Constants";
|
|
5
|
+
export { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, strNotSpecified } from "./Constants";
|
|
6
6
|
export { IData as AIData } from "./Interfaces/Contracts/IData";
|
|
7
7
|
export { IBase as AIBase } from "./Interfaces/Contracts/IBase";
|
|
8
8
|
export { ISerializable } from "./Interfaces/Telemetry/ISerializable";
|