@microsoft/applicationinsights-debugplugin-js 3.4.5-nightly3.2609-07 → 3.4.5-nightly3.2609-08
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/es5/{ai.dbg.3.4.5-nightly3.2609-07.cjs.js → ai.dbg.3.4.5-nightly3.2609-08.cjs.js} +9 -8
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-08.cjs.js.map +1 -0
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-08.cjs.min.js +6 -0
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-08.cjs.min.js.map +1 -0
- package/browser/es5/{ai.dbg.3.4.5-nightly3.2609-07.gbl.js → ai.dbg.3.4.5-nightly3.2609-08.gbl.js} +11 -10
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-08.gbl.js.map +1 -0
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-08.gbl.min.js +6 -0
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-08.gbl.min.js.map +1 -0
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-08.integrity.json +66 -0
- package/browser/es5/{ai.dbg.3.4.5-nightly3.2609-07.js → ai.dbg.3.4.5-nightly3.2609-08.js} +11 -10
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-08.js.map +1 -0
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-08.min.js +6 -0
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-08.min.js.map +1 -0
- package/browser/es5/ai.dbg.3.cjs.js +8 -7
- package/browser/es5/ai.dbg.3.cjs.js.map +1 -1
- package/browser/es5/ai.dbg.3.cjs.min.js +2 -2
- package/browser/es5/ai.dbg.3.cjs.min.js.map +1 -1
- package/browser/es5/ai.dbg.3.gbl.js +10 -9
- package/browser/es5/ai.dbg.3.gbl.js.map +1 -1
- package/browser/es5/ai.dbg.3.gbl.min.js +2 -2
- package/browser/es5/ai.dbg.3.gbl.min.js.map +1 -1
- package/browser/es5/ai.dbg.3.integrity.json +25 -25
- package/browser/es5/ai.dbg.3.js +10 -9
- package/browser/es5/ai.dbg.3.js.map +1 -1
- package/browser/es5/ai.dbg.3.min.js +2 -2
- package/browser/es5/ai.dbg.3.min.js.map +1 -1
- package/dist/es5/applicationinsights-debugplugin-js.js +8 -7
- package/dist/es5/applicationinsights-debugplugin-js.js.map +1 -1
- package/dist/es5/applicationinsights-debugplugin-js.min.js +2 -2
- package/dist/es5/applicationinsights-debugplugin-js.min.js.map +1 -1
- package/dist-es5/DebugPlugin.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-debugplugin-js.js +1 -1
- package/dist-es5/components/Dashboard.js +1 -1
- package/dist-es5/components/LogEntry.js +1 -1
- package/dist-es5/components/debugBins.js +1 -1
- package/dist-es5/components/filterList.js +1 -1
- package/dist-es5/components/helpers.js +1 -1
- package/dist-es5/components/styleNodeSrc.js +1 -1
- package/dist-es5/interfaces/IDebugPluginConfig.js +1 -1
- package/package.json +2 -2
- package/types/applicationinsights-debugplugin-js.d.ts +1 -1
- package/types/applicationinsights-debugplugin-js.namespaced.d.ts +220 -3
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-07.cjs.js.map +0 -1
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-07.cjs.min.js +0 -6
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-07.cjs.min.js.map +0 -1
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-07.gbl.js.map +0 -1
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-07.gbl.min.js +0 -6
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-07.gbl.min.js.map +0 -1
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-07.integrity.json +0 -66
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-07.js.map +0 -1
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-07.min.js +0 -6
- package/browser/es5/ai.dbg.3.4.5-nightly3.2609-07.min.js.map +0 -1
package/dist-es5/DebugPlugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Debug Plugin, 3.4.5-nightly3.2609-
|
|
2
|
+
* Application Insights JavaScript SDK - Debug Plugin, 3.4.5-nightly3.2609-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Debug Plugin, 3.4.5-nightly3.2609-
|
|
2
|
+
* Application Insights JavaScript SDK - Debug Plugin, 3.4.5-nightly3.2609-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { isArray, isBoolean, isError, isNumber, isObject, isString, objToString } from "@microsoft/applicationinsights-core-js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-debugplugin-js",
|
|
3
|
-
"version": "3.4.5-nightly3.2609-
|
|
3
|
+
"version": "3.4.5-nightly3.2609-08",
|
|
4
4
|
"description": "Microsoft Application Insights JavaScript SDK - Debug Plugin extension",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
59
|
-
"@microsoft/applicationinsights-core-js": "3.4.5-nightly3.2609-
|
|
59
|
+
"@microsoft/applicationinsights-core-js": "3.4.5-nightly3.2609-08",
|
|
60
60
|
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
61
61
|
"@nevware21/ts-utils": ">= 0.14.0 < 2.x"
|
|
62
62
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 3.4.5-nightly3.2609-
|
|
2
|
+
* Microsoft.ApplicationInsights, 3.4.5-nightly3.2609-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -111,6 +111,15 @@ declare namespace ApplicationInsights {
|
|
|
111
111
|
protected _addHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
/**
|
|
115
|
+
* Creates and initializes the isolated core used to send SDK Stats.
|
|
116
|
+
* @param config - The SDK Stats configuration containing the resolved iKey and endpoint.
|
|
117
|
+
* Implementations must handle creation errors and return null rather than throw.
|
|
118
|
+
* @returns The initialized core instance, or null when an SDK Stats pipeline cannot be created.
|
|
119
|
+
* @since 3.4.4
|
|
120
|
+
*/
|
|
121
|
+
type CreateStatsCoreFn = (config: IConfiguration) => IAppInsightsCore | null;
|
|
122
|
+
|
|
114
123
|
class DebugPlugin extends BaseTelemetryPlugin {
|
|
115
124
|
static identifier: string;
|
|
116
125
|
identifier: string;
|
|
@@ -271,8 +280,8 @@ declare namespace ApplicationInsights {
|
|
|
271
280
|
CdnDeprecation = 110,
|
|
272
281
|
SdkLdrUpdate = 111,
|
|
273
282
|
InitPromiseException = 112,
|
|
274
|
-
|
|
275
|
-
|
|
283
|
+
InternalSdkStatsManagerException = 113,
|
|
284
|
+
InternalSdkStatsException = 114,
|
|
276
285
|
AttributeError = 115,
|
|
277
286
|
SpanError = 116,
|
|
278
287
|
TraceError = 117,
|
|
@@ -495,6 +504,20 @@ declare namespace ApplicationInsights {
|
|
|
495
504
|
*/
|
|
496
505
|
addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
|
|
497
506
|
pollInternalLogs?(eventName?: string): ITimerHandler;
|
|
507
|
+
/**
|
|
508
|
+
* Get the current stats beat instance for the provided configuration, if enabled.
|
|
509
|
+
* @param internalSdkStatsConfig - The configuration to use to create the stats beat instance.
|
|
510
|
+
* @returns The stats beat instance or null if not available
|
|
511
|
+
*/
|
|
512
|
+
getSdkStats?(internalSdkStatsConfig: IInternalSdkStatsState): IInternalSdkStats;
|
|
513
|
+
/**
|
|
514
|
+
* Set the stats beat manager instance which will be used to create the stats beat instances
|
|
515
|
+
* using the provided configuration. This is used to provide greater control over the stats beat
|
|
516
|
+
* instance creation and management.
|
|
517
|
+
* @param statsMgrCfg - The configuration to use to create the stats beat instance.
|
|
518
|
+
* @returns The stats beat instance or null if not available
|
|
519
|
+
*/
|
|
520
|
+
setStatsMgr?(statsMgrCfg?: IStatsMgr): void;
|
|
498
521
|
stopPollingInternalLogs?(): void;
|
|
499
522
|
/**
|
|
500
523
|
* Return a new instance of the IProcessTelemetryContext for processing events
|
|
@@ -1151,6 +1174,13 @@ declare namespace ApplicationInsights {
|
|
|
1151
1174
|
* @example ["sig", "Signature", "AWSAccessKeyId", "X-Goog-Signature","auth_token", "api_key", "private_data"]
|
|
1152
1175
|
*/
|
|
1153
1176
|
redactQueryParams?: string[];
|
|
1177
|
+
/**
|
|
1178
|
+
* [Optional] Configuration for the SDK Stats (internal SDK statistics) collection. This may be
|
|
1179
|
+
* supplied / overridden via the CDN / dynamic config to change the SDK Stats behaviour at runtime.
|
|
1180
|
+
* Whether collection is enabled and the destination host are read at runtime from the SDK Stats
|
|
1181
|
+
* configuration (`cfg/v1.json`).
|
|
1182
|
+
*/
|
|
1183
|
+
stats?: IInternalSdkStatsConfig;
|
|
1154
1184
|
/**
|
|
1155
1185
|
* [Optional] Controls if the SDK should look for the `traceparent` and/or `tracestate` values from
|
|
1156
1186
|
* the service timing headers or meta tags from the initial page load.
|
|
@@ -1817,6 +1847,123 @@ declare namespace ApplicationInsights {
|
|
|
1817
1847
|
createOneDSPayload?: (evts: ITelemetryItem[]) => IPayloadData;
|
|
1818
1848
|
}
|
|
1819
1849
|
|
|
1850
|
+
/**
|
|
1851
|
+
* The interface for the stats beat plugin, which is responsible for collecting and sending statistics about the SDK.
|
|
1852
|
+
* It is used to track the performance and usage of the SDK, and to identify any issues or errors that may occur.
|
|
1853
|
+
* @since 3.4.4
|
|
1854
|
+
*/
|
|
1855
|
+
interface IInternalSdkStats {
|
|
1856
|
+
/**
|
|
1857
|
+
* Returns whether this instance of the stats beat is enabled or not.
|
|
1858
|
+
* @returns True if the stats beat is enabled, false otherwise.
|
|
1859
|
+
*/
|
|
1860
|
+
enabled: boolean;
|
|
1861
|
+
/**
|
|
1862
|
+
* Return the current endpoint where the stats beat is sending events.
|
|
1863
|
+
* @returns The current endpoint URL.
|
|
1864
|
+
*/
|
|
1865
|
+
endpoint: string;
|
|
1866
|
+
/**
|
|
1867
|
+
* Count the number of events sent to the endpoint with the given status code.
|
|
1868
|
+
* @param status - The status code of the event.
|
|
1869
|
+
* @param payloadData - The payload data of the event.
|
|
1870
|
+
* @param endpoint - The endpoint where the event was sent.
|
|
1871
|
+
*/
|
|
1872
|
+
count(status: number, payloadData: IPayloadData, endpoint: string): void;
|
|
1873
|
+
/**
|
|
1874
|
+
* Record an exception for the given endpoint and exception type.
|
|
1875
|
+
* @param endpoint - The endpoint where the exception occurred.
|
|
1876
|
+
* @param exceptionType - The type of the exception.
|
|
1877
|
+
*/
|
|
1878
|
+
countException(endpoint: string, exceptionType: string): void;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* The parsed result of the remote SDK Stats configuration (`cfg/v1.json`). It identifies whether
|
|
1883
|
+
* SDK Stats collection is currently enabled and the host that matching events should be sent to.
|
|
1884
|
+
* @since 3.4.4
|
|
1885
|
+
*/
|
|
1886
|
+
interface IInternalSdkStatsCfgResult {
|
|
1887
|
+
/**
|
|
1888
|
+
* Identifies whether SDK Stats collection is enabled. When false the SDK Stats events are not
|
|
1889
|
+
* sent (the feature is effectively disabled by the distro-owned configuration).
|
|
1890
|
+
*/
|
|
1891
|
+
enabled: boolean;
|
|
1892
|
+
/**
|
|
1893
|
+
* The host that the SDK Stats events should be sent to (host only, for example
|
|
1894
|
+
* `data.stats.monitor.azure.com`). The ingestion path (`/v2/track`) is appended by the SDK.
|
|
1895
|
+
*/
|
|
1896
|
+
url: string;
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* The configuration for the stats beat definition
|
|
1901
|
+
* @since 3.4.4
|
|
1902
|
+
*/
|
|
1903
|
+
interface IInternalSdkStatsConfig {
|
|
1904
|
+
/**
|
|
1905
|
+
* Percentage of generated SDK Stats telemetry that is sent. Each generated SDK Stats item is
|
|
1906
|
+
* sampled independently using the current dynamic value. Included telemetry is stamped with this
|
|
1907
|
+
* value so the ingestion service can account for the sampling rate.
|
|
1908
|
+
*
|
|
1909
|
+
* Values must be between 0 and 100. Invalid values use the default.
|
|
1910
|
+
* @default 100
|
|
1911
|
+
*/
|
|
1912
|
+
samplingPercentage?: number;
|
|
1913
|
+
/**
|
|
1914
|
+
* Collection interval in seconds. Counters persist in session storage across page loads.
|
|
1915
|
+
* Non-positive values are ignored and the default is used instead.
|
|
1916
|
+
* @default 3600 (1 hour)
|
|
1917
|
+
*/
|
|
1918
|
+
shrtInt?: number;
|
|
1919
|
+
/**
|
|
1920
|
+
* The url of the remote SDK Stats configuration (`cfg/v1.json`) that identifies whether SDK Stats
|
|
1921
|
+
* collection is currently enabled and the host that the events should be sent to. This value is
|
|
1922
|
+
* normally delivered by the CDN / dynamic configuration rather than being hard coded by the SDK.
|
|
1923
|
+
*
|
|
1924
|
+
* When the customer endpoint maps to an EU data-boundary region the `eu-` prefix is automatically
|
|
1925
|
+
* inserted in front of the host, e.g. `https://data.stats.monitor.azure.com/cfg/v1.json` becomes
|
|
1926
|
+
* `https://eu-data.stats.monitor.azure.com/cfg/v1.json`.
|
|
1927
|
+
*
|
|
1928
|
+
* When not supplied no SDK Stats are collected or sent.
|
|
1929
|
+
* @default undefined
|
|
1930
|
+
*/
|
|
1931
|
+
cfgUrl?: string;
|
|
1932
|
+
/**
|
|
1933
|
+
* Instrumentation key used for SDK Stats events. When omitted, SDK Stats are not sent.
|
|
1934
|
+
* @default undefined
|
|
1935
|
+
*/
|
|
1936
|
+
iKey?: string;
|
|
1937
|
+
/** Snippet version appended to the SDK Stats version. */
|
|
1938
|
+
snp?: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* Optional override for the function used to fetch the remote SDK Stats configuration
|
|
1941
|
+
* (`cfg/v1.json`). When not provided the default fetch / XHR based implementation is used. This
|
|
1942
|
+
* is primarily intended for testing or advanced scenarios where the configuration needs to be
|
|
1943
|
+
* resolved through a custom mechanism.
|
|
1944
|
+
*/
|
|
1945
|
+
overrideCfgFn?: InternalSdkStatsCfgFetchFn;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* The configuration passed to the stats beat plugin to record statistics about the SDK
|
|
1950
|
+
* @since 3.4.4
|
|
1951
|
+
*/
|
|
1952
|
+
interface IInternalSdkStatsState {
|
|
1953
|
+
/**
|
|
1954
|
+
* The current instrumentation key.
|
|
1955
|
+
*/
|
|
1956
|
+
cKey: string;
|
|
1957
|
+
/**
|
|
1958
|
+
* The current endpoint where the events are sent.
|
|
1959
|
+
*/
|
|
1960
|
+
endpoint: string;
|
|
1961
|
+
/**
|
|
1962
|
+
* The current Sdk version.
|
|
1963
|
+
*/
|
|
1964
|
+
sdkVer?: string;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1820
1967
|
/**
|
|
1821
1968
|
* An alternate interface which provides automatic removal during unloading of the component
|
|
1822
1969
|
*/
|
|
@@ -1991,6 +2138,16 @@ declare namespace ApplicationInsights {
|
|
|
1991
2138
|
|
|
1992
2139
|
type _InternalMessageId = number | _eInternalMessageId;
|
|
1993
2140
|
|
|
2141
|
+
/**
|
|
2142
|
+
* The signature of the function used to fetch (and parse) the remote SDK Stats configuration. It is
|
|
2143
|
+
* primarily used to allow the fetch implementation to be overridden (for testing or advanced
|
|
2144
|
+
* scenarios) via {@link IInternalSdkStatsConfig.overrideCfgFn}.
|
|
2145
|
+
* @param cfgUrl - The SDK Stats configuration URL (`cfg/v1.json`) to fetch.
|
|
2146
|
+
* @param oncomplete - The callback to invoke with the parsed configuration, or null on any failure.
|
|
2147
|
+
* @since 3.4.4
|
|
2148
|
+
*/
|
|
2149
|
+
type InternalSdkStatsCfgFetchFn = (cfgUrl: string, oncomplete: (result: IInternalSdkStatsCfgResult | null) => void) => void;
|
|
2150
|
+
|
|
1994
2151
|
/**
|
|
1995
2152
|
* The main OpenTelemetry API interface that provides access to all OpenTelemetry functionality.
|
|
1996
2153
|
* This interface extends the IOTelTracerProvider and serves as the entry point for OpenTelemetry operations.
|
|
@@ -3523,6 +3680,45 @@ declare namespace ApplicationInsights {
|
|
|
3523
3680
|
restore(): void;
|
|
3524
3681
|
}
|
|
3525
3682
|
|
|
3683
|
+
/**
|
|
3684
|
+
* The Interface which defines the InternalSdkStats manager, which is responsible for creating and
|
|
3685
|
+
* managing the InternalSdkStats instance.
|
|
3686
|
+
* @since 3.3.7
|
|
3687
|
+
*/
|
|
3688
|
+
interface IStatsMgr {
|
|
3689
|
+
/**
|
|
3690
|
+
* If there is a manager instance available, this will identify if the manager is enabled or not.
|
|
3691
|
+
* @returns True if the manager is enabled, false otherwise.
|
|
3692
|
+
*/
|
|
3693
|
+
readonly enabled: boolean;
|
|
3694
|
+
/**
|
|
3695
|
+
* Initialize and associate this manager with the provided core instance. The manager reads its
|
|
3696
|
+
* configuration directly from the single global config (`config.stats`) and gates itself behind
|
|
3697
|
+
* the SDK Stats feature flag, so any changes made via the CDN / dynamic config are picked up at
|
|
3698
|
+
* runtime.
|
|
3699
|
+
* @param core - The core instance to associate with this manager.
|
|
3700
|
+
* @param createStatsCore - Creates an isolated, initialized core for SDK Stats. The callback lets
|
|
3701
|
+
* each SKU select the appropriate channel and plugins without using the customer's pipeline.
|
|
3702
|
+
* @param featureName - The optional featureOptIn name used to gate the manager. Defaults to the
|
|
3703
|
+
* SDK Stats feature (`STATS_SDK_FEATURE`) which is enabled by default and can be opted-out via the
|
|
3704
|
+
* `featureOptIn` configuration.
|
|
3705
|
+
* @param useFeature - Optional feature operation throttle supplied by the SKU.
|
|
3706
|
+
* @returns The unload hook for the stats beat manager, which can be used to unload
|
|
3707
|
+
* and disable the manager. This may return null if the manager cannot be initialized.
|
|
3708
|
+
* @remarks This method should be called only once, and it may throw an error if called multiple times.
|
|
3709
|
+
*/
|
|
3710
|
+
init: <CfgType extends IConfiguration = IConfiguration>(core: IAppInsightsCore<CfgType>, createStatsCore: CreateStatsCoreFn, featureName?: string, useFeature?: UseFeatureFn) => IUnloadHook | null;
|
|
3711
|
+
/**
|
|
3712
|
+
* Returns a new {@link IInternalSdkStats} instance for the current state which includes the endpoint.
|
|
3713
|
+
* This method should be called only after the manager has been initialized and the
|
|
3714
|
+
* {@link IInternalSdkStatsConfig} has been set, otherwise it will return null.
|
|
3715
|
+
* @param state - The current state of the stats beat manager.
|
|
3716
|
+
* @returns A new instance of the stats beat or null if the manager or the configuration does not support
|
|
3717
|
+
* the {@link IInternalSdkStatsState}.
|
|
3718
|
+
*/
|
|
3719
|
+
newInst: (state: IInternalSdkStatsState) => IInternalSdkStats;
|
|
3720
|
+
}
|
|
3721
|
+
|
|
3526
3722
|
interface ITelemetryInitializerHandler extends ILegacyUnloadHook {
|
|
3527
3723
|
remove(): void;
|
|
3528
3724
|
}
|
|
@@ -3668,6 +3864,21 @@ declare namespace ApplicationInsights {
|
|
|
3668
3864
|
removed?: IPlugin[];
|
|
3669
3865
|
}
|
|
3670
3866
|
|
|
3867
|
+
/**
|
|
3868
|
+
* Identifies throttle result
|
|
3869
|
+
*/
|
|
3870
|
+
interface IThrottleResult {
|
|
3871
|
+
/**
|
|
3872
|
+
* Identifies if items are sent
|
|
3873
|
+
*/
|
|
3874
|
+
isThrottled: boolean;
|
|
3875
|
+
/**
|
|
3876
|
+
* Identifies numbers of items are sent
|
|
3877
|
+
* if isThrottled is false, it will be set to 0
|
|
3878
|
+
*/
|
|
3879
|
+
throttleNum: number;
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3671
3882
|
/**
|
|
3672
3883
|
* A Timer handler which is returned from {@link scheduleTimeout} which contains functions to
|
|
3673
3884
|
* cancel or restart (refresh) the timeout function.
|
|
@@ -4292,6 +4503,12 @@ declare namespace ApplicationInsights {
|
|
|
4292
4503
|
|
|
4293
4504
|
type UrlRedactionOptions = boolean | eUrlRedactionOptions;
|
|
4294
4505
|
|
|
4506
|
+
/**
|
|
4507
|
+
* Runs a dynamically configured feature operation when its throttle allows it.
|
|
4508
|
+
* @since 3.4.4
|
|
4509
|
+
*/
|
|
4510
|
+
type UseFeatureFn = (feature: string, callback: () => void, sdkDefaultState?: boolean) => IThrottleResult | null;
|
|
4511
|
+
|
|
4295
4512
|
type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
|
|
4296
4513
|
|
|
4297
4514
|
}
|