@microsoft/applicationinsights-common 2.8.12-nightly.2304-27 → 2.8.13-dev.20230411.6
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-common.integrity.json +9 -9
- package/browser/applicationinsights-common.js +2 -2
- package/browser/applicationinsights-common.js.map +1 -1
- package/browser/applicationinsights-common.min.js +2 -2
- package/browser/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.api.json +186 -0
- package/dist/applicationinsights-common.api.md +7 -0
- package/dist/applicationinsights-common.d.ts +22 -1
- package/dist/applicationinsights-common.js +2 -2
- package/dist/applicationinsights-common.js.map +1 -1
- package/dist/applicationinsights-common.min.js +2 -2
- package/dist/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.rollup.d.ts +22 -1
- package/dist-esm/ConnectionStringParser.js +1 -1
- package/dist-esm/Constants.js +1 -1
- package/dist-esm/DomHelperFuncs.js +1 -1
- package/dist-esm/Enums.js +1 -1
- package/dist-esm/HelperFuncs.js +1 -1
- package/dist-esm/Interfaces/ConnectionString.js +1 -1
- package/dist-esm/Interfaces/Context/IApplication.js +1 -1
- package/dist-esm/Interfaces/Context/IDevice.js +1 -1
- package/dist-esm/Interfaces/Context/IInternal.js +1 -1
- package/dist-esm/Interfaces/Context/ILocation.js +1 -1
- package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-esm/Interfaces/Context/ISample.js +1 -1
- package/dist-esm/Interfaces/Context/ISession.js +1 -1
- package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-esm/Interfaces/Context/IUser.js +1 -1
- package/dist-esm/Interfaces/Context/IWeb.js +1 -1
- package/dist-esm/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/dist-esm/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-esm/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-esm/Interfaces/Contracts/IBase.js +1 -1
- package/dist-esm/Interfaces/Contracts/IData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-esm/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-esm/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-esm/Interfaces/IAppInsights.js +1 -1
- package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
- package/dist-esm/Interfaces/IConfig.js +1 -1
- package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
- package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPartC.js +1 -1
- package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-esm/Interfaces/IRequestContext.js +1 -1
- package/dist-esm/Interfaces/IStorageBuffer.js +6 -0
- package/dist-esm/Interfaces/IStorageBuffer.js.map +1 -0
- package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
- package/dist-esm/Interfaces/IThrottleMgr.js +1 -1
- package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-esm/Interfaces/PartAExtensions.js +1 -1
- package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-esm/RequestResponseHeaders.js +1 -1
- package/dist-esm/StorageHelperFuncs.js +1 -1
- package/dist-esm/Telemetry/Common/Data.js +1 -1
- package/dist-esm/Telemetry/Common/DataPoint.js +1 -1
- package/dist-esm/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-esm/Telemetry/Common/Envelope.js +1 -1
- package/dist-esm/Telemetry/Event.js +1 -1
- package/dist-esm/Telemetry/Exception.js +1 -1
- package/dist-esm/Telemetry/Metric.js +1 -1
- package/dist-esm/Telemetry/PageView.js +1 -1
- package/dist-esm/Telemetry/PageViewPerformance.js +1 -1
- package/dist-esm/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-esm/Telemetry/Trace.js +1 -1
- package/dist-esm/TelemetryItemCreator.js +1 -1
- package/dist-esm/ThrottleMgr.js +1 -1
- package/dist-esm/UrlHelperFuncs.js +1 -1
- package/dist-esm/Util.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/applicationinsights-common.js +1 -1
- package/package.json +3 -3
- package/src/Interfaces/IConfig.ts +6 -0
- package/src/Interfaces/IStorageBuffer.ts +19 -0
- package/src/applicationinsights-common.ts +1 -0
- package/types/Interfaces/IConfig.d.ts +5 -0
- package/types/Interfaces/IStorageBuffer.d.ts +17 -0
- package/types/applicationinsights-common.d.ts +1 -0
|
@@ -6051,6 +6051,34 @@
|
|
|
6051
6051
|
"endIndex": 2
|
|
6052
6052
|
}
|
|
6053
6053
|
},
|
|
6054
|
+
{
|
|
6055
|
+
"kind": "PropertySignature",
|
|
6056
|
+
"canonicalReference": "@microsoft/applicationinsights-common!IConfig#bufferOverride:member",
|
|
6057
|
+
"docComment": "/**\n * If specified, overrides the storage & retrieval mechanism that is used to manage unsent telemetry.\n */\n",
|
|
6058
|
+
"excerptTokens": [
|
|
6059
|
+
{
|
|
6060
|
+
"kind": "Content",
|
|
6061
|
+
"text": "bufferOverride?: "
|
|
6062
|
+
},
|
|
6063
|
+
{
|
|
6064
|
+
"kind": "Reference",
|
|
6065
|
+
"text": "IStorageBuffer",
|
|
6066
|
+
"canonicalReference": "@microsoft/applicationinsights-common!IStorageBuffer:interface"
|
|
6067
|
+
},
|
|
6068
|
+
{
|
|
6069
|
+
"kind": "Content",
|
|
6070
|
+
"text": ";"
|
|
6071
|
+
}
|
|
6072
|
+
],
|
|
6073
|
+
"isReadonly": false,
|
|
6074
|
+
"isOptional": true,
|
|
6075
|
+
"releaseTag": "Public",
|
|
6076
|
+
"name": "bufferOverride",
|
|
6077
|
+
"propertyTypeTokenRange": {
|
|
6078
|
+
"startIndex": 1,
|
|
6079
|
+
"endIndex": 2
|
|
6080
|
+
}
|
|
6081
|
+
},
|
|
6054
6082
|
{
|
|
6055
6083
|
"kind": "PropertySignature",
|
|
6056
6084
|
"canonicalReference": "@microsoft/applicationinsights-common!IConfig#convertUndefined:member",
|
|
@@ -13877,6 +13905,164 @@
|
|
|
13877
13905
|
],
|
|
13878
13906
|
"name": "isInternalApplicationInsightsEndpoint"
|
|
13879
13907
|
},
|
|
13908
|
+
{
|
|
13909
|
+
"kind": "Interface",
|
|
13910
|
+
"canonicalReference": "@microsoft/applicationinsights-common!IStorageBuffer:interface",
|
|
13911
|
+
"docComment": "/**\n * Identifies a simple interface to allow you to override the storage mechanism used to track unsent and unacknowledged events. When provided it must provide both the get and set item functions. @since 2.8.12\n */\n",
|
|
13912
|
+
"excerptTokens": [
|
|
13913
|
+
{
|
|
13914
|
+
"kind": "Content",
|
|
13915
|
+
"text": "export interface IStorageBuffer "
|
|
13916
|
+
}
|
|
13917
|
+
],
|
|
13918
|
+
"fileUrlPath": "types/Interfaces/IStorageBuffer.d.ts",
|
|
13919
|
+
"releaseTag": "Public",
|
|
13920
|
+
"name": "IStorageBuffer",
|
|
13921
|
+
"preserveMemberOrder": false,
|
|
13922
|
+
"members": [
|
|
13923
|
+
{
|
|
13924
|
+
"kind": "MethodSignature",
|
|
13925
|
+
"canonicalReference": "@microsoft/applicationinsights-common!IStorageBuffer#getItem:member(1)",
|
|
13926
|
+
"docComment": "/**\n * Retrieves the stored value for a given key\n */\n",
|
|
13927
|
+
"excerptTokens": [
|
|
13928
|
+
{
|
|
13929
|
+
"kind": "Content",
|
|
13930
|
+
"text": "getItem(logger: "
|
|
13931
|
+
},
|
|
13932
|
+
{
|
|
13933
|
+
"kind": "Reference",
|
|
13934
|
+
"text": "IDiagnosticLogger",
|
|
13935
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger:interface"
|
|
13936
|
+
},
|
|
13937
|
+
{
|
|
13938
|
+
"kind": "Content",
|
|
13939
|
+
"text": ", name: "
|
|
13940
|
+
},
|
|
13941
|
+
{
|
|
13942
|
+
"kind": "Content",
|
|
13943
|
+
"text": "string"
|
|
13944
|
+
},
|
|
13945
|
+
{
|
|
13946
|
+
"kind": "Content",
|
|
13947
|
+
"text": "): "
|
|
13948
|
+
},
|
|
13949
|
+
{
|
|
13950
|
+
"kind": "Content",
|
|
13951
|
+
"text": "string"
|
|
13952
|
+
},
|
|
13953
|
+
{
|
|
13954
|
+
"kind": "Content",
|
|
13955
|
+
"text": ";"
|
|
13956
|
+
}
|
|
13957
|
+
],
|
|
13958
|
+
"isOptional": false,
|
|
13959
|
+
"returnTypeTokenRange": {
|
|
13960
|
+
"startIndex": 5,
|
|
13961
|
+
"endIndex": 6
|
|
13962
|
+
},
|
|
13963
|
+
"releaseTag": "Public",
|
|
13964
|
+
"overloadIndex": 1,
|
|
13965
|
+
"parameters": [
|
|
13966
|
+
{
|
|
13967
|
+
"parameterName": "logger",
|
|
13968
|
+
"parameterTypeTokenRange": {
|
|
13969
|
+
"startIndex": 1,
|
|
13970
|
+
"endIndex": 2
|
|
13971
|
+
},
|
|
13972
|
+
"isOptional": false
|
|
13973
|
+
},
|
|
13974
|
+
{
|
|
13975
|
+
"parameterName": "name",
|
|
13976
|
+
"parameterTypeTokenRange": {
|
|
13977
|
+
"startIndex": 3,
|
|
13978
|
+
"endIndex": 4
|
|
13979
|
+
},
|
|
13980
|
+
"isOptional": false
|
|
13981
|
+
}
|
|
13982
|
+
],
|
|
13983
|
+
"name": "getItem"
|
|
13984
|
+
},
|
|
13985
|
+
{
|
|
13986
|
+
"kind": "MethodSignature",
|
|
13987
|
+
"canonicalReference": "@microsoft/applicationinsights-common!IStorageBuffer#setItem:member(1)",
|
|
13988
|
+
"docComment": "/**\n * Sets the stored value for a given key\n */\n",
|
|
13989
|
+
"excerptTokens": [
|
|
13990
|
+
{
|
|
13991
|
+
"kind": "Content",
|
|
13992
|
+
"text": "setItem(logger: "
|
|
13993
|
+
},
|
|
13994
|
+
{
|
|
13995
|
+
"kind": "Reference",
|
|
13996
|
+
"text": "IDiagnosticLogger",
|
|
13997
|
+
"canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger:interface"
|
|
13998
|
+
},
|
|
13999
|
+
{
|
|
14000
|
+
"kind": "Content",
|
|
14001
|
+
"text": ", name: "
|
|
14002
|
+
},
|
|
14003
|
+
{
|
|
14004
|
+
"kind": "Content",
|
|
14005
|
+
"text": "string"
|
|
14006
|
+
},
|
|
14007
|
+
{
|
|
14008
|
+
"kind": "Content",
|
|
14009
|
+
"text": ", data: "
|
|
14010
|
+
},
|
|
14011
|
+
{
|
|
14012
|
+
"kind": "Content",
|
|
14013
|
+
"text": "string"
|
|
14014
|
+
},
|
|
14015
|
+
{
|
|
14016
|
+
"kind": "Content",
|
|
14017
|
+
"text": "): "
|
|
14018
|
+
},
|
|
14019
|
+
{
|
|
14020
|
+
"kind": "Content",
|
|
14021
|
+
"text": "boolean"
|
|
14022
|
+
},
|
|
14023
|
+
{
|
|
14024
|
+
"kind": "Content",
|
|
14025
|
+
"text": ";"
|
|
14026
|
+
}
|
|
14027
|
+
],
|
|
14028
|
+
"isOptional": false,
|
|
14029
|
+
"returnTypeTokenRange": {
|
|
14030
|
+
"startIndex": 7,
|
|
14031
|
+
"endIndex": 8
|
|
14032
|
+
},
|
|
14033
|
+
"releaseTag": "Public",
|
|
14034
|
+
"overloadIndex": 1,
|
|
14035
|
+
"parameters": [
|
|
14036
|
+
{
|
|
14037
|
+
"parameterName": "logger",
|
|
14038
|
+
"parameterTypeTokenRange": {
|
|
14039
|
+
"startIndex": 1,
|
|
14040
|
+
"endIndex": 2
|
|
14041
|
+
},
|
|
14042
|
+
"isOptional": false
|
|
14043
|
+
},
|
|
14044
|
+
{
|
|
14045
|
+
"parameterName": "name",
|
|
14046
|
+
"parameterTypeTokenRange": {
|
|
14047
|
+
"startIndex": 3,
|
|
14048
|
+
"endIndex": 4
|
|
14049
|
+
},
|
|
14050
|
+
"isOptional": false
|
|
14051
|
+
},
|
|
14052
|
+
{
|
|
14053
|
+
"parameterName": "data",
|
|
14054
|
+
"parameterTypeTokenRange": {
|
|
14055
|
+
"startIndex": 5,
|
|
14056
|
+
"endIndex": 6
|
|
14057
|
+
},
|
|
14058
|
+
"isOptional": false
|
|
14059
|
+
}
|
|
14060
|
+
],
|
|
14061
|
+
"name": "setItem"
|
|
14062
|
+
}
|
|
14063
|
+
],
|
|
14064
|
+
"extendsTokenRanges": []
|
|
14065
|
+
},
|
|
13880
14066
|
{
|
|
13881
14067
|
"kind": "Interface",
|
|
13882
14068
|
"canonicalReference": "@microsoft/applicationinsights-common!ITelemetryContext:interface",
|
|
@@ -402,6 +402,7 @@ export interface IConfig {
|
|
|
402
402
|
autoExceptionInstrumented?: boolean;
|
|
403
403
|
autoTrackPageVisitTime?: boolean;
|
|
404
404
|
autoUnhandledPromiseInstrumented?: boolean;
|
|
405
|
+
bufferOverride?: IStorageBuffer;
|
|
405
406
|
convertUndefined?: any;
|
|
406
407
|
cookieDomain?: string;
|
|
407
408
|
cookiePath?: string;
|
|
@@ -860,6 +861,12 @@ export function isInternalApplicationInsightsEndpoint(endpointUrl: string): bool
|
|
|
860
861
|
|
|
861
862
|
export { isSampledFlag }
|
|
862
863
|
|
|
864
|
+
// @public
|
|
865
|
+
export interface IStorageBuffer {
|
|
866
|
+
getItem(logger: IDiagnosticLogger, name: string): string;
|
|
867
|
+
setItem(logger: IDiagnosticLogger, name: string, data: string): boolean;
|
|
868
|
+
}
|
|
869
|
+
|
|
863
870
|
export { isValidSpanId }
|
|
864
871
|
|
|
865
872
|
export { isValidTraceId }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 2.8.
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 2.8.13-dev.20230411.6
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -721,6 +721,10 @@ declare namespace ApplicationInsights {
|
|
|
721
721
|
* @defaultValue true
|
|
722
722
|
*/
|
|
723
723
|
enableSessionStorageBuffer?: boolean;
|
|
724
|
+
/**
|
|
725
|
+
* If specified, overrides the storage & retrieval mechanism that is used to manage unsent telemetry.
|
|
726
|
+
*/
|
|
727
|
+
bufferOverride?: IStorageBuffer;
|
|
724
728
|
/**
|
|
725
729
|
* @deprecated Use either disableCookiesUsage or specify a cookieCfg with the enabled value set.
|
|
726
730
|
* If true, the SDK will not store or read any data from cookies. Default is false. As this field is being deprecated, when both
|
|
@@ -1954,6 +1958,23 @@ declare namespace ApplicationInsights {
|
|
|
1954
1958
|
line: number;
|
|
1955
1959
|
}
|
|
1956
1960
|
|
|
1961
|
+
/**
|
|
1962
|
+
* Identifies a simple interface to allow you to override the storage mechanism used
|
|
1963
|
+
* to track unsent and unacknowledged events. When provided it must provide both
|
|
1964
|
+
* the get and set item functions.
|
|
1965
|
+
* @since 2.8.12
|
|
1966
|
+
*/
|
|
1967
|
+
interface IStorageBuffer {
|
|
1968
|
+
/**
|
|
1969
|
+
* Retrieves the stored value for a given key
|
|
1970
|
+
*/
|
|
1971
|
+
getItem(logger: IDiagnosticLogger, name: string): string;
|
|
1972
|
+
/**
|
|
1973
|
+
* Sets the stored value for a given key
|
|
1974
|
+
*/
|
|
1975
|
+
setItem(logger: IDiagnosticLogger, name: string, data: string): boolean;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1957
1978
|
export { isValidSpanId }
|
|
1958
1979
|
|
|
1959
1980
|
export { isValidTraceId }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 2.8.
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 2.8.13-dev.20230411.6
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -1176,7 +1176,7 @@
|
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
1178
|
var _objDefineProperty = ObjDefineProperty;
|
|
1179
|
-
var version = "2.8.
|
|
1179
|
+
var version = "2.8.13-dev.20230411.6";
|
|
1180
1180
|
var instanceName = "." + newId(6);
|
|
1181
1181
|
var _dataUid = 0;
|
|
1182
1182
|
function _createAccessor(target, prop, value) {
|