@microsoft/applicationinsights-core-js 3.0.0-beta.2303-10 → 3.0.0-beta.2303-11
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 +41 -25
- 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 +61 -177
- package/dist/applicationinsights-core-js.api.md +4 -7
- package/dist/applicationinsights-core-js.d.ts +19 -30
- package/dist/applicationinsights-core-js.js +41 -25
- 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 +19 -30
- package/dist-esm/Config/ConfigDefaultHelpers.js +1 -1
- package/dist-esm/Config/ConfigDefaults.js +1 -1
- package/dist-esm/Config/DynamicConfig.js +15 -4
- package/dist-esm/Config/DynamicConfig.js.map +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 +2 -2
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/Constants.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 +11 -23
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js.map +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/UnloadHookContainer.js +1 -1
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js +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/IChannelControlsHost.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 +1 -2
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-core-js.js +2 -2
- package/dist-esm/applicationinsights-core-js.js.map +1 -1
- package/package.json +1 -1
- package/types/Config/IDynamicConfigHandler.d.ts +3 -1
- package/types/JavaScriptSDK/DiagnosticLogger.d.ts +0 -14
- package/types/JavaScriptSDK.Interfaces/IConfiguration.d.ts +1 -1
- package/types/JavaScriptSDK.Interfaces/IDiagnosticLogger.d.ts +0 -14
- package/types/__DynamicConstants.d.ts +0 -1
- package/types/applicationinsights-core-js.d.ts +1 -1
|
@@ -7510,37 +7510,6 @@
|
|
|
7510
7510
|
"isAbstract": false,
|
|
7511
7511
|
"name": "consoleLoggingLevel"
|
|
7512
7512
|
},
|
|
7513
|
-
{
|
|
7514
|
-
"kind": "Method",
|
|
7515
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!DiagnosticLogger#enableDebugExceptions:member(1)",
|
|
7516
|
-
"docComment": "/**\n * When this is true the SDK will throw exceptions to aid in debugging.\n */\n",
|
|
7517
|
-
"excerptTokens": [
|
|
7518
|
-
{
|
|
7519
|
-
"kind": "Content",
|
|
7520
|
-
"text": "enableDebugExceptions(): "
|
|
7521
|
-
},
|
|
7522
|
-
{
|
|
7523
|
-
"kind": "Content",
|
|
7524
|
-
"text": "boolean"
|
|
7525
|
-
},
|
|
7526
|
-
{
|
|
7527
|
-
"kind": "Content",
|
|
7528
|
-
"text": ";"
|
|
7529
|
-
}
|
|
7530
|
-
],
|
|
7531
|
-
"isStatic": false,
|
|
7532
|
-
"returnTypeTokenRange": {
|
|
7533
|
-
"startIndex": 1,
|
|
7534
|
-
"endIndex": 2
|
|
7535
|
-
},
|
|
7536
|
-
"releaseTag": "Public",
|
|
7537
|
-
"isProtected": false,
|
|
7538
|
-
"overloadIndex": 1,
|
|
7539
|
-
"parameters": [],
|
|
7540
|
-
"isOptional": false,
|
|
7541
|
-
"isAbstract": false,
|
|
7542
|
-
"name": "enableDebugExceptions"
|
|
7543
|
-
},
|
|
7544
7513
|
{
|
|
7545
7514
|
"kind": "Method",
|
|
7546
7515
|
"canonicalReference": "@microsoft/applicationinsights-core-js!DiagnosticLogger#errorToConsole:member(1)",
|
|
@@ -7685,37 +7654,6 @@
|
|
|
7685
7654
|
"isAbstract": false,
|
|
7686
7655
|
"name": "logInternalMessage"
|
|
7687
7656
|
},
|
|
7688
|
-
{
|
|
7689
|
-
"kind": "Method",
|
|
7690
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!DiagnosticLogger#maxInternalMessageLimit:member(1)",
|
|
7691
|
-
"docComment": "/**\n * The maximum number of internal messages allowed to be sent per page view\n */\n",
|
|
7692
|
-
"excerptTokens": [
|
|
7693
|
-
{
|
|
7694
|
-
"kind": "Content",
|
|
7695
|
-
"text": "maxInternalMessageLimit(): "
|
|
7696
|
-
},
|
|
7697
|
-
{
|
|
7698
|
-
"kind": "Content",
|
|
7699
|
-
"text": "number"
|
|
7700
|
-
},
|
|
7701
|
-
{
|
|
7702
|
-
"kind": "Content",
|
|
7703
|
-
"text": ";"
|
|
7704
|
-
}
|
|
7705
|
-
],
|
|
7706
|
-
"isStatic": false,
|
|
7707
|
-
"returnTypeTokenRange": {
|
|
7708
|
-
"startIndex": 1,
|
|
7709
|
-
"endIndex": 2
|
|
7710
|
-
},
|
|
7711
|
-
"releaseTag": "Public",
|
|
7712
|
-
"isProtected": false,
|
|
7713
|
-
"overloadIndex": 1,
|
|
7714
|
-
"parameters": [],
|
|
7715
|
-
"isOptional": false,
|
|
7716
|
-
"isAbstract": false,
|
|
7717
|
-
"name": "maxInternalMessageLimit"
|
|
7718
|
-
},
|
|
7719
7657
|
{
|
|
7720
7658
|
"kind": "Property",
|
|
7721
7659
|
"canonicalReference": "@microsoft/applicationinsights-core-js!DiagnosticLogger#queue:member",
|
|
@@ -7782,37 +7720,6 @@
|
|
|
7782
7720
|
"isAbstract": false,
|
|
7783
7721
|
"name": "resetInternalMessageCount"
|
|
7784
7722
|
},
|
|
7785
|
-
{
|
|
7786
|
-
"kind": "Method",
|
|
7787
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!DiagnosticLogger#telemetryLoggingLevel:member(1)",
|
|
7788
|
-
"docComment": "/**\n * 0: OFF 1: CRITICAL (default) 2: >= WARNING\n */\n",
|
|
7789
|
-
"excerptTokens": [
|
|
7790
|
-
{
|
|
7791
|
-
"kind": "Content",
|
|
7792
|
-
"text": "telemetryLoggingLevel(): "
|
|
7793
|
-
},
|
|
7794
|
-
{
|
|
7795
|
-
"kind": "Content",
|
|
7796
|
-
"text": "number"
|
|
7797
|
-
},
|
|
7798
|
-
{
|
|
7799
|
-
"kind": "Content",
|
|
7800
|
-
"text": ";"
|
|
7801
|
-
}
|
|
7802
|
-
],
|
|
7803
|
-
"isStatic": false,
|
|
7804
|
-
"returnTypeTokenRange": {
|
|
7805
|
-
"startIndex": 1,
|
|
7806
|
-
"endIndex": 2
|
|
7807
|
-
},
|
|
7808
|
-
"releaseTag": "Public",
|
|
7809
|
-
"isProtected": false,
|
|
7810
|
-
"overloadIndex": 1,
|
|
7811
|
-
"parameters": [],
|
|
7812
|
-
"isOptional": false,
|
|
7813
|
-
"isAbstract": false,
|
|
7814
|
-
"name": "telemetryLoggingLevel"
|
|
7815
|
-
},
|
|
7816
7723
|
{
|
|
7817
7724
|
"kind": "Method",
|
|
7818
7725
|
"canonicalReference": "@microsoft/applicationinsights-core-js!DiagnosticLogger#throwInternal:member(1)",
|
|
@@ -8884,6 +8791,64 @@
|
|
|
8884
8791
|
"parameters": [],
|
|
8885
8792
|
"name": "findW3cTraceParent"
|
|
8886
8793
|
},
|
|
8794
|
+
{
|
|
8795
|
+
"kind": "Function",
|
|
8796
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!forceDynamicConversion:function(1)",
|
|
8797
|
+
"docComment": "/**\n * This is the reverse case of {@link blockDynamicConversion} in that this will tag an object to indicate that it should always be converted into a dynamic trackable object even when not an object or array. So all properties of this object will become get / set accessor functions.\n *\n * When you have tagged a value as both {@link forceDynamicConversion} and blocked force will take precedence.\n *\n * If `value` is falsy (null / undefined / 0 / empty string etc) it will not be tagged and if there is an exception adding the property to the value (because its frozen etc) the exception will be swallowed.\n *\n * @param value - The object that should be tagged and converted if included into a dynamic configuration.\n *\n * @returns The original value\n */\n",
|
|
8798
|
+
"excerptTokens": [
|
|
8799
|
+
{
|
|
8800
|
+
"kind": "Content",
|
|
8801
|
+
"text": "export declare function forceDynamicConversion<T>(value: "
|
|
8802
|
+
},
|
|
8803
|
+
{
|
|
8804
|
+
"kind": "Content",
|
|
8805
|
+
"text": "T"
|
|
8806
|
+
},
|
|
8807
|
+
{
|
|
8808
|
+
"kind": "Content",
|
|
8809
|
+
"text": "): "
|
|
8810
|
+
},
|
|
8811
|
+
{
|
|
8812
|
+
"kind": "Content",
|
|
8813
|
+
"text": "T"
|
|
8814
|
+
},
|
|
8815
|
+
{
|
|
8816
|
+
"kind": "Content",
|
|
8817
|
+
"text": ";"
|
|
8818
|
+
}
|
|
8819
|
+
],
|
|
8820
|
+
"fileUrlPath": "types/Config/DynamicSupport.d.ts",
|
|
8821
|
+
"returnTypeTokenRange": {
|
|
8822
|
+
"startIndex": 3,
|
|
8823
|
+
"endIndex": 4
|
|
8824
|
+
},
|
|
8825
|
+
"releaseTag": "Public",
|
|
8826
|
+
"overloadIndex": 1,
|
|
8827
|
+
"parameters": [
|
|
8828
|
+
{
|
|
8829
|
+
"parameterName": "value",
|
|
8830
|
+
"parameterTypeTokenRange": {
|
|
8831
|
+
"startIndex": 1,
|
|
8832
|
+
"endIndex": 2
|
|
8833
|
+
},
|
|
8834
|
+
"isOptional": false
|
|
8835
|
+
}
|
|
8836
|
+
],
|
|
8837
|
+
"typeParameters": [
|
|
8838
|
+
{
|
|
8839
|
+
"typeParameterName": "T",
|
|
8840
|
+
"constraintTokenRange": {
|
|
8841
|
+
"startIndex": 0,
|
|
8842
|
+
"endIndex": 0
|
|
8843
|
+
},
|
|
8844
|
+
"defaultTypeTokenRange": {
|
|
8845
|
+
"startIndex": 0,
|
|
8846
|
+
"endIndex": 0
|
|
8847
|
+
}
|
|
8848
|
+
}
|
|
8849
|
+
],
|
|
8850
|
+
"name": "forceDynamicConversion"
|
|
8851
|
+
},
|
|
8887
8852
|
{
|
|
8888
8853
|
"kind": "Function",
|
|
8889
8854
|
"canonicalReference": "@microsoft/applicationinsights-core-js!formatTraceParent:function(1)",
|
|
@@ -12612,12 +12577,12 @@
|
|
|
12612
12577
|
},
|
|
12613
12578
|
{
|
|
12614
12579
|
"kind": "PropertySignature",
|
|
12615
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration#
|
|
12580
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration#enableDebug:member",
|
|
12616
12581
|
"docComment": "/**\n * If enabled, uncaught exceptions will be thrown to help with debugging\n */\n",
|
|
12617
12582
|
"excerptTokens": [
|
|
12618
12583
|
{
|
|
12619
12584
|
"kind": "Content",
|
|
12620
|
-
"text": "
|
|
12585
|
+
"text": "enableDebug?: "
|
|
12621
12586
|
},
|
|
12622
12587
|
{
|
|
12623
12588
|
"kind": "Content",
|
|
@@ -12631,7 +12596,7 @@
|
|
|
12631
12596
|
"isReadonly": false,
|
|
12632
12597
|
"isOptional": true,
|
|
12633
12598
|
"releaseTag": "Public",
|
|
12634
|
-
"name": "
|
|
12599
|
+
"name": "enableDebug",
|
|
12635
12600
|
"propertyTypeTokenRange": {
|
|
12636
12601
|
"startIndex": 1,
|
|
12637
12602
|
"endIndex": 2
|
|
@@ -13901,33 +13866,6 @@
|
|
|
13901
13866
|
"endIndex": 2
|
|
13902
13867
|
}
|
|
13903
13868
|
},
|
|
13904
|
-
{
|
|
13905
|
-
"kind": "PropertySignature",
|
|
13906
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger#enableDebugExceptions:member",
|
|
13907
|
-
"docComment": "/**\n * When this is true the SDK will throw exceptions to aid in debugging.\n */\n",
|
|
13908
|
-
"excerptTokens": [
|
|
13909
|
-
{
|
|
13910
|
-
"kind": "Content",
|
|
13911
|
-
"text": "enableDebugExceptions: "
|
|
13912
|
-
},
|
|
13913
|
-
{
|
|
13914
|
-
"kind": "Content",
|
|
13915
|
-
"text": "() => boolean"
|
|
13916
|
-
},
|
|
13917
|
-
{
|
|
13918
|
-
"kind": "Content",
|
|
13919
|
-
"text": ";"
|
|
13920
|
-
}
|
|
13921
|
-
],
|
|
13922
|
-
"isReadonly": false,
|
|
13923
|
-
"isOptional": false,
|
|
13924
|
-
"releaseTag": "Public",
|
|
13925
|
-
"name": "enableDebugExceptions",
|
|
13926
|
-
"propertyTypeTokenRange": {
|
|
13927
|
-
"startIndex": 1,
|
|
13928
|
-
"endIndex": 2
|
|
13929
|
-
}
|
|
13930
|
-
},
|
|
13931
13869
|
{
|
|
13932
13870
|
"kind": "MethodSignature",
|
|
13933
13871
|
"canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger#errorToConsole:member(1)",
|
|
@@ -14036,33 +13974,6 @@
|
|
|
14036
13974
|
],
|
|
14037
13975
|
"name": "logInternalMessage"
|
|
14038
13976
|
},
|
|
14039
|
-
{
|
|
14040
|
-
"kind": "PropertySignature",
|
|
14041
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger#maxInternalMessageLimit:member",
|
|
14042
|
-
"docComment": "/**\n * The maximum number of internal messages allowed to be sent per page view\n */\n",
|
|
14043
|
-
"excerptTokens": [
|
|
14044
|
-
{
|
|
14045
|
-
"kind": "Content",
|
|
14046
|
-
"text": "maxInternalMessageLimit: "
|
|
14047
|
-
},
|
|
14048
|
-
{
|
|
14049
|
-
"kind": "Content",
|
|
14050
|
-
"text": "() => number"
|
|
14051
|
-
},
|
|
14052
|
-
{
|
|
14053
|
-
"kind": "Content",
|
|
14054
|
-
"text": ";"
|
|
14055
|
-
}
|
|
14056
|
-
],
|
|
14057
|
-
"isReadonly": false,
|
|
14058
|
-
"isOptional": false,
|
|
14059
|
-
"releaseTag": "Public",
|
|
14060
|
-
"name": "maxInternalMessageLimit",
|
|
14061
|
-
"propertyTypeTokenRange": {
|
|
14062
|
-
"startIndex": 1,
|
|
14063
|
-
"endIndex": 2
|
|
14064
|
-
}
|
|
14065
|
-
},
|
|
14066
13977
|
{
|
|
14067
13978
|
"kind": "PropertySignature",
|
|
14068
13979
|
"canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger#queue:member",
|
|
@@ -14123,33 +14034,6 @@
|
|
|
14123
14034
|
"parameters": [],
|
|
14124
14035
|
"name": "resetInternalMessageCount"
|
|
14125
14036
|
},
|
|
14126
|
-
{
|
|
14127
|
-
"kind": "PropertySignature",
|
|
14128
|
-
"canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger#telemetryLoggingLevel:member",
|
|
14129
|
-
"docComment": "/**\n * 0: OFF (default) 1: CRITICAL 2: WARNING\n */\n",
|
|
14130
|
-
"excerptTokens": [
|
|
14131
|
-
{
|
|
14132
|
-
"kind": "Content",
|
|
14133
|
-
"text": "telemetryLoggingLevel: "
|
|
14134
|
-
},
|
|
14135
|
-
{
|
|
14136
|
-
"kind": "Content",
|
|
14137
|
-
"text": "() => number"
|
|
14138
|
-
},
|
|
14139
|
-
{
|
|
14140
|
-
"kind": "Content",
|
|
14141
|
-
"text": ";"
|
|
14142
|
-
}
|
|
14143
|
-
],
|
|
14144
|
-
"isReadonly": false,
|
|
14145
|
-
"isOptional": false,
|
|
14146
|
-
"releaseTag": "Public",
|
|
14147
|
-
"name": "telemetryLoggingLevel",
|
|
14148
|
-
"propertyTypeTokenRange": {
|
|
14149
|
-
"startIndex": 1,
|
|
14150
|
-
"endIndex": 2
|
|
14151
|
-
}
|
|
14152
|
-
},
|
|
14153
14037
|
{
|
|
14154
14038
|
"kind": "MethodSignature",
|
|
14155
14039
|
"canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger#throwInternal:member(1)",
|
|
@@ -237,15 +237,12 @@ export function detachEvent(obj: any, eventNameWithoutOn: string, handlerRef: an
|
|
|
237
237
|
export class DiagnosticLogger implements IDiagnosticLogger {
|
|
238
238
|
constructor(config?: IConfiguration);
|
|
239
239
|
consoleLoggingLevel(): number;
|
|
240
|
-
enableDebugExceptions(): boolean;
|
|
241
240
|
errorToConsole(message: string): void;
|
|
242
241
|
// (undocumented)
|
|
243
242
|
identifier: string;
|
|
244
243
|
logInternalMessage(severity: LoggingSeverity, message: _InternalLogMessage): void;
|
|
245
|
-
maxInternalMessageLimit(): number;
|
|
246
244
|
queue: _InternalLogMessage[];
|
|
247
245
|
resetInternalMessageCount(): void;
|
|
248
|
-
telemetryLoggingLevel(): number;
|
|
249
246
|
throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
250
247
|
// (undocumented)
|
|
251
248
|
update(updateState: ITelemetryUpdateState): void;
|
|
@@ -472,6 +469,9 @@ export function findNamedServerTiming(name: string): any;
|
|
|
472
469
|
// @public
|
|
473
470
|
export function findW3cTraceParent(): ITraceParent;
|
|
474
471
|
|
|
472
|
+
// @public
|
|
473
|
+
export function forceDynamicConversion<T>(value: T): T;
|
|
474
|
+
|
|
475
475
|
// @public
|
|
476
476
|
export function formatTraceParent(value: ITraceParent): string;
|
|
477
477
|
|
|
@@ -647,7 +647,7 @@ export interface IConfiguration {
|
|
|
647
647
|
disableInstrumentationKeyValidation?: boolean;
|
|
648
648
|
disablePageShowEvents?: string[];
|
|
649
649
|
disablePageUnloadEvents?: string[];
|
|
650
|
-
|
|
650
|
+
enableDebug?: boolean;
|
|
651
651
|
enablePerfMgr?: boolean;
|
|
652
652
|
enableWParam?: boolean;
|
|
653
653
|
endpointUrl?: string;
|
|
@@ -713,13 +713,10 @@ export interface IDbgExtension {
|
|
|
713
713
|
// @public (undocumented)
|
|
714
714
|
export interface IDiagnosticLogger {
|
|
715
715
|
consoleLoggingLevel: () => number;
|
|
716
|
-
enableDebugExceptions: () => boolean;
|
|
717
716
|
errorToConsole?(message: string): void;
|
|
718
717
|
logInternalMessage?(severity: LoggingSeverity, message: _InternalLogMessage): void;
|
|
719
|
-
maxInternalMessageLimit: () => number;
|
|
720
718
|
queue: _InternalLogMessage[];
|
|
721
719
|
resetInternalMessageCount(): void;
|
|
722
|
-
telemetryLoggingLevel: () => number;
|
|
723
720
|
throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
724
721
|
update?(updateState: ITelemetryUpdateState): void;
|
|
725
722
|
warnToConsole(message: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2303-
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2303-11
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -576,26 +576,12 @@ declare namespace ApplicationInsights {
|
|
|
576
576
|
*/
|
|
577
577
|
queue: _InternalLogMessage[];
|
|
578
578
|
constructor(config?: IConfiguration);
|
|
579
|
-
/**
|
|
580
|
-
* When this is true the SDK will throw exceptions to aid in debugging.
|
|
581
|
-
*/
|
|
582
|
-
enableDebugExceptions(): boolean;
|
|
583
579
|
/**
|
|
584
580
|
* 0: OFF (default)
|
|
585
581
|
* 1: CRITICAL
|
|
586
582
|
* 2: >= WARNING
|
|
587
583
|
*/
|
|
588
584
|
consoleLoggingLevel(): number;
|
|
589
|
-
/**
|
|
590
|
-
* 0: OFF
|
|
591
|
-
* 1: CRITICAL (default)
|
|
592
|
-
* 2: >= WARNING
|
|
593
|
-
*/
|
|
594
|
-
telemetryLoggingLevel(): number;
|
|
595
|
-
/**
|
|
596
|
-
* The maximum number of internal messages allowed to be sent per page view
|
|
597
|
-
*/
|
|
598
|
-
maxInternalMessageLimit(): number;
|
|
599
585
|
/**
|
|
600
586
|
* This method will throw exceptions in debug mode or attempt to log the error as a console warning.
|
|
601
587
|
* @param severity - {LoggingSeverity} - The severity of the log message
|
|
@@ -824,6 +810,23 @@ declare namespace ApplicationInsights {
|
|
|
824
810
|
*/
|
|
825
811
|
function findW3cTraceParent(): ITraceParent;
|
|
826
812
|
|
|
813
|
+
/**
|
|
814
|
+
* This is the reverse case of {@link blockDynamicConversion} in that this will tag an
|
|
815
|
+
* object to indicate that it should always be converted into a dynamic trackable object
|
|
816
|
+
* even when not an object or array. So all properties of this object will become
|
|
817
|
+
* get / set accessor functions.
|
|
818
|
+
*
|
|
819
|
+
* When you have tagged a value as both {@link forceDynamicConversion} and blocked force will take precedence.
|
|
820
|
+
*
|
|
821
|
+
* If `value` is falsy (null / undefined / 0 / empty string etc) it will not be tagged and
|
|
822
|
+
* if there is an exception adding the property to the value (because its frozen etc) the
|
|
823
|
+
* exception will be swallowed.
|
|
824
|
+
* @param value - The object that should be tagged and converted if included into a dynamic
|
|
825
|
+
* configuration.
|
|
826
|
+
* @returns The original value
|
|
827
|
+
*/
|
|
828
|
+
function forceDynamicConversion<T>(value: T): T;
|
|
829
|
+
|
|
827
830
|
/**
|
|
828
831
|
* Format the ITraceParent value as a string using the supported and know version formats.
|
|
829
832
|
* So even if the passed traceParent is a later version the string value returned from this
|
|
@@ -1292,7 +1295,7 @@ declare namespace ApplicationInsights {
|
|
|
1292
1295
|
/**
|
|
1293
1296
|
* If enabled, uncaught exceptions will be thrown to help with debugging
|
|
1294
1297
|
*/
|
|
1295
|
-
|
|
1298
|
+
enableDebug?: boolean;
|
|
1296
1299
|
/**
|
|
1297
1300
|
* Endpoint where telemetry data is sent
|
|
1298
1301
|
*/
|
|
@@ -1503,26 +1506,12 @@ declare namespace ApplicationInsights {
|
|
|
1503
1506
|
}
|
|
1504
1507
|
|
|
1505
1508
|
interface IDiagnosticLogger {
|
|
1506
|
-
/**
|
|
1507
|
-
* When this is true the SDK will throw exceptions to aid in debugging.
|
|
1508
|
-
*/
|
|
1509
|
-
enableDebugExceptions: () => boolean;
|
|
1510
1509
|
/**
|
|
1511
1510
|
* 0: OFF
|
|
1512
1511
|
* 1: only critical (default)
|
|
1513
1512
|
* 2: critical + info
|
|
1514
1513
|
*/
|
|
1515
1514
|
consoleLoggingLevel: () => number;
|
|
1516
|
-
/**
|
|
1517
|
-
* 0: OFF (default)
|
|
1518
|
-
* 1: CRITICAL
|
|
1519
|
-
* 2: WARNING
|
|
1520
|
-
*/
|
|
1521
|
-
telemetryLoggingLevel: () => number;
|
|
1522
|
-
/**
|
|
1523
|
-
* The maximum number of internal messages allowed to be sent per page view
|
|
1524
|
-
*/
|
|
1525
|
-
maxInternalMessageLimit: () => number;
|
|
1526
1515
|
/**
|
|
1527
1516
|
* The internal logging queue
|
|
1528
1517
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Core, 3.0.0-beta.2303-
|
|
2
|
+
* Application Insights JavaScript SDK - Core, 3.0.0-beta.2303-11
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -900,7 +900,6 @@
|
|
|
900
900
|
var _DYN_SPLIT = "split";
|
|
901
901
|
var _DYN_NODE_TYPE = "nodeType";
|
|
902
902
|
var _DYN_REPLACE = "replace";
|
|
903
|
-
var _DYN_ENABLE_DEBUG_EXCEPTI5 = "enableDebugExceptions";
|
|
904
903
|
var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
|
|
905
904
|
var _DYN_TYPE = "type";
|
|
906
905
|
var _DYN_HANDLER = "handler";
|
|
@@ -1016,7 +1015,7 @@
|
|
|
1016
1015
|
* Microsoft Dynamic Proto Utility, 1.1.8
|
|
1017
1016
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
1018
1017
|
*/
|
|
1019
|
-
var _a$
|
|
1018
|
+
var _a$3;
|
|
1020
1019
|
var UNDEFINED = "undefined";
|
|
1021
1020
|
var Constructor = 'constructor';
|
|
1022
1021
|
var Prototype = 'prototype';
|
|
@@ -1056,10 +1055,10 @@
|
|
|
1056
1055
|
}
|
|
1057
1056
|
var _gbl = _getGlobal();
|
|
1058
1057
|
var _gblInst = _gbl[DynProtoGlobalSettings] || (_gbl[DynProtoGlobalSettings] = {
|
|
1059
|
-
o: (_a$
|
|
1060
|
-
_a$
|
|
1061
|
-
_a$
|
|
1062
|
-
_a$
|
|
1058
|
+
o: (_a$3 = {},
|
|
1059
|
+
_a$3[strSetInstFuncs] = true,
|
|
1060
|
+
_a$3[strUseBaseInst] = true,
|
|
1061
|
+
_a$3),
|
|
1063
1062
|
n: 1000
|
|
1064
1063
|
});
|
|
1065
1064
|
function _hasOwnProperty(obj, prop) {
|
|
@@ -1767,7 +1766,7 @@
|
|
|
1767
1766
|
return result;
|
|
1768
1767
|
}
|
|
1769
1768
|
|
|
1770
|
-
var version = "3.0.0-beta.2303-
|
|
1769
|
+
var version = "3.0.0-beta.2303-11";
|
|
1771
1770
|
var instanceName = "." + newId(6);
|
|
1772
1771
|
var _dataUid = 0;
|
|
1773
1772
|
function _canAcceptData(target) {
|
|
@@ -1989,6 +1988,16 @@
|
|
|
1989
1988
|
}
|
|
1990
1989
|
return value;
|
|
1991
1990
|
}
|
|
1991
|
+
function forceDynamicConversion(value) {
|
|
1992
|
+
if (value) {
|
|
1993
|
+
try {
|
|
1994
|
+
value[FORCE_DYNAMIC] = true;
|
|
1995
|
+
}
|
|
1996
|
+
catch (e) {
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
return value;
|
|
2000
|
+
}
|
|
1992
2001
|
function _canMakeDynamic(value) {
|
|
1993
2002
|
var result = false;
|
|
1994
2003
|
if (value) {
|
|
@@ -2299,8 +2308,19 @@
|
|
|
2299
2308
|
function _watch(configHandler) {
|
|
2300
2309
|
return _createAndUseHandler(theState, configHandler);
|
|
2301
2310
|
}
|
|
2302
|
-
function _block(configHandler) {
|
|
2303
|
-
theState.use(null,
|
|
2311
|
+
function _block(configHandler, allowUpdate) {
|
|
2312
|
+
theState.use(null, function (details) {
|
|
2313
|
+
var prevUpd = theState.upd;
|
|
2314
|
+
try {
|
|
2315
|
+
if (!isUndefined(allowUpdate)) {
|
|
2316
|
+
theState.upd = allowUpdate;
|
|
2317
|
+
}
|
|
2318
|
+
configHandler(details);
|
|
2319
|
+
}
|
|
2320
|
+
finally {
|
|
2321
|
+
theState.upd = prevUpd;
|
|
2322
|
+
}
|
|
2323
|
+
});
|
|
2304
2324
|
}
|
|
2305
2325
|
function _ref(target, name) {
|
|
2306
2326
|
return _setDynamicProperty(theState, target, name, target[name], true)[name];
|
|
@@ -2453,17 +2473,15 @@
|
|
|
2453
2473
|
return _debugListener;
|
|
2454
2474
|
}
|
|
2455
2475
|
|
|
2456
|
-
var _a$3;
|
|
2457
2476
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
2458
2477
|
var AiUserActionablePrefix = "AI: ";
|
|
2459
2478
|
var AIInternalMessagePrefix = "AITR_";
|
|
2460
|
-
var defaultValues$2 =
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
_a$3);
|
|
2479
|
+
var defaultValues$2 = {
|
|
2480
|
+
loggingLevelConsole: 0,
|
|
2481
|
+
loggingLevelTelemetry: 1,
|
|
2482
|
+
maxMessageLimit: 25,
|
|
2483
|
+
enableDebug: false
|
|
2484
|
+
};
|
|
2467
2485
|
function _sanitizeDiagnosticText(text) {
|
|
2468
2486
|
if (text) {
|
|
2469
2487
|
return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
|
|
@@ -2513,17 +2531,14 @@
|
|
|
2513
2531
|
var _loggingLevelConsole;
|
|
2514
2532
|
var _loggingLevelTelemetry;
|
|
2515
2533
|
var _maxInternalMessageLimit;
|
|
2516
|
-
var
|
|
2534
|
+
var _enableDebug;
|
|
2517
2535
|
dynamicProto(DiagnosticLogger, this, function (_self) {
|
|
2518
2536
|
_setDefaultsFromConfig(config || {});
|
|
2519
2537
|
_self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
|
|
2520
|
-
_self.telemetryLoggingLevel = function () { return _loggingLevelTelemetry; };
|
|
2521
|
-
_self.maxInternalMessageLimit = function () { return _maxInternalMessageLimit; };
|
|
2522
|
-
_self[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = function () { return _enableDebugExceptions; };
|
|
2523
2538
|
_self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
|
|
2524
2539
|
if (isUserAct === void 0) { isUserAct = false; }
|
|
2525
2540
|
var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
|
|
2526
|
-
if (
|
|
2541
|
+
if (_enableDebug) {
|
|
2527
2542
|
throw dumpObj(message);
|
|
2528
2543
|
}
|
|
2529
2544
|
else {
|
|
@@ -2599,7 +2614,7 @@
|
|
|
2599
2614
|
_loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
|
|
2600
2615
|
_loggingLevelTelemetry = config.loggingLevelTelemetry;
|
|
2601
2616
|
_maxInternalMessageLimit = config.maxMessageLimit;
|
|
2602
|
-
|
|
2617
|
+
_enableDebug = config.enableDebug;
|
|
2603
2618
|
});
|
|
2604
2619
|
}
|
|
2605
2620
|
function _areInternalMessagesThrottled() {
|
|
@@ -4407,7 +4422,7 @@
|
|
|
4407
4422
|
});
|
|
4408
4423
|
}
|
|
4409
4424
|
details[_DYN_SET_DF ](theConfig, defaultConfig);
|
|
4410
|
-
});
|
|
4425
|
+
}, true);
|
|
4411
4426
|
_configHandler[_DYN_NOTIFY ]();
|
|
4412
4427
|
if (updateState) {
|
|
4413
4428
|
_doUpdate(updateState);
|
|
@@ -5322,6 +5337,7 @@
|
|
|
5322
5337
|
exports.findMetaTag = findMetaTag;
|
|
5323
5338
|
exports.findNamedServerTiming = findNamedServerTiming;
|
|
5324
5339
|
exports.findW3cTraceParent = findW3cTraceParent;
|
|
5340
|
+
exports.forceDynamicConversion = forceDynamicConversion;
|
|
5325
5341
|
exports.formatTraceParent = formatTraceParent;
|
|
5326
5342
|
exports.generateW3CId = generateW3CId;
|
|
5327
5343
|
exports.getConsole = getConsole;
|