@microsoft/applicationinsights-core-js 3.0.0-beta.2210-21 → 3.0.0-beta.2211-01
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-core-js.integrity.json +9 -9
- package/browser/applicationinsights-core-js.js +73 -14
- package/browser/applicationinsights-core-js.js.map +1 -1
- package/browser/applicationinsights-core-js.min.js +2 -2
- package/browser/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.api.json +197 -36
- package/dist/applicationinsights-core-js.api.md +7 -3
- package/dist/applicationinsights-core-js.d.ts +33 -2
- package/dist/applicationinsights-core-js.js +73 -14
- package/dist/applicationinsights-core-js.js.map +1 -1
- package/dist/applicationinsights-core-js.min.js +2 -2
- package/dist/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.rollup.d.ts +33 -2
- package/dist-esm/Config/ConfigDefaults.js +1 -1
- package/dist-esm/Config/DynamicConfig.js +1 -1
- package/dist-esm/Config/DynamicProperty.js +1 -1
- package/dist-esm/Config/DynamicState.js +1 -1
- package/dist-esm/Config/DynamicSupport.js +1 -1
- package/dist-esm/Config/IConfigDefaults.js +1 -1
- package/dist-esm/Config/IDynamicConfigHandler.js +1 -1
- package/dist-esm/Config/IDynamicPropertyHandler.js +1 -1
- package/dist-esm/Config/IDynamicWatcher.js +1 -1
- package/dist-esm/Config/_IDynamicConfigHandlerState.js +1 -1
- package/dist-esm/JavaScriptSDK/AggregationError.js +1 -1
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +71 -9
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
- package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
- package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js +5 -6
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js.map +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
- package/dist-esm/__DynamicConstants.js +6 -7
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-core-js.js +1 -1
- package/package.json +1 -1
- package/src/JavaScriptSDK/AppInsightsCore.ts +100 -10
- package/src/JavaScriptSDK.Interfaces/IAppInsightsCore.ts +15 -0
- package/src/JavaScriptSDK.Interfaces/IConfiguration.ts +6 -0
- package/types/JavaScriptSDK/AppInsightsCore.d.ts +15 -1
- package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +12 -0
- package/types/JavaScriptSDK.Interfaces/IConfiguration.d.ts +5 -0
- package/types/__DynamicConstants.d.ts +1 -2
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.33.
|
|
4
|
+
"toolVersion": "7.33.6",
|
|
5
5
|
"schemaVersion": 1010,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -3043,40 +3043,6 @@
|
|
|
3043
3043
|
"name": "AppInsightsCore",
|
|
3044
3044
|
"preserveMemberOrder": false,
|
|
3045
3045
|
"members": [
|
|
3046
|
-
{
|
|
3047
|
-
"kind": "Property",
|
|
3048
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#_extensions:member",
|
|
3049
|
-
"docComment": "",
|
|
3050
|
-
"excerptTokens": [
|
|
3051
|
-
{
|
|
3052
|
-
"kind": "Content",
|
|
3053
|
-
"text": "_extensions: "
|
|
3054
|
-
},
|
|
3055
|
-
{
|
|
3056
|
-
"kind": "Reference",
|
|
3057
|
-
"text": "IPlugin",
|
|
3058
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin:interface"
|
|
3059
|
-
},
|
|
3060
|
-
{
|
|
3061
|
-
"kind": "Content",
|
|
3062
|
-
"text": "[]"
|
|
3063
|
-
},
|
|
3064
|
-
{
|
|
3065
|
-
"kind": "Content",
|
|
3066
|
-
"text": ";"
|
|
3067
|
-
}
|
|
3068
|
-
],
|
|
3069
|
-
"isReadonly": false,
|
|
3070
|
-
"isOptional": false,
|
|
3071
|
-
"releaseTag": "Public",
|
|
3072
|
-
"name": "_extensions",
|
|
3073
|
-
"propertyTypeTokenRange": {
|
|
3074
|
-
"startIndex": 1,
|
|
3075
|
-
"endIndex": 3
|
|
3076
|
-
},
|
|
3077
|
-
"isStatic": false,
|
|
3078
|
-
"isProtected": false
|
|
3079
|
-
},
|
|
3080
3046
|
{
|
|
3081
3047
|
"kind": "Method",
|
|
3082
3048
|
"canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#_updateHook:member(1)",
|
|
@@ -4037,6 +4003,35 @@
|
|
|
4037
4003
|
"isOptional": false,
|
|
4038
4004
|
"name": "getTransmissionControls"
|
|
4039
4005
|
},
|
|
4006
|
+
{
|
|
4007
|
+
"kind": "Property",
|
|
4008
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#getWParam:member",
|
|
4009
|
+
"docComment": "/**\n * Function used to identify the get w parameter used to identify status bit to some channels\n */\n",
|
|
4010
|
+
"excerptTokens": [
|
|
4011
|
+
{
|
|
4012
|
+
"kind": "Content",
|
|
4013
|
+
"text": "getWParam: "
|
|
4014
|
+
},
|
|
4015
|
+
{
|
|
4016
|
+
"kind": "Content",
|
|
4017
|
+
"text": "() => number"
|
|
4018
|
+
},
|
|
4019
|
+
{
|
|
4020
|
+
"kind": "Content",
|
|
4021
|
+
"text": ";"
|
|
4022
|
+
}
|
|
4023
|
+
],
|
|
4024
|
+
"isReadonly": false,
|
|
4025
|
+
"isOptional": false,
|
|
4026
|
+
"releaseTag": "Public",
|
|
4027
|
+
"name": "getWParam",
|
|
4028
|
+
"propertyTypeTokenRange": {
|
|
4029
|
+
"startIndex": 1,
|
|
4030
|
+
"endIndex": 2
|
|
4031
|
+
},
|
|
4032
|
+
"isStatic": false,
|
|
4033
|
+
"isProtected": false
|
|
4034
|
+
},
|
|
4040
4035
|
{
|
|
4041
4036
|
"kind": "Method",
|
|
4042
4037
|
"canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#initialize:member(1)",
|
|
@@ -4143,7 +4138,7 @@
|
|
|
4143
4138
|
{
|
|
4144
4139
|
"kind": "Property",
|
|
4145
4140
|
"canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#isInitialized:member",
|
|
4146
|
-
"docComment": "",
|
|
4141
|
+
"docComment": "/**\n * Returns a value that indicates whether the instance has already been previously initialized.\n */\n",
|
|
4147
4142
|
"excerptTokens": [
|
|
4148
4143
|
{
|
|
4149
4144
|
"kind": "Content",
|
|
@@ -4283,6 +4278,64 @@
|
|
|
4283
4278
|
"isOptional": false,
|
|
4284
4279
|
"name": "onCfgChange"
|
|
4285
4280
|
},
|
|
4281
|
+
{
|
|
4282
|
+
"kind": "Property",
|
|
4283
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#pluginVersionString:member",
|
|
4284
|
+
"docComment": "/**\n * The formatted string of the installed plugins that contain a version number\n */\n",
|
|
4285
|
+
"excerptTokens": [
|
|
4286
|
+
{
|
|
4287
|
+
"kind": "Content",
|
|
4288
|
+
"text": "readonly pluginVersionString: "
|
|
4289
|
+
},
|
|
4290
|
+
{
|
|
4291
|
+
"kind": "Content",
|
|
4292
|
+
"text": "string"
|
|
4293
|
+
},
|
|
4294
|
+
{
|
|
4295
|
+
"kind": "Content",
|
|
4296
|
+
"text": ";"
|
|
4297
|
+
}
|
|
4298
|
+
],
|
|
4299
|
+
"isReadonly": true,
|
|
4300
|
+
"isOptional": false,
|
|
4301
|
+
"releaseTag": "Public",
|
|
4302
|
+
"name": "pluginVersionString",
|
|
4303
|
+
"propertyTypeTokenRange": {
|
|
4304
|
+
"startIndex": 1,
|
|
4305
|
+
"endIndex": 2
|
|
4306
|
+
},
|
|
4307
|
+
"isStatic": false,
|
|
4308
|
+
"isProtected": false
|
|
4309
|
+
},
|
|
4310
|
+
{
|
|
4311
|
+
"kind": "Property",
|
|
4312
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#pluginVersionStringArr:member",
|
|
4313
|
+
"docComment": "/**\n * An array of the installed plugins that provide a version\n */\n",
|
|
4314
|
+
"excerptTokens": [
|
|
4315
|
+
{
|
|
4316
|
+
"kind": "Content",
|
|
4317
|
+
"text": "readonly pluginVersionStringArr: "
|
|
4318
|
+
},
|
|
4319
|
+
{
|
|
4320
|
+
"kind": "Content",
|
|
4321
|
+
"text": "string[]"
|
|
4322
|
+
},
|
|
4323
|
+
{
|
|
4324
|
+
"kind": "Content",
|
|
4325
|
+
"text": ";"
|
|
4326
|
+
}
|
|
4327
|
+
],
|
|
4328
|
+
"isReadonly": true,
|
|
4329
|
+
"isOptional": false,
|
|
4330
|
+
"releaseTag": "Public",
|
|
4331
|
+
"name": "pluginVersionStringArr",
|
|
4332
|
+
"propertyTypeTokenRange": {
|
|
4333
|
+
"startIndex": 1,
|
|
4334
|
+
"endIndex": 2
|
|
4335
|
+
},
|
|
4336
|
+
"isStatic": false,
|
|
4337
|
+
"isProtected": false
|
|
4338
|
+
},
|
|
4286
4339
|
{
|
|
4287
4340
|
"kind": "Method",
|
|
4288
4341
|
"canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#pollInternalLogs:member(1)",
|
|
@@ -9445,6 +9498,33 @@
|
|
|
9445
9498
|
"parameters": [],
|
|
9446
9499
|
"name": "getTransmissionControls"
|
|
9447
9500
|
},
|
|
9501
|
+
{
|
|
9502
|
+
"kind": "PropertySignature",
|
|
9503
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#getWParam:member",
|
|
9504
|
+
"docComment": "/**\n * Function used to identify the get w parameter used to identify status bit to some channels\n */\n",
|
|
9505
|
+
"excerptTokens": [
|
|
9506
|
+
{
|
|
9507
|
+
"kind": "Content",
|
|
9508
|
+
"text": "getWParam: "
|
|
9509
|
+
},
|
|
9510
|
+
{
|
|
9511
|
+
"kind": "Content",
|
|
9512
|
+
"text": "() => number"
|
|
9513
|
+
},
|
|
9514
|
+
{
|
|
9515
|
+
"kind": "Content",
|
|
9516
|
+
"text": ";"
|
|
9517
|
+
}
|
|
9518
|
+
],
|
|
9519
|
+
"isReadonly": false,
|
|
9520
|
+
"isOptional": false,
|
|
9521
|
+
"releaseTag": "Public",
|
|
9522
|
+
"name": "getWParam",
|
|
9523
|
+
"propertyTypeTokenRange": {
|
|
9524
|
+
"startIndex": 1,
|
|
9525
|
+
"endIndex": 2
|
|
9526
|
+
}
|
|
9527
|
+
},
|
|
9448
9528
|
{
|
|
9449
9529
|
"kind": "MethodSignature",
|
|
9450
9530
|
"canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#initialize:member(1)",
|
|
@@ -9683,6 +9763,60 @@
|
|
|
9683
9763
|
],
|
|
9684
9764
|
"name": "onCfgChange"
|
|
9685
9765
|
},
|
|
9766
|
+
{
|
|
9767
|
+
"kind": "PropertySignature",
|
|
9768
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#pluginVersionString:member",
|
|
9769
|
+
"docComment": "/**\n * The formatted string of the installed plugins that contain a version number\n */\n",
|
|
9770
|
+
"excerptTokens": [
|
|
9771
|
+
{
|
|
9772
|
+
"kind": "Content",
|
|
9773
|
+
"text": "readonly pluginVersionString: "
|
|
9774
|
+
},
|
|
9775
|
+
{
|
|
9776
|
+
"kind": "Content",
|
|
9777
|
+
"text": "string"
|
|
9778
|
+
},
|
|
9779
|
+
{
|
|
9780
|
+
"kind": "Content",
|
|
9781
|
+
"text": ";"
|
|
9782
|
+
}
|
|
9783
|
+
],
|
|
9784
|
+
"isReadonly": true,
|
|
9785
|
+
"isOptional": false,
|
|
9786
|
+
"releaseTag": "Public",
|
|
9787
|
+
"name": "pluginVersionString",
|
|
9788
|
+
"propertyTypeTokenRange": {
|
|
9789
|
+
"startIndex": 1,
|
|
9790
|
+
"endIndex": 2
|
|
9791
|
+
}
|
|
9792
|
+
},
|
|
9793
|
+
{
|
|
9794
|
+
"kind": "PropertySignature",
|
|
9795
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#pluginVersionStringArr:member",
|
|
9796
|
+
"docComment": "/**\n * An array of the installed plugins that provide a version\n */\n",
|
|
9797
|
+
"excerptTokens": [
|
|
9798
|
+
{
|
|
9799
|
+
"kind": "Content",
|
|
9800
|
+
"text": "readonly pluginVersionStringArr: "
|
|
9801
|
+
},
|
|
9802
|
+
{
|
|
9803
|
+
"kind": "Content",
|
|
9804
|
+
"text": "string[]"
|
|
9805
|
+
},
|
|
9806
|
+
{
|
|
9807
|
+
"kind": "Content",
|
|
9808
|
+
"text": ";"
|
|
9809
|
+
}
|
|
9810
|
+
],
|
|
9811
|
+
"isReadonly": true,
|
|
9812
|
+
"isOptional": false,
|
|
9813
|
+
"releaseTag": "Public",
|
|
9814
|
+
"name": "pluginVersionStringArr",
|
|
9815
|
+
"propertyTypeTokenRange": {
|
|
9816
|
+
"startIndex": 1,
|
|
9817
|
+
"endIndex": 2
|
|
9818
|
+
}
|
|
9819
|
+
},
|
|
9686
9820
|
{
|
|
9687
9821
|
"kind": "MethodSignature",
|
|
9688
9822
|
"canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#pollInternalLogs:member(1)",
|
|
@@ -11589,6 +11723,33 @@
|
|
|
11589
11723
|
"endIndex": 2
|
|
11590
11724
|
}
|
|
11591
11725
|
},
|
|
11726
|
+
{
|
|
11727
|
+
"kind": "PropertySignature",
|
|
11728
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration#enableWParam:member",
|
|
11729
|
+
"docComment": "/**\n * Add \"&w=0\" parameter to support UA Parsing when web-workers don't have access to Document. Default is false\n */\n",
|
|
11730
|
+
"excerptTokens": [
|
|
11731
|
+
{
|
|
11732
|
+
"kind": "Content",
|
|
11733
|
+
"text": "enableWParam?: "
|
|
11734
|
+
},
|
|
11735
|
+
{
|
|
11736
|
+
"kind": "Content",
|
|
11737
|
+
"text": "boolean"
|
|
11738
|
+
},
|
|
11739
|
+
{
|
|
11740
|
+
"kind": "Content",
|
|
11741
|
+
"text": ";"
|
|
11742
|
+
}
|
|
11743
|
+
],
|
|
11744
|
+
"isReadonly": false,
|
|
11745
|
+
"isOptional": true,
|
|
11746
|
+
"releaseTag": "Public",
|
|
11747
|
+
"name": "enableWParam",
|
|
11748
|
+
"propertyTypeTokenRange": {
|
|
11749
|
+
"startIndex": 1,
|
|
11750
|
+
"endIndex": 2
|
|
11751
|
+
}
|
|
11752
|
+
},
|
|
11592
11753
|
{
|
|
11593
11754
|
"kind": "PropertySignature",
|
|
11594
11755
|
"canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration#endpointUrl:member",
|
|
@@ -89,8 +89,6 @@ export class AppInsightsCore implements IAppInsightsCore {
|
|
|
89
89
|
// (undocumented)
|
|
90
90
|
eventCnt(): number;
|
|
91
91
|
evtNamespace(): string;
|
|
92
|
-
// (undocumented)
|
|
93
|
-
_extensions: IPlugin[];
|
|
94
92
|
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
|
|
95
93
|
getCookieMgr(): ICookieMgr;
|
|
96
94
|
// (undocumented)
|
|
@@ -104,13 +102,15 @@ export class AppInsightsCore implements IAppInsightsCore {
|
|
|
104
102
|
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
105
103
|
// (undocumented)
|
|
106
104
|
getTransmissionControls(): IChannelControls[][];
|
|
105
|
+
getWParam: () => number;
|
|
107
106
|
// (undocumented)
|
|
108
107
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
109
|
-
// (undocumented)
|
|
110
108
|
isInitialized: () => boolean;
|
|
111
109
|
// (undocumented)
|
|
112
110
|
logger: IDiagnosticLogger;
|
|
113
111
|
onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
|
|
112
|
+
readonly pluginVersionString: string;
|
|
113
|
+
readonly pluginVersionStringArr: string[];
|
|
114
114
|
pollInternalLogs(eventName?: string): number;
|
|
115
115
|
// (undocumented)
|
|
116
116
|
protected releaseQueue(): void;
|
|
@@ -540,12 +540,15 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
540
540
|
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
541
541
|
// (undocumented)
|
|
542
542
|
getTransmissionControls(): IChannelControls[][];
|
|
543
|
+
getWParam: () => number;
|
|
543
544
|
// (undocumented)
|
|
544
545
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
545
546
|
isInitialized?: () => boolean;
|
|
546
547
|
// (undocumented)
|
|
547
548
|
logger: IDiagnosticLogger;
|
|
548
549
|
onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
|
|
550
|
+
readonly pluginVersionString: string;
|
|
551
|
+
readonly pluginVersionStringArr: string[];
|
|
549
552
|
// (undocumented)
|
|
550
553
|
pollInternalLogs?(eventName?: string): number;
|
|
551
554
|
removeNotificationListener?(listener: INotificationListener): void;
|
|
@@ -618,6 +621,7 @@ export interface IConfiguration {
|
|
|
618
621
|
disablePageUnloadEvents?: string[];
|
|
619
622
|
enableDebugExceptions?: boolean;
|
|
620
623
|
enablePerfMgr?: boolean;
|
|
624
|
+
enableWParam?: boolean;
|
|
621
625
|
endpointUrl?: string;
|
|
622
626
|
extensionConfig?: {
|
|
623
627
|
[key: string]: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2211-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -132,8 +132,22 @@ declare namespace ApplicationInsights {
|
|
|
132
132
|
static defaultConfig: IConfiguration;
|
|
133
133
|
config: IConfiguration;
|
|
134
134
|
logger: IDiagnosticLogger;
|
|
135
|
-
|
|
135
|
+
/**
|
|
136
|
+
* An array of the installed plugins that provide a version
|
|
137
|
+
*/
|
|
138
|
+
readonly pluginVersionStringArr: string[];
|
|
139
|
+
/**
|
|
140
|
+
* The formatted string of the installed plugins that contain a version number
|
|
141
|
+
*/
|
|
142
|
+
readonly pluginVersionString: string;
|
|
143
|
+
/**
|
|
144
|
+
* Returns a value that indicates whether the instance has already been previously initialized.
|
|
145
|
+
*/
|
|
136
146
|
isInitialized: () => boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
149
|
+
*/
|
|
150
|
+
getWParam: () => number;
|
|
137
151
|
constructor();
|
|
138
152
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
139
153
|
getTransmissionControls(): IChannelControls[][];
|
|
@@ -826,6 +840,14 @@ declare namespace ApplicationInsights {
|
|
|
826
840
|
interface IAppInsightsCore extends IPerfManagerProvider {
|
|
827
841
|
config: IConfiguration;
|
|
828
842
|
logger: IDiagnosticLogger;
|
|
843
|
+
/**
|
|
844
|
+
* An array of the installed plugins that provide a version
|
|
845
|
+
*/
|
|
846
|
+
readonly pluginVersionStringArr: string[];
|
|
847
|
+
/**
|
|
848
|
+
* The formatted string of the installed plugins that contain a version number
|
|
849
|
+
*/
|
|
850
|
+
readonly pluginVersionString: string;
|
|
829
851
|
/**
|
|
830
852
|
* Returns a value that indicates whether the instance has already been previously initialized.
|
|
831
853
|
*/
|
|
@@ -943,6 +965,10 @@ declare namespace ApplicationInsights {
|
|
|
943
965
|
* @returns A watcher handler instance that can be used to remove itself when being unloaded
|
|
944
966
|
*/
|
|
945
967
|
onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
|
|
968
|
+
/**
|
|
969
|
+
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
970
|
+
*/
|
|
971
|
+
getWParam: () => number;
|
|
946
972
|
}
|
|
947
973
|
|
|
948
974
|
interface IBaseProcessingContext {
|
|
@@ -1221,6 +1247,11 @@ declare namespace ApplicationInsights {
|
|
|
1221
1247
|
* this will not send any notifications.
|
|
1222
1248
|
*/
|
|
1223
1249
|
disableDbgExt?: boolean;
|
|
1250
|
+
/**
|
|
1251
|
+
* Add "&w=0" parameter to support UA Parsing when web-workers don't have access to Document.
|
|
1252
|
+
* Default is false
|
|
1253
|
+
*/
|
|
1254
|
+
enableWParam?: boolean;
|
|
1224
1255
|
}
|
|
1225
1256
|
|
|
1226
1257
|
interface ICookieMgr {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Core, 3.0.0-beta.
|
|
2
|
+
* Application Insights JavaScript SDK - Core, 3.0.0-beta.2211-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -820,8 +820,8 @@
|
|
|
820
820
|
var _DYN_CALL = "call";
|
|
821
821
|
var _DYN_GET_PLUGIN = "getPlugin";
|
|
822
822
|
var _DYN_FLUSH = "flush";
|
|
823
|
+
var _DYN_VERSION = "version";
|
|
823
824
|
var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
|
|
824
|
-
var _DYN__EXTENSIONS = "_extensions";
|
|
825
825
|
var _DYN_TEARDOWN = "teardown";
|
|
826
826
|
var _DYN_MESSAGE_ID = "messageId";
|
|
827
827
|
var _DYN_MESSAGE = "message";
|
|
@@ -850,7 +850,6 @@
|
|
|
850
850
|
var _DYN_TRACE_ID = "traceId";
|
|
851
851
|
var _DYN_SPAN_ID = "spanId";
|
|
852
852
|
var _DYN_TRACE_FLAGS = "traceFlags";
|
|
853
|
-
var _DYN_VERSION = "version";
|
|
854
853
|
|
|
855
854
|
var aggregationErrorType;
|
|
856
855
|
function throwAggregationError(message, sourceErrors) {
|
|
@@ -1710,7 +1709,7 @@
|
|
|
1710
1709
|
}
|
|
1711
1710
|
|
|
1712
1711
|
var _objDefineProperty = ObjDefineProperty;
|
|
1713
|
-
var version = "3.0.0-beta.
|
|
1712
|
+
var version = "3.0.0-beta.2211-01";
|
|
1714
1713
|
var instanceName = "." + newId(6);
|
|
1715
1714
|
var _dataUid = 0;
|
|
1716
1715
|
function _createAccessor(target, prop, value) {
|
|
@@ -2645,11 +2644,10 @@
|
|
|
2645
2644
|
match[3] === INVALID_SPAN_ID) {
|
|
2646
2645
|
return null;
|
|
2647
2646
|
}
|
|
2648
|
-
return _a = {
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
},
|
|
2647
|
+
return _a = {},
|
|
2648
|
+
_a[_DYN_VERSION ] = (match[1] || STR_EMPTY)[_DYN_TO_LOWER_CASE ](),
|
|
2649
|
+
_a.traceId = (match[2] || STR_EMPTY)[_DYN_TO_LOWER_CASE ](),
|
|
2650
|
+
_a.spanId = (match[3] || STR_EMPTY)[_DYN_TO_LOWER_CASE ](),
|
|
2653
2651
|
_a[_DYN_TRACE_FLAGS ] = parseInt(match[4], 16),
|
|
2654
2652
|
_a;
|
|
2655
2653
|
}
|
|
@@ -4100,9 +4098,15 @@
|
|
|
4100
4098
|
var _traceCtx;
|
|
4101
4099
|
var _instrumentationKey;
|
|
4102
4100
|
var _cfgListeners;
|
|
4101
|
+
var _extensions;
|
|
4102
|
+
var _pluginVersionStringArr;
|
|
4103
|
+
var _pluginVersionString;
|
|
4103
4104
|
var _internalLogPoller = 0;
|
|
4104
4105
|
dynamicProto(AppInsightsCore, this, function (_self) {
|
|
4105
4106
|
_initDefaults();
|
|
4107
|
+
_self["_getDbgPlgTargets"] = function () {
|
|
4108
|
+
return [_extensions];
|
|
4109
|
+
};
|
|
4106
4110
|
_self[_DYN_IS_INITIALIZED ] = function () { return _isInitialized; };
|
|
4107
4111
|
_self[_DYN_INITIALIZE ] = function (config, extensions, logger, notificationManager) {
|
|
4108
4112
|
if (_isUnloading) {
|
|
@@ -4394,8 +4398,34 @@
|
|
|
4394
4398
|
}
|
|
4395
4399
|
};
|
|
4396
4400
|
};
|
|
4401
|
+
_self.getWParam = function () {
|
|
4402
|
+
return (hasDocument() || !!_configHandler.cfg.enableWParam) ? 0 : -1;
|
|
4403
|
+
};
|
|
4404
|
+
function _setPluginVersions() {
|
|
4405
|
+
_pluginVersionStringArr = [];
|
|
4406
|
+
if (_channelConfig) {
|
|
4407
|
+
arrForEach(_channelConfig, function (channels) {
|
|
4408
|
+
if (channels) {
|
|
4409
|
+
arrForEach(channels, function (channel) {
|
|
4410
|
+
if (channel[_DYN_IDENTIFIER ] && channel[_DYN_VERSION ]) {
|
|
4411
|
+
var ver = channel[_DYN_IDENTIFIER ] + "=" + channel[_DYN_VERSION ];
|
|
4412
|
+
_pluginVersionStringArr[_DYN_PUSH ](ver);
|
|
4413
|
+
}
|
|
4414
|
+
});
|
|
4415
|
+
}
|
|
4416
|
+
});
|
|
4417
|
+
}
|
|
4418
|
+
if (_configExtensions) {
|
|
4419
|
+
arrForEach(_configExtensions, function (ext) {
|
|
4420
|
+
if (ext && ext[_DYN_IDENTIFIER ] && ext[_DYN_VERSION ]) {
|
|
4421
|
+
var ver = ext[_DYN_IDENTIFIER ] + "=" + ext[_DYN_VERSION ];
|
|
4422
|
+
_pluginVersionStringArr[_DYN_PUSH ](ver);
|
|
4423
|
+
}
|
|
4424
|
+
});
|
|
4425
|
+
}
|
|
4426
|
+
}
|
|
4397
4427
|
function _initDefaults() {
|
|
4398
|
-
var _a;
|
|
4428
|
+
var _a, _b, _c;
|
|
4399
4429
|
_isInitialized = false;
|
|
4400
4430
|
_configHandler = createDynamicConfig({}, defaultConfig, _self[_DYN_LOGGER ]);
|
|
4401
4431
|
_configHandler.cfg[_DYN_LOGGING_LEVEL_CONSOL4 ] = 1 ;
|
|
@@ -4407,8 +4437,31 @@
|
|
|
4407
4437
|
_self.updateCfg(newValue, false);
|
|
4408
4438
|
},
|
|
4409
4439
|
_a));
|
|
4440
|
+
objDefineProp(_self, "pluginVersionStringArr", (_b = {},
|
|
4441
|
+
_b[_DYN_CONFIGURABLE ] = true,
|
|
4442
|
+
_b[_DYN_ENUMERABLE ] = true,
|
|
4443
|
+
_b.get = function () {
|
|
4444
|
+
if (!_pluginVersionStringArr) {
|
|
4445
|
+
_setPluginVersions();
|
|
4446
|
+
}
|
|
4447
|
+
return _pluginVersionStringArr;
|
|
4448
|
+
},
|
|
4449
|
+
_b));
|
|
4450
|
+
objDefineProp(_self, "pluginVersionString", (_c = {},
|
|
4451
|
+
_c[_DYN_CONFIGURABLE ] = true,
|
|
4452
|
+
_c[_DYN_ENUMERABLE ] = true,
|
|
4453
|
+
_c.get = function () {
|
|
4454
|
+
if (!_pluginVersionString) {
|
|
4455
|
+
if (!_pluginVersionStringArr) {
|
|
4456
|
+
_setPluginVersions();
|
|
4457
|
+
}
|
|
4458
|
+
_pluginVersionString = _pluginVersionStringArr.join(";");
|
|
4459
|
+
}
|
|
4460
|
+
return _pluginVersionString || STR_EMPTY;
|
|
4461
|
+
},
|
|
4462
|
+
_c));
|
|
4410
4463
|
_self[_DYN_LOGGER ] = new DiagnosticLogger(_configHandler.cfg);
|
|
4411
|
-
|
|
4464
|
+
_extensions = [];
|
|
4412
4465
|
_telemetryInitializerPlugin = new TelemetryInitializerPlugin();
|
|
4413
4466
|
_eventQueue = [];
|
|
4414
4467
|
_notificationManager = null;
|
|
@@ -4429,6 +4482,8 @@
|
|
|
4429
4482
|
_instrumentationKey = null;
|
|
4430
4483
|
_hooks = [];
|
|
4431
4484
|
_cfgListeners = [];
|
|
4485
|
+
_pluginVersionString = null;
|
|
4486
|
+
_pluginVersionStringArr = null;
|
|
4432
4487
|
}
|
|
4433
4488
|
function _createTelCtx() {
|
|
4434
4489
|
return createProcessTelemetryContext(_getPluginChain(), _configHandler.cfg, _self);
|
|
@@ -4437,6 +4492,8 @@
|
|
|
4437
4492
|
var theExtensions = _validateExtensions(_self[_DYN_LOGGER ], ChannelControllerPriority, _configExtensions);
|
|
4438
4493
|
_coreExtensions = theExtensions[STR_CORE ];
|
|
4439
4494
|
_pluginChain = null;
|
|
4495
|
+
_pluginVersionString = null;
|
|
4496
|
+
_pluginVersionStringArr = null;
|
|
4440
4497
|
var allExtensions = theExtensions.all;
|
|
4441
4498
|
_channelQueue = objFreeze(createChannelQueues(_channelConfig, allExtensions, _self));
|
|
4442
4499
|
if (_channelControl) {
|
|
@@ -4455,10 +4512,10 @@
|
|
|
4455
4512
|
}
|
|
4456
4513
|
allExtensions[_DYN_PUSH ](_channelControl);
|
|
4457
4514
|
_coreExtensions[_DYN_PUSH ](_channelControl);
|
|
4458
|
-
|
|
4515
|
+
_extensions = sortPlugins(allExtensions);
|
|
4459
4516
|
_channelControl[_DYN_INITIALIZE ](_configHandler.cfg, _self, allExtensions);
|
|
4460
4517
|
initializePlugins(_createTelCtx(), allExtensions);
|
|
4461
|
-
|
|
4518
|
+
_extensions = objFreeze(sortPlugins(_coreExtensions || [])).slice();
|
|
4462
4519
|
if (updateState) {
|
|
4463
4520
|
_doUpdate(updateState);
|
|
4464
4521
|
}
|
|
@@ -4466,7 +4523,7 @@
|
|
|
4466
4523
|
function _getPlugin(pluginIdentifier) {
|
|
4467
4524
|
var theExt = null;
|
|
4468
4525
|
var thePlugin = null;
|
|
4469
|
-
arrForEach(
|
|
4526
|
+
arrForEach(_extensions, function (ext) {
|
|
4470
4527
|
if (ext[_DYN_IDENTIFIER ] === pluginIdentifier && ext !== _channelControl && ext !== _telemetryInitializerPlugin) {
|
|
4471
4528
|
thePlugin = ext;
|
|
4472
4529
|
return -1;
|
|
@@ -4534,6 +4591,8 @@
|
|
|
4534
4591
|
}
|
|
4535
4592
|
});
|
|
4536
4593
|
_configExtensions = newConfigExtensions;
|
|
4594
|
+
_pluginVersionString = null;
|
|
4595
|
+
_pluginVersionStringArr = null;
|
|
4537
4596
|
var newChannelConfig = [];
|
|
4538
4597
|
if (_channelConfig) {
|
|
4539
4598
|
arrForEach(_channelConfig, function (queue, idx) {
|