@microsoft/applicationinsights-common 3.3.0-nightly3.2406-07 → 3.3.0-nightly3.2406-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/applicationinsights-common.cjs.js +2 -2
- package/browser/es5/applicationinsights-common.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-common.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.js +4 -4
- package/browser/es5/applicationinsights-common.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.integrity.json +25 -25
- package/browser/es5/applicationinsights-common.js +4 -4
- package/browser/es5/applicationinsights-common.js.map +1 -1
- package/browser/es5/applicationinsights-common.min.js +2 -2
- package/browser/es5/applicationinsights-common.min.js.map +1 -1
- package/dist/es5/applicationinsights-common.js +2 -2
- package/dist/es5/applicationinsights-common.js.map +1 -1
- package/dist/es5/applicationinsights-common.min.js +2 -2
- package/dist/es5/applicationinsights-common.min.js.map +1 -1
- package/dist-es5/ConnectionStringParser.js +1 -1
- package/dist-es5/Constants.js +1 -1
- package/dist-es5/DomHelperFuncs.js +1 -1
- package/dist-es5/Enums.js +1 -1
- package/dist-es5/HelperFuncs.js +1 -1
- package/dist-es5/Interfaces/ConnectionString.js +1 -1
- package/dist-es5/Interfaces/Context/IApplication.js +1 -1
- package/dist-es5/Interfaces/Context/IDevice.js +1 -1
- package/dist-es5/Interfaces/Context/IInternal.js +1 -1
- package/dist-es5/Interfaces/Context/ILocation.js +1 -1
- package/dist-es5/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-es5/Interfaces/Context/ISample.js +1 -1
- package/dist-es5/Interfaces/Context/ISession.js +1 -1
- package/dist-es5/Interfaces/Context/ISessionManager.js +1 -1
- package/dist-es5/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-es5/Interfaces/Context/IUser.js +1 -1
- package/dist-es5/Interfaces/Context/IWeb.js +1 -1
- package/dist-es5/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/dist-es5/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-es5/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-es5/Interfaces/Contracts/IBase.js +1 -1
- package/dist-es5/Interfaces/Contracts/IData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-es5/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-es5/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-es5/Interfaces/IAppInsights.js +1 -1
- package/dist-es5/Interfaces/IConfig.js +1 -1
- package/dist-es5/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-es5/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-es5/Interfaces/IEventTelemetry.js +1 -1
- package/dist-es5/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-es5/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPartC.js +1 -1
- package/dist-es5/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-es5/Interfaces/IRequestContext.js +1 -1
- package/dist-es5/Interfaces/IStorageBuffer.js +1 -1
- package/dist-es5/Interfaces/ITelemetryContext.js +1 -1
- package/dist-es5/Interfaces/IThrottleMgr.js +1 -1
- package/dist-es5/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-es5/Interfaces/PartAExtensions.js +1 -1
- package/dist-es5/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-es5/Offline.js +1 -1
- package/dist-es5/RequestResponseHeaders.js +1 -1
- package/dist-es5/StorageHelperFuncs.js +1 -1
- package/dist-es5/Telemetry/Common/Data.js +1 -1
- package/dist-es5/Telemetry/Common/DataPoint.js +1 -1
- package/dist-es5/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-es5/Telemetry/Common/Envelope.js +1 -1
- package/dist-es5/Telemetry/Event.js +1 -1
- package/dist-es5/Telemetry/Exception.js +1 -1
- package/dist-es5/Telemetry/Metric.js +1 -1
- package/dist-es5/Telemetry/PageView.js +1 -1
- package/dist-es5/Telemetry/PageViewPerformance.js +1 -1
- package/dist-es5/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-es5/Telemetry/Trace.js +1 -1
- package/dist-es5/TelemetryItemCreator.js +1 -1
- package/dist-es5/ThrottleMgr.js +1 -1
- package/dist-es5/UrlHelperFuncs.js +1 -1
- package/dist-es5/Util.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-common.js +1 -1
- package/package.json +2 -2
- package/types/applicationinsights-common.d.ts +2 -2
- package/types/applicationinsights-common.namespaced.d.ts +52 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-common",
|
|
3
|
-
"version": "3.3.0-nightly3.2406-
|
|
3
|
+
"version": "3.3.0-nightly3.2406-08",
|
|
4
4
|
"description": "Microsoft Application Insights Common JavaScript Library",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
58
|
-
"@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-
|
|
58
|
+
"@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-08",
|
|
59
59
|
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
60
60
|
"@nevware21/ts-utils": ">= 0.11.1 < 2.x"
|
|
61
61
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.3.0-nightly3.2406-
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.3.0-nightly3.2406-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -67,7 +67,7 @@ export declare class ConfigurationManager {
|
|
|
67
67
|
static getConfig(config: IConfiguration & IConfig, field: string, identifier?: string, defaultValue?: number | string | boolean): number | string | boolean;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
declare type ConnectionString = {
|
|
70
|
+
export declare type ConnectionString = {
|
|
71
71
|
[key in ConnectionStringKey]?: string;
|
|
72
72
|
};
|
|
73
73
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.3.0-nightly3.2406-
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.3.0-nightly3.2406-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -268,6 +268,23 @@ declare namespace ApplicationInsights {
|
|
|
268
268
|
|
|
269
269
|
function dsPadNumber(num: number): string;
|
|
270
270
|
|
|
271
|
+
const enum eActiveStatus {
|
|
272
|
+
NONE = 0,
|
|
273
|
+
/**
|
|
274
|
+
* inactive status means there might be rejected ikey/endpoint promises or ikey/endpoint resolved is not valid
|
|
275
|
+
*/
|
|
276
|
+
INACTIVE = 1,
|
|
277
|
+
/**
|
|
278
|
+
* active mean ikey/endpoint promises is resolved and initializing with ikey/endpoint is successful
|
|
279
|
+
*/
|
|
280
|
+
ACTIVE = 2,
|
|
281
|
+
/**
|
|
282
|
+
* Waiting for promises to be resolved
|
|
283
|
+
* NOTE: if status is set to be pending, incoming changes will be dropped until pending status is removed
|
|
284
|
+
*/
|
|
285
|
+
PENDING = 3
|
|
286
|
+
}
|
|
287
|
+
|
|
271
288
|
const enum eDistributedTracingModes {
|
|
272
289
|
/**
|
|
273
290
|
* (Default) Send Application Insights correlation headers
|
|
@@ -372,7 +389,8 @@ declare namespace ApplicationInsights {
|
|
|
372
389
|
DynamicConfigException = 108,
|
|
373
390
|
DefaultThrottleMsgKey = 109,
|
|
374
391
|
CdnDeprecation = 110,
|
|
375
|
-
SdkLdrUpdate = 111
|
|
392
|
+
SdkLdrUpdate = 111,
|
|
393
|
+
InitPromiseException = 112
|
|
376
394
|
}
|
|
377
395
|
|
|
378
396
|
const enum eLoggingSeverity {
|
|
@@ -841,6 +859,21 @@ declare namespace ApplicationInsights {
|
|
|
841
859
|
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
842
860
|
*/
|
|
843
861
|
getWParam: () => number;
|
|
862
|
+
/**
|
|
863
|
+
* Watches and tracks status of initialization process
|
|
864
|
+
* @returns ActiveStatus
|
|
865
|
+
* @since 3.3.0
|
|
866
|
+
* If returned status is active, it means initialization process is completed.
|
|
867
|
+
* If returned status is pending, it means the initialization process is waiting for promieses to be resolved.
|
|
868
|
+
* If returned status is inactive, it means ikey is invalid or can 't get ikey or enpoint url from promsises.
|
|
869
|
+
*/
|
|
870
|
+
activeStatus?: () => eActiveStatus | number;
|
|
871
|
+
/**
|
|
872
|
+
* Set Active Status to pending, which will block the incoming changes until internal promises are resolved
|
|
873
|
+
* @internal Internal use
|
|
874
|
+
* @since 3.3.0
|
|
875
|
+
*/
|
|
876
|
+
_setPendingStatus?: () => void;
|
|
844
877
|
}
|
|
845
878
|
|
|
846
879
|
interface IApplication {
|
|
@@ -1425,11 +1458,11 @@ declare namespace ApplicationInsights {
|
|
|
1425
1458
|
/**
|
|
1426
1459
|
* Instrumentation key of resource. Either this or connectionString must be specified.
|
|
1427
1460
|
*/
|
|
1428
|
-
instrumentationKey?: string
|
|
1461
|
+
instrumentationKey?: string | IPromise<string>;
|
|
1429
1462
|
/**
|
|
1430
1463
|
* Connection string of resource. Either this or instrumentationKey must be specified.
|
|
1431
1464
|
*/
|
|
1432
|
-
connectionString?: string
|
|
1465
|
+
connectionString?: string | IPromise<string>;
|
|
1433
1466
|
/**
|
|
1434
1467
|
* Set the timer interval (in ms) for internal logging queue, this is the
|
|
1435
1468
|
* amount of time to wait after logger.queue messages are detected to be sent.
|
|
@@ -1473,7 +1506,7 @@ declare namespace ApplicationInsights {
|
|
|
1473
1506
|
/**
|
|
1474
1507
|
* Endpoint where telemetry data is sent
|
|
1475
1508
|
*/
|
|
1476
|
-
endpointUrl?: string
|
|
1509
|
+
endpointUrl?: string | IPromise<string>;
|
|
1477
1510
|
/**
|
|
1478
1511
|
* Extension configs loaded in SDK
|
|
1479
1512
|
*/
|
|
@@ -1575,6 +1608,20 @@ declare namespace ApplicationInsights {
|
|
|
1575
1608
|
* @defaultValue undefined
|
|
1576
1609
|
*/
|
|
1577
1610
|
featureOptIn?: IFeatureOptIn;
|
|
1611
|
+
/**
|
|
1612
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1613
|
+
* this config is to manually set timeout for those promises.
|
|
1614
|
+
* Default: 50000ms
|
|
1615
|
+
* @since 3.3.0
|
|
1616
|
+
*/
|
|
1617
|
+
initTimeOut?: number;
|
|
1618
|
+
/**
|
|
1619
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1620
|
+
* this config is to manually set in memory proxy track calls count limit before promises finished.
|
|
1621
|
+
* Default: 100
|
|
1622
|
+
* @since 3.3.0
|
|
1623
|
+
*/
|
|
1624
|
+
initInMemoMaxSize?: number;
|
|
1578
1625
|
}
|
|
1579
1626
|
|
|
1580
1627
|
interface IContextTagKeys {
|