@microsoft/applicationinsights-common 3.0.0-beta.2303-02 → 3.0.0-beta.2303-04
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-common.integrity.json +9 -9
- package/browser/applicationinsights-common.js +116 -33
- 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 +57 -9
- package/dist/applicationinsights-common.api.md +5 -5
- package/dist/applicationinsights-common.d.ts +16 -3
- package/dist/applicationinsights-common.js +116 -33
- 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 +16 -3
- 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 +1 -1
- package/dist-esm/HelperFuncs.js +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 +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/IThrottleMgr.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 +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 +1 -1
- package/dist-esm/Telemetry/Common/Envelope.js +1 -1
- package/dist-esm/Telemetry/Event.js +1 -1
- package/dist-esm/Telemetry/Exception.js +1 -1
- package/dist-esm/Telemetry/Metric.js +1 -1
- package/dist-esm/Telemetry/PageView.js +1 -1
- package/dist-esm/Telemetry/PageViewPerformance.js +1 -1
- package/dist-esm/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-esm/Telemetry/Trace.js +1 -1
- package/dist-esm/TelemetryItemCreator.js +1 -1
- package/dist-esm/ThrottleMgr.js +54 -34
- package/dist-esm/ThrottleMgr.js.map +1 -1
- package/dist-esm/UrlHelperFuncs.js +1 -1
- package/dist-esm/Util.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/applicationinsights-common.js +1 -1
- package/package.json +2 -2
- package/src/Enums.ts +10 -0
- package/src/Interfaces/IThrottleMgr.ts +4 -2
- package/src/ThrottleMgr.ts +61 -33
- package/src/applicationinsights-common.ts +1 -1
- package/types/Enums.d.ts +9 -0
- package/types/Interfaces/IThrottleMgr.d.ts +3 -1
- package/types/ThrottleMgr.d.ts +3 -2
- package/types/applicationinsights-common.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.0.0-beta.2303-
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.0.0-beta.2303-04
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -34,6 +34,7 @@ import { isValidTraceId } from '@microsoft/applicationinsights-core-js';
|
|
|
34
34
|
import { isValidTraceParent } from '@microsoft/applicationinsights-core-js';
|
|
35
35
|
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
36
36
|
import { ITraceParent } from '@microsoft/applicationinsights-core-js';
|
|
37
|
+
import { IUnloadHookContainer } from '@microsoft/applicationinsights-core-js';
|
|
37
38
|
import { parseTraceParent } from '@microsoft/applicationinsights-core-js';
|
|
38
39
|
|
|
39
40
|
/**
|
|
@@ -2028,8 +2029,9 @@ export declare interface IThrottleLocalStorageObj {
|
|
|
2028
2029
|
export declare interface IThrottleMgrConfig {
|
|
2029
2030
|
/**
|
|
2030
2031
|
* Identifies message key to be used for local storage key
|
|
2032
|
+
* Default: IThrottleMsgKey.default
|
|
2031
2033
|
*/
|
|
2032
|
-
msgKey
|
|
2034
|
+
msgKey?: IThrottleMsgKey;
|
|
2033
2035
|
/**
|
|
2034
2036
|
* Identifies if throttle is disabled
|
|
2035
2037
|
* Default: false
|
|
@@ -2037,6 +2039,7 @@ export declare interface IThrottleMgrConfig {
|
|
|
2037
2039
|
disabled?: boolean;
|
|
2038
2040
|
/**
|
|
2039
2041
|
* Identifies limit number/percentage of items sent per time
|
|
2042
|
+
* Default: sampling percentage 0.01% with one item sent per time
|
|
2040
2043
|
*/
|
|
2041
2044
|
limit?: IThrottleLimit;
|
|
2042
2045
|
/**
|
|
@@ -2047,8 +2050,17 @@ export declare interface IThrottleMgrConfig {
|
|
|
2047
2050
|
}
|
|
2048
2051
|
|
|
2049
2052
|
export declare const enum IThrottleMsgKey {
|
|
2053
|
+
/**
|
|
2054
|
+
* Default Message key for non pre-defined message
|
|
2055
|
+
*/
|
|
2050
2056
|
default = 0,
|
|
2057
|
+
/**
|
|
2058
|
+
* Message key for ikey Deprecation
|
|
2059
|
+
*/
|
|
2051
2060
|
ikeyDeprecate = 1,
|
|
2061
|
+
/**
|
|
2062
|
+
* Message key for cdn Deprecation
|
|
2063
|
+
*/
|
|
2052
2064
|
cdnDeprecate = 2
|
|
2053
2065
|
}
|
|
2054
2066
|
|
|
@@ -2465,7 +2477,8 @@ export declare class ThrottleMgr {
|
|
|
2465
2477
|
isReady: () => boolean;
|
|
2466
2478
|
onReadyState: (isReady?: boolean) => boolean;
|
|
2467
2479
|
flush: () => boolean;
|
|
2468
|
-
|
|
2480
|
+
config: IThrottleMgrConfig;
|
|
2481
|
+
constructor(config?: IThrottleMgrConfig, core?: IAppInsightsCore, namePrefix?: string, unloadHookContainer?: IUnloadHookContainer);
|
|
2469
2482
|
}
|
|
2470
2483
|
|
|
2471
2484
|
export declare class Trace implements IMessageData, ISerializable {
|
package/dist-esm/Constants.js
CHANGED
package/dist-esm/Enums.js
CHANGED
package/dist-esm/HelperFuncs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-04
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { ContextTagKeys } from "./Contracts/ContextTagKeys";
|