@microsoft/applicationinsights-core-js 2.7.2-nightly.2111-07 → 2.7.2-nightly.2111-12
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 +63 -2
- 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 +316 -1
- package/dist/applicationinsights-core-js.api.md +25 -0
- package/dist/applicationinsights-core-js.d.ts +20 -1
- package/dist/applicationinsights-core-js.js +63 -2
- 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 +20 -1
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseCore.js +5 -1
- package/dist-esm/JavaScriptSDK/BaseCore.js.map +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.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/DbgExtensionUtils.js +47 -0
- package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js.map +1 -0
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +20 -2
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.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/TelemetryPluginChain.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.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 +8 -0
- package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js.map +1 -0
- package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.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 +3 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js.map +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/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/applicationinsights-core-js.js +2 -1
- package/dist-esm/applicationinsights-core-js.js.map +1 -1
- package/package.json +1 -1
- package/src/JavaScriptSDK/BaseCore.ts +5 -0
- package/src/JavaScriptSDK/DbgExtensionUtils.ts +55 -0
- package/src/JavaScriptSDK/DiagnosticLogger.ts +18 -1
- package/src/JavaScriptSDK.Interfaces/IConfiguration.ts +6 -0
- package/src/JavaScriptSDK.Interfaces/IDbgExtension.ts +14 -0
- package/src/JavaScriptSDK.Interfaces/IPerfEvent.ts +0 -1
- package/src/JavaScriptSDK.Interfaces/IPerfManager.ts +0 -1
- package/types/JavaScriptSDK/DbgExtensionUtils.d.ts +5 -0
- package/types/JavaScriptSDK.Interfaces/IConfiguration.d.ts +5 -0
- package/types/JavaScriptSDK.Interfaces/IDbgExtension.d.ts +10 -0
- package/types/applicationinsights-core-js.d.ts +2 -0
- 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.18.
|
|
4
|
+
"toolVersion": "7.18.19",
|
|
5
5
|
"schemaVersion": 1004,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -4084,6 +4084,96 @@
|
|
|
4084
4084
|
"parameters": [],
|
|
4085
4085
|
"name": "getCrypto"
|
|
4086
4086
|
},
|
|
4087
|
+
{
|
|
4088
|
+
"kind": "Function",
|
|
4089
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!getDebugExt:function(1)",
|
|
4090
|
+
"docComment": "",
|
|
4091
|
+
"excerptTokens": [
|
|
4092
|
+
{
|
|
4093
|
+
"kind": "Content",
|
|
4094
|
+
"text": "export declare function getDebugExt(config: "
|
|
4095
|
+
},
|
|
4096
|
+
{
|
|
4097
|
+
"kind": "Reference",
|
|
4098
|
+
"text": "IConfiguration",
|
|
4099
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration:interface"
|
|
4100
|
+
},
|
|
4101
|
+
{
|
|
4102
|
+
"kind": "Content",
|
|
4103
|
+
"text": "): "
|
|
4104
|
+
},
|
|
4105
|
+
{
|
|
4106
|
+
"kind": "Reference",
|
|
4107
|
+
"text": "IDbgExtension",
|
|
4108
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDbgExtension:interface"
|
|
4109
|
+
},
|
|
4110
|
+
{
|
|
4111
|
+
"kind": "Content",
|
|
4112
|
+
"text": ";"
|
|
4113
|
+
}
|
|
4114
|
+
],
|
|
4115
|
+
"returnTypeTokenRange": {
|
|
4116
|
+
"startIndex": 3,
|
|
4117
|
+
"endIndex": 4
|
|
4118
|
+
},
|
|
4119
|
+
"releaseTag": "Public",
|
|
4120
|
+
"overloadIndex": 1,
|
|
4121
|
+
"parameters": [
|
|
4122
|
+
{
|
|
4123
|
+
"parameterName": "config",
|
|
4124
|
+
"parameterTypeTokenRange": {
|
|
4125
|
+
"startIndex": 1,
|
|
4126
|
+
"endIndex": 2
|
|
4127
|
+
}
|
|
4128
|
+
}
|
|
4129
|
+
],
|
|
4130
|
+
"name": "getDebugExt"
|
|
4131
|
+
},
|
|
4132
|
+
{
|
|
4133
|
+
"kind": "Function",
|
|
4134
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!getDebugListener:function(1)",
|
|
4135
|
+
"docComment": "",
|
|
4136
|
+
"excerptTokens": [
|
|
4137
|
+
{
|
|
4138
|
+
"kind": "Content",
|
|
4139
|
+
"text": "export declare function getDebugListener(config: "
|
|
4140
|
+
},
|
|
4141
|
+
{
|
|
4142
|
+
"kind": "Reference",
|
|
4143
|
+
"text": "IConfiguration",
|
|
4144
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration:interface"
|
|
4145
|
+
},
|
|
4146
|
+
{
|
|
4147
|
+
"kind": "Content",
|
|
4148
|
+
"text": "): "
|
|
4149
|
+
},
|
|
4150
|
+
{
|
|
4151
|
+
"kind": "Reference",
|
|
4152
|
+
"text": "INotificationListener",
|
|
4153
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!INotificationListener:interface"
|
|
4154
|
+
},
|
|
4155
|
+
{
|
|
4156
|
+
"kind": "Content",
|
|
4157
|
+
"text": ";"
|
|
4158
|
+
}
|
|
4159
|
+
],
|
|
4160
|
+
"returnTypeTokenRange": {
|
|
4161
|
+
"startIndex": 3,
|
|
4162
|
+
"endIndex": 4
|
|
4163
|
+
},
|
|
4164
|
+
"releaseTag": "Public",
|
|
4165
|
+
"overloadIndex": 1,
|
|
4166
|
+
"parameters": [
|
|
4167
|
+
{
|
|
4168
|
+
"parameterName": "config",
|
|
4169
|
+
"parameterTypeTokenRange": {
|
|
4170
|
+
"startIndex": 1,
|
|
4171
|
+
"endIndex": 2
|
|
4172
|
+
}
|
|
4173
|
+
}
|
|
4174
|
+
],
|
|
4175
|
+
"name": "getDebugListener"
|
|
4176
|
+
},
|
|
4087
4177
|
{
|
|
4088
4178
|
"kind": "Function",
|
|
4089
4179
|
"canonicalReference": "@microsoft/applicationinsights-core-js!getDocument:function(1)",
|
|
@@ -5826,6 +5916,32 @@
|
|
|
5826
5916
|
"endIndex": 2
|
|
5827
5917
|
}
|
|
5828
5918
|
},
|
|
5919
|
+
{
|
|
5920
|
+
"kind": "PropertySignature",
|
|
5921
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration#disableDbgExt:member",
|
|
5922
|
+
"docComment": "/**\n * [Optional] A flag for performance optimization to disable attempting to use the Chrome Debug Extension, if disabled and the extension is installed this will not send any notifications.\n */\n",
|
|
5923
|
+
"excerptTokens": [
|
|
5924
|
+
{
|
|
5925
|
+
"kind": "Content",
|
|
5926
|
+
"text": "disableDbgExt?: "
|
|
5927
|
+
},
|
|
5928
|
+
{
|
|
5929
|
+
"kind": "Content",
|
|
5930
|
+
"text": "boolean"
|
|
5931
|
+
},
|
|
5932
|
+
{
|
|
5933
|
+
"kind": "Content",
|
|
5934
|
+
"text": ";"
|
|
5935
|
+
}
|
|
5936
|
+
],
|
|
5937
|
+
"isOptional": true,
|
|
5938
|
+
"releaseTag": "Public",
|
|
5939
|
+
"name": "disableDbgExt",
|
|
5940
|
+
"propertyTypeTokenRange": {
|
|
5941
|
+
"startIndex": 1,
|
|
5942
|
+
"endIndex": 2
|
|
5943
|
+
}
|
|
5944
|
+
},
|
|
5829
5945
|
{
|
|
5830
5946
|
"kind": "PropertySignature",
|
|
5831
5947
|
"canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration#disableInstrumentationKeyValidation:member",
|
|
@@ -7760,6 +7876,205 @@
|
|
|
7760
7876
|
],
|
|
7761
7877
|
"extendsTokenRanges": []
|
|
7762
7878
|
},
|
|
7879
|
+
{
|
|
7880
|
+
"kind": "Interface",
|
|
7881
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDbgExtension:interface",
|
|
7882
|
+
"docComment": "",
|
|
7883
|
+
"excerptTokens": [
|
|
7884
|
+
{
|
|
7885
|
+
"kind": "Content",
|
|
7886
|
+
"text": "export interface IDbgExtension "
|
|
7887
|
+
}
|
|
7888
|
+
],
|
|
7889
|
+
"releaseTag": "Public",
|
|
7890
|
+
"name": "IDbgExtension",
|
|
7891
|
+
"members": [
|
|
7892
|
+
{
|
|
7893
|
+
"kind": "PropertySignature",
|
|
7894
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDbgExtension#debugMsg:member",
|
|
7895
|
+
"docComment": "",
|
|
7896
|
+
"excerptTokens": [
|
|
7897
|
+
{
|
|
7898
|
+
"kind": "Content",
|
|
7899
|
+
"text": "debugMsg?: "
|
|
7900
|
+
},
|
|
7901
|
+
{
|
|
7902
|
+
"kind": "Content",
|
|
7903
|
+
"text": "(name: string, data: any) => void"
|
|
7904
|
+
},
|
|
7905
|
+
{
|
|
7906
|
+
"kind": "Content",
|
|
7907
|
+
"text": ";"
|
|
7908
|
+
}
|
|
7909
|
+
],
|
|
7910
|
+
"isOptional": true,
|
|
7911
|
+
"releaseTag": "Public",
|
|
7912
|
+
"name": "debugMsg",
|
|
7913
|
+
"propertyTypeTokenRange": {
|
|
7914
|
+
"startIndex": 1,
|
|
7915
|
+
"endIndex": 2
|
|
7916
|
+
}
|
|
7917
|
+
},
|
|
7918
|
+
{
|
|
7919
|
+
"kind": "PropertySignature",
|
|
7920
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDbgExtension#diagLog:member",
|
|
7921
|
+
"docComment": "",
|
|
7922
|
+
"excerptTokens": [
|
|
7923
|
+
{
|
|
7924
|
+
"kind": "Content",
|
|
7925
|
+
"text": "diagLog?: "
|
|
7926
|
+
},
|
|
7927
|
+
{
|
|
7928
|
+
"kind": "Content",
|
|
7929
|
+
"text": "(name: string, data: any) => void"
|
|
7930
|
+
},
|
|
7931
|
+
{
|
|
7932
|
+
"kind": "Content",
|
|
7933
|
+
"text": ";"
|
|
7934
|
+
}
|
|
7935
|
+
],
|
|
7936
|
+
"isOptional": true,
|
|
7937
|
+
"releaseTag": "Public",
|
|
7938
|
+
"name": "diagLog",
|
|
7939
|
+
"propertyTypeTokenRange": {
|
|
7940
|
+
"startIndex": 1,
|
|
7941
|
+
"endIndex": 2
|
|
7942
|
+
}
|
|
7943
|
+
},
|
|
7944
|
+
{
|
|
7945
|
+
"kind": "PropertySignature",
|
|
7946
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDbgExtension#disable:member",
|
|
7947
|
+
"docComment": "",
|
|
7948
|
+
"excerptTokens": [
|
|
7949
|
+
{
|
|
7950
|
+
"kind": "Content",
|
|
7951
|
+
"text": "disable: "
|
|
7952
|
+
},
|
|
7953
|
+
{
|
|
7954
|
+
"kind": "Content",
|
|
7955
|
+
"text": "() => void"
|
|
7956
|
+
},
|
|
7957
|
+
{
|
|
7958
|
+
"kind": "Content",
|
|
7959
|
+
"text": ";"
|
|
7960
|
+
}
|
|
7961
|
+
],
|
|
7962
|
+
"isOptional": false,
|
|
7963
|
+
"releaseTag": "Public",
|
|
7964
|
+
"name": "disable",
|
|
7965
|
+
"propertyTypeTokenRange": {
|
|
7966
|
+
"startIndex": 1,
|
|
7967
|
+
"endIndex": 2
|
|
7968
|
+
}
|
|
7969
|
+
},
|
|
7970
|
+
{
|
|
7971
|
+
"kind": "PropertySignature",
|
|
7972
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDbgExtension#enable:member",
|
|
7973
|
+
"docComment": "",
|
|
7974
|
+
"excerptTokens": [
|
|
7975
|
+
{
|
|
7976
|
+
"kind": "Content",
|
|
7977
|
+
"text": "enable: "
|
|
7978
|
+
},
|
|
7979
|
+
{
|
|
7980
|
+
"kind": "Content",
|
|
7981
|
+
"text": "() => void"
|
|
7982
|
+
},
|
|
7983
|
+
{
|
|
7984
|
+
"kind": "Content",
|
|
7985
|
+
"text": ";"
|
|
7986
|
+
}
|
|
7987
|
+
],
|
|
7988
|
+
"isOptional": false,
|
|
7989
|
+
"releaseTag": "Public",
|
|
7990
|
+
"name": "enable",
|
|
7991
|
+
"propertyTypeTokenRange": {
|
|
7992
|
+
"startIndex": 1,
|
|
7993
|
+
"endIndex": 2
|
|
7994
|
+
}
|
|
7995
|
+
},
|
|
7996
|
+
{
|
|
7997
|
+
"kind": "PropertySignature",
|
|
7998
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDbgExtension#isEnabled:member",
|
|
7999
|
+
"docComment": "",
|
|
8000
|
+
"excerptTokens": [
|
|
8001
|
+
{
|
|
8002
|
+
"kind": "Content",
|
|
8003
|
+
"text": "isEnabled: "
|
|
8004
|
+
},
|
|
8005
|
+
{
|
|
8006
|
+
"kind": "Content",
|
|
8007
|
+
"text": "() => boolean"
|
|
8008
|
+
},
|
|
8009
|
+
{
|
|
8010
|
+
"kind": "Content",
|
|
8011
|
+
"text": ";"
|
|
8012
|
+
}
|
|
8013
|
+
],
|
|
8014
|
+
"isOptional": false,
|
|
8015
|
+
"releaseTag": "Public",
|
|
8016
|
+
"name": "isEnabled",
|
|
8017
|
+
"propertyTypeTokenRange": {
|
|
8018
|
+
"startIndex": 1,
|
|
8019
|
+
"endIndex": 2
|
|
8020
|
+
}
|
|
8021
|
+
},
|
|
8022
|
+
{
|
|
8023
|
+
"kind": "PropertySignature",
|
|
8024
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDbgExtension#listener:member",
|
|
8025
|
+
"docComment": "",
|
|
8026
|
+
"excerptTokens": [
|
|
8027
|
+
{
|
|
8028
|
+
"kind": "Content",
|
|
8029
|
+
"text": "listener: "
|
|
8030
|
+
},
|
|
8031
|
+
{
|
|
8032
|
+
"kind": "Reference",
|
|
8033
|
+
"text": "INotificationListener",
|
|
8034
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!INotificationListener:interface"
|
|
8035
|
+
},
|
|
8036
|
+
{
|
|
8037
|
+
"kind": "Content",
|
|
8038
|
+
"text": ";"
|
|
8039
|
+
}
|
|
8040
|
+
],
|
|
8041
|
+
"isOptional": false,
|
|
8042
|
+
"releaseTag": "Public",
|
|
8043
|
+
"name": "listener",
|
|
8044
|
+
"propertyTypeTokenRange": {
|
|
8045
|
+
"startIndex": 1,
|
|
8046
|
+
"endIndex": 2
|
|
8047
|
+
}
|
|
8048
|
+
},
|
|
8049
|
+
{
|
|
8050
|
+
"kind": "PropertySignature",
|
|
8051
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDbgExtension#sendEvt:member",
|
|
8052
|
+
"docComment": "",
|
|
8053
|
+
"excerptTokens": [
|
|
8054
|
+
{
|
|
8055
|
+
"kind": "Content",
|
|
8056
|
+
"text": "sendEvt?: "
|
|
8057
|
+
},
|
|
8058
|
+
{
|
|
8059
|
+
"kind": "Content",
|
|
8060
|
+
"text": "(name: string, data: any) => void"
|
|
8061
|
+
},
|
|
8062
|
+
{
|
|
8063
|
+
"kind": "Content",
|
|
8064
|
+
"text": ";"
|
|
8065
|
+
}
|
|
8066
|
+
],
|
|
8067
|
+
"isOptional": true,
|
|
8068
|
+
"releaseTag": "Public",
|
|
8069
|
+
"name": "sendEvt",
|
|
8070
|
+
"propertyTypeTokenRange": {
|
|
8071
|
+
"startIndex": 1,
|
|
8072
|
+
"endIndex": 2
|
|
8073
|
+
}
|
|
8074
|
+
}
|
|
8075
|
+
],
|
|
8076
|
+
"extendsTokenRanges": []
|
|
8077
|
+
},
|
|
7763
8078
|
{
|
|
7764
8079
|
"kind": "Interface",
|
|
7765
8080
|
"canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger:interface",
|
|
@@ -186,6 +186,12 @@ export function getCookie(logger: IDiagnosticLogger, name: string): string;
|
|
|
186
186
|
// @public
|
|
187
187
|
export function getCrypto(): Crypto | null;
|
|
188
188
|
|
|
189
|
+
// @public (undocumented)
|
|
190
|
+
export function getDebugExt(config: IConfiguration): IDbgExtension;
|
|
191
|
+
|
|
192
|
+
// @public (undocumented)
|
|
193
|
+
export function getDebugListener(config: IConfiguration): INotificationListener;
|
|
194
|
+
|
|
189
195
|
// @public
|
|
190
196
|
export function getDocument(): Document | null;
|
|
191
197
|
|
|
@@ -288,6 +294,7 @@ export interface IConfiguration {
|
|
|
288
294
|
createPerfMgr?: (core: IAppInsightsCore, notificationManager: INotificationManager) => IPerfManager;
|
|
289
295
|
diagnosticLogInterval?: number;
|
|
290
296
|
disableCookiesUsage?: boolean;
|
|
297
|
+
disableDbgExt?: boolean;
|
|
291
298
|
disableInstrumentationKeyValidation?: boolean;
|
|
292
299
|
disablePageShowEvents?: string[];
|
|
293
300
|
disablePageUnloadEvents?: string[];
|
|
@@ -377,6 +384,24 @@ export interface ICustomProperties {
|
|
|
377
384
|
[key: string]: any;
|
|
378
385
|
}
|
|
379
386
|
|
|
387
|
+
// @public (undocumented)
|
|
388
|
+
export interface IDbgExtension {
|
|
389
|
+
// (undocumented)
|
|
390
|
+
debugMsg?: (name: string, data: any) => void;
|
|
391
|
+
// (undocumented)
|
|
392
|
+
diagLog?: (name: string, data: any) => void;
|
|
393
|
+
// (undocumented)
|
|
394
|
+
disable: () => void;
|
|
395
|
+
// (undocumented)
|
|
396
|
+
enable: () => void;
|
|
397
|
+
// (undocumented)
|
|
398
|
+
isEnabled: () => boolean;
|
|
399
|
+
// (undocumented)
|
|
400
|
+
listener: INotificationListener;
|
|
401
|
+
// (undocumented)
|
|
402
|
+
sendEvt?: (name: string, data: any) => void;
|
|
403
|
+
}
|
|
404
|
+
|
|
380
405
|
// @public (undocumented)
|
|
381
406
|
export interface IDiagnosticLogger {
|
|
382
407
|
consoleLoggingLevel: () => number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 2.7.2-nightly.2111-
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 2.7.2-nightly.2111-12
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -395,6 +395,10 @@ declare namespace ApplicationInsights {
|
|
|
395
395
|
*/
|
|
396
396
|
function getCrypto(): Crypto | null;
|
|
397
397
|
|
|
398
|
+
function getDebugExt(config: IConfiguration): IDbgExtension;
|
|
399
|
+
|
|
400
|
+
function getDebugListener(config: IConfiguration): INotificationListener;
|
|
401
|
+
|
|
398
402
|
/**
|
|
399
403
|
* Returns the global document object if it is present otherwise null.
|
|
400
404
|
* This helper is used to access the document object without causing an exception
|
|
@@ -733,6 +737,11 @@ declare namespace ApplicationInsights {
|
|
|
733
737
|
* Page Show events include "pageshow" and "visibilitychange" (with 'visible' state)
|
|
734
738
|
*/
|
|
735
739
|
disablePageShowEvents?: string[];
|
|
740
|
+
/**
|
|
741
|
+
* [Optional] A flag for performance optimization to disable attempting to use the Chrome Debug Extension, if disabled and the extension is installed
|
|
742
|
+
* this will not send any notifications.
|
|
743
|
+
*/
|
|
744
|
+
disableDbgExt?: boolean;
|
|
736
745
|
}
|
|
737
746
|
|
|
738
747
|
interface ICookieMgr {
|
|
@@ -1009,6 +1018,16 @@ declare namespace ApplicationInsights {
|
|
|
1009
1018
|
[key: string]: any;
|
|
1010
1019
|
}
|
|
1011
1020
|
|
|
1021
|
+
interface IDbgExtension {
|
|
1022
|
+
isEnabled: () => boolean;
|
|
1023
|
+
enable: () => void;
|
|
1024
|
+
disable: () => void;
|
|
1025
|
+
listener: INotificationListener;
|
|
1026
|
+
sendEvt?: (name: string, data: any) => void;
|
|
1027
|
+
debugMsg?: (name: string, data: any) => void;
|
|
1028
|
+
diagLog?: (name: string, data: any) => void;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1012
1031
|
interface IDiagnosticLogger {
|
|
1013
1032
|
/**
|
|
1014
1033
|
* When this is true the SDK will throw exceptions to aid in debugging.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Core, 2.7.2-nightly.2111-
|
|
2
|
+
* Application Insights JavaScript SDK - Core, 2.7.2-nightly.2111-12
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -1053,6 +1053,45 @@
|
|
|
1053
1053
|
return isSupported;
|
|
1054
1054
|
}
|
|
1055
1055
|
|
|
1056
|
+
var listenerFuncs = ["eventsSent", "eventsDiscarded", "eventsSendRequest", "perfEvent"];
|
|
1057
|
+
var _aiNamespace = null;
|
|
1058
|
+
var _debugListener;
|
|
1059
|
+
function _listenerProxyFunc(name, config) {
|
|
1060
|
+
return function () {
|
|
1061
|
+
var args = arguments;
|
|
1062
|
+
var dbgExt = getDebugExt(config);
|
|
1063
|
+
if (dbgExt) {
|
|
1064
|
+
var listener = dbgExt.listener;
|
|
1065
|
+
if (listener && listener[name]) {
|
|
1066
|
+
listener[name].apply(listener, args);
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
};
|
|
1070
|
+
}
|
|
1071
|
+
function _getExtensionNamespace() {
|
|
1072
|
+
var target = getGlobalInst("Microsoft");
|
|
1073
|
+
if (target) {
|
|
1074
|
+
_aiNamespace = target["ApplicationInsights"];
|
|
1075
|
+
}
|
|
1076
|
+
return _aiNamespace;
|
|
1077
|
+
}
|
|
1078
|
+
function getDebugExt(config) {
|
|
1079
|
+
var ns = _aiNamespace;
|
|
1080
|
+
if (!ns && config.disableDbgExt !== true) {
|
|
1081
|
+
ns = _aiNamespace || _getExtensionNamespace();
|
|
1082
|
+
}
|
|
1083
|
+
return ns ? ns["ChromeDbgExt"] : null;
|
|
1084
|
+
}
|
|
1085
|
+
function getDebugListener(config) {
|
|
1086
|
+
if (!_debugListener) {
|
|
1087
|
+
_debugListener = {};
|
|
1088
|
+
for (var lp = 0; lp < listenerFuncs.length; lp++) {
|
|
1089
|
+
_debugListener[listenerFuncs[lp]] = _listenerProxyFunc(listenerFuncs[lp], config);
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
return _debugListener;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1056
1095
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
1057
1096
|
var AiUserActionablePrefix = "AI: ";
|
|
1058
1097
|
var AIInternalMessagePrefix = "AITR_";
|
|
@@ -1136,13 +1175,18 @@
|
|
|
1136
1175
|
}
|
|
1137
1176
|
_self.logInternalMessage(severity, message);
|
|
1138
1177
|
}
|
|
1178
|
+
else {
|
|
1179
|
+
_debugExtMsg("throw" + (severity === exports.LoggingSeverity.CRITICAL ? "Critical" : "Warning"), message);
|
|
1180
|
+
}
|
|
1139
1181
|
}
|
|
1140
1182
|
};
|
|
1141
1183
|
_self.warnToConsole = function (message) {
|
|
1142
1184
|
_logToConsole("warn", message);
|
|
1185
|
+
_debugExtMsg("warning", message);
|
|
1143
1186
|
};
|
|
1144
1187
|
_self.errorToConsole = function (message) {
|
|
1145
1188
|
_logToConsole("error", message);
|
|
1189
|
+
_debugExtMsg("error", message);
|
|
1146
1190
|
};
|
|
1147
1191
|
_self.resetInternalMessageCount = function () {
|
|
1148
1192
|
_messageCount = 0;
|
|
@@ -1164,12 +1208,18 @@
|
|
|
1164
1208
|
if (severity <= _self.telemetryLoggingLevel()) {
|
|
1165
1209
|
_self.queue.push(message);
|
|
1166
1210
|
_messageCount++;
|
|
1211
|
+
_debugExtMsg((severity === exports.LoggingSeverity.CRITICAL ? "error" : "warn"), message);
|
|
1167
1212
|
}
|
|
1168
1213
|
if (_messageCount === _self.maxInternalMessageLimit()) {
|
|
1169
1214
|
var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
|
|
1170
1215
|
var throttleMessage = new _InternalLogMessage(_InternalMessageId.MessageLimitPerPVExceeded, throttleLimitMessage, false);
|
|
1171
1216
|
_self.queue.push(throttleMessage);
|
|
1172
|
-
|
|
1217
|
+
if (severity === exports.LoggingSeverity.CRITICAL) {
|
|
1218
|
+
_self.errorToConsole(throttleLimitMessage);
|
|
1219
|
+
}
|
|
1220
|
+
else {
|
|
1221
|
+
_self.warnToConsole(throttleLimitMessage);
|
|
1222
|
+
}
|
|
1173
1223
|
}
|
|
1174
1224
|
}
|
|
1175
1225
|
};
|
|
@@ -1183,6 +1233,12 @@
|
|
|
1183
1233
|
function _areInternalMessagesThrottled() {
|
|
1184
1234
|
return _messageCount >= _self.maxInternalMessageLimit();
|
|
1185
1235
|
}
|
|
1236
|
+
function _debugExtMsg(name, data) {
|
|
1237
|
+
var dbgExt = getDebugExt(config);
|
|
1238
|
+
if (dbgExt && dbgExt.diagLog) {
|
|
1239
|
+
dbgExt.diagLog(name, data);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1186
1242
|
});
|
|
1187
1243
|
}
|
|
1188
1244
|
return DiagnosticLogger;
|
|
@@ -1974,6 +2030,9 @@
|
|
|
1974
2030
|
_notificationManager = notificationManager;
|
|
1975
2031
|
_self[strNotificationManager] = notificationManager;
|
|
1976
2032
|
_self.config = config || {};
|
|
2033
|
+
if (notificationManager && _self.config.disableDbgExt !== true) {
|
|
2034
|
+
notificationManager.addNotificationListener(getDebugListener(config));
|
|
2035
|
+
}
|
|
1977
2036
|
if (_self.config.enablePerfMgr) {
|
|
1978
2037
|
setValue(_self.config, "createPerfMgr", _createPerfManager);
|
|
1979
2038
|
}
|
|
@@ -2741,6 +2800,8 @@
|
|
|
2741
2800
|
exports.getConsole = getConsole;
|
|
2742
2801
|
exports.getCookie = getCookie;
|
|
2743
2802
|
exports.getCrypto = getCrypto;
|
|
2803
|
+
exports.getDebugExt = getDebugExt;
|
|
2804
|
+
exports.getDebugListener = getDebugListener;
|
|
2744
2805
|
exports.getDocument = getDocument;
|
|
2745
2806
|
exports.getExceptionName = getExceptionName;
|
|
2746
2807
|
exports.getGblPerfMgr = getGblPerfMgr;
|