@microsoft/applicationinsights-properties-js 3.0.0-beta.2210-01 → 3.0.0-beta.2210-03
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-properties-js.integrity.json +9 -9
- package/browser/applicationinsights-properties-js.js +938 -495
- package/browser/applicationinsights-properties-js.js.map +1 -1
- package/browser/applicationinsights-properties-js.min.js +2 -2
- package/browser/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.api.json +21 -169
- package/dist/applicationinsights-properties-js.api.md +9 -20
- package/dist/applicationinsights-properties-js.d.ts +28 -33
- package/dist/applicationinsights-properties-js.js +938 -495
- package/dist/applicationinsights-properties-js.js.map +1 -1
- package/dist/applicationinsights-properties-js.min.js +2 -2
- package/dist/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.rollup.d.ts +28 -33
- package/dist-esm/Context/Application.js +1 -1
- package/dist-esm/Context/Device.js +1 -1
- package/dist-esm/Context/Internal.js +3 -3
- package/dist-esm/Context/Internal.js.map +1 -1
- package/dist-esm/Context/Location.js +1 -1
- package/dist-esm/Context/Session.js +30 -35
- package/dist-esm/Context/Session.js.map +1 -1
- package/dist-esm/Context/TelemetryTrace.js +1 -1
- package/dist-esm/Context/User.js +54 -46
- package/dist-esm/Context/User.js.map +1 -1
- package/dist-esm/Interfaces/IPropTelemetryContext.js +1 -1
- package/dist-esm/Interfaces/{ITelemetryConfig.js → IPropertiesConfig.js} +2 -2
- package/dist-esm/Interfaces/IPropertiesConfig.js.map +1 -0
- package/dist-esm/PropertiesPlugin.js +57 -50
- package/dist-esm/PropertiesPlugin.js.map +1 -1
- package/dist-esm/TelemetryContext.js +7 -5
- package/dist-esm/TelemetryContext.js.map +1 -1
- package/dist-esm/__DynamicConstants.js +8 -13
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-properties-js.js +1 -1
- package/package.json +4 -4
- package/src/Context/Internal.ts +10 -9
- package/src/Context/Session.ts +33 -45
- package/src/Context/User.ts +67 -56
- package/src/Interfaces/IPropertiesConfig.ts +20 -0
- package/src/PropertiesPlugin.ts +58 -54
- package/src/TelemetryContext.ts +8 -4
- package/src/__DynamicConstants.ts +7 -12
- package/types/Context/Internal.d.ts +2 -2
- package/types/Context/Session.d.ts +7 -11
- package/types/Context/User.d.ts +5 -5
- package/types/Interfaces/IPropertiesConfig.d.ts +17 -0
- package/types/PropertiesPlugin.d.ts +1 -3
- package/types/TelemetryContext.d.ts +2 -2
- package/types/__DynamicConstants.d.ts +1 -6
- package/dist-esm/Interfaces/ITelemetryConfig.js.map +0 -1
- package/src/Interfaces/ITelemetryConfig.ts +0 -20
- package/types/Interfaces/ITelemetryConfig.d.ts +0 -17
|
@@ -886,7 +886,7 @@
|
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
888
|
"kind": "Content",
|
|
889
|
-
"text": "
|
|
889
|
+
"text": "string"
|
|
890
890
|
},
|
|
891
891
|
{
|
|
892
892
|
"kind": "Content",
|
|
@@ -909,18 +909,18 @@
|
|
|
909
909
|
"excerptTokens": [
|
|
910
910
|
{
|
|
911
911
|
"kind": "Content",
|
|
912
|
-
"text": "getNewId?: "
|
|
912
|
+
"text": "readonly getNewId?: "
|
|
913
913
|
},
|
|
914
914
|
{
|
|
915
915
|
"kind": "Content",
|
|
916
|
-
"text": "(
|
|
916
|
+
"text": "(idLength?: number) => string"
|
|
917
917
|
},
|
|
918
918
|
{
|
|
919
919
|
"kind": "Content",
|
|
920
920
|
"text": ";"
|
|
921
921
|
}
|
|
922
922
|
],
|
|
923
|
-
"isReadonly":
|
|
923
|
+
"isReadonly": true,
|
|
924
924
|
"isOptional": true,
|
|
925
925
|
"releaseTag": "Public",
|
|
926
926
|
"name": "getNewId",
|
|
@@ -936,18 +936,18 @@
|
|
|
936
936
|
"excerptTokens": [
|
|
937
937
|
{
|
|
938
938
|
"kind": "Content",
|
|
939
|
-
"text": "idLength?: "
|
|
939
|
+
"text": "readonly idLength?: "
|
|
940
940
|
},
|
|
941
941
|
{
|
|
942
942
|
"kind": "Content",
|
|
943
|
-
"text": "
|
|
943
|
+
"text": "number"
|
|
944
944
|
},
|
|
945
945
|
{
|
|
946
946
|
"kind": "Content",
|
|
947
947
|
"text": ";"
|
|
948
948
|
}
|
|
949
949
|
],
|
|
950
|
-
"isReadonly":
|
|
950
|
+
"isReadonly": true,
|
|
951
951
|
"isOptional": true,
|
|
952
952
|
"releaseTag": "Public",
|
|
953
953
|
"name": "idLength",
|
|
@@ -963,18 +963,18 @@
|
|
|
963
963
|
"excerptTokens": [
|
|
964
964
|
{
|
|
965
965
|
"kind": "Content",
|
|
966
|
-
"text": "namePrefix?: "
|
|
966
|
+
"text": "readonly namePrefix?: "
|
|
967
967
|
},
|
|
968
968
|
{
|
|
969
969
|
"kind": "Content",
|
|
970
|
-
"text": "
|
|
970
|
+
"text": "string"
|
|
971
971
|
},
|
|
972
972
|
{
|
|
973
973
|
"kind": "Content",
|
|
974
974
|
"text": ";"
|
|
975
975
|
}
|
|
976
976
|
],
|
|
977
|
-
"isReadonly":
|
|
977
|
+
"isReadonly": true,
|
|
978
978
|
"isOptional": true,
|
|
979
979
|
"releaseTag": "Public",
|
|
980
980
|
"name": "namePrefix",
|
|
@@ -990,18 +990,18 @@
|
|
|
990
990
|
"excerptTokens": [
|
|
991
991
|
{
|
|
992
992
|
"kind": "Content",
|
|
993
|
-
"text": "sessionCookiePostfix?: "
|
|
993
|
+
"text": "readonly sessionCookiePostfix?: "
|
|
994
994
|
},
|
|
995
995
|
{
|
|
996
996
|
"kind": "Content",
|
|
997
|
-
"text": "
|
|
997
|
+
"text": "string"
|
|
998
998
|
},
|
|
999
999
|
{
|
|
1000
1000
|
"kind": "Content",
|
|
1001
1001
|
"text": ";"
|
|
1002
1002
|
}
|
|
1003
1003
|
],
|
|
1004
|
-
"isReadonly":
|
|
1004
|
+
"isReadonly": true,
|
|
1005
1005
|
"isOptional": true,
|
|
1006
1006
|
"releaseTag": "Public",
|
|
1007
1007
|
"name": "sessionCookiePostfix",
|
|
@@ -1017,18 +1017,18 @@
|
|
|
1017
1017
|
"excerptTokens": [
|
|
1018
1018
|
{
|
|
1019
1019
|
"kind": "Content",
|
|
1020
|
-
"text": "sessionExpirationMs?: "
|
|
1020
|
+
"text": "readonly sessionExpirationMs?: "
|
|
1021
1021
|
},
|
|
1022
1022
|
{
|
|
1023
1023
|
"kind": "Content",
|
|
1024
|
-
"text": "
|
|
1024
|
+
"text": "number"
|
|
1025
1025
|
},
|
|
1026
1026
|
{
|
|
1027
1027
|
"kind": "Content",
|
|
1028
1028
|
"text": ";"
|
|
1029
1029
|
}
|
|
1030
1030
|
],
|
|
1031
|
-
"isReadonly":
|
|
1031
|
+
"isReadonly": true,
|
|
1032
1032
|
"isOptional": true,
|
|
1033
1033
|
"releaseTag": "Public",
|
|
1034
1034
|
"name": "sessionExpirationMs",
|
|
@@ -1044,18 +1044,18 @@
|
|
|
1044
1044
|
"excerptTokens": [
|
|
1045
1045
|
{
|
|
1046
1046
|
"kind": "Content",
|
|
1047
|
-
"text": "sessionRenewalMs?: "
|
|
1047
|
+
"text": "readonly sessionRenewalMs?: "
|
|
1048
1048
|
},
|
|
1049
1049
|
{
|
|
1050
1050
|
"kind": "Content",
|
|
1051
|
-
"text": "
|
|
1051
|
+
"text": "number"
|
|
1052
1052
|
},
|
|
1053
1053
|
{
|
|
1054
1054
|
"kind": "Content",
|
|
1055
1055
|
"text": ";"
|
|
1056
1056
|
}
|
|
1057
1057
|
],
|
|
1058
|
-
"isReadonly":
|
|
1058
|
+
"isReadonly": true,
|
|
1059
1059
|
"isOptional": true,
|
|
1060
1060
|
"releaseTag": "Public",
|
|
1061
1061
|
"name": "sessionRenewalMs",
|
|
@@ -1144,37 +1144,6 @@
|
|
|
1144
1144
|
"isStatic": false,
|
|
1145
1145
|
"isProtected": false
|
|
1146
1146
|
},
|
|
1147
|
-
{
|
|
1148
|
-
"kind": "Method",
|
|
1149
|
-
"canonicalReference": "@microsoft/applicationinsights-properties-js!PropertiesPlugin.getDefaultConfig:member(1)",
|
|
1150
|
-
"docComment": "",
|
|
1151
|
-
"excerptTokens": [
|
|
1152
|
-
{
|
|
1153
|
-
"kind": "Content",
|
|
1154
|
-
"text": "static getDefaultConfig(): "
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
"kind": "Reference",
|
|
1158
|
-
"text": "ITelemetryConfig",
|
|
1159
|
-
"canonicalReference": "@microsoft/applicationinsights-properties-js!~ITelemetryConfig:interface"
|
|
1160
|
-
},
|
|
1161
|
-
{
|
|
1162
|
-
"kind": "Content",
|
|
1163
|
-
"text": ";"
|
|
1164
|
-
}
|
|
1165
|
-
],
|
|
1166
|
-
"isStatic": true,
|
|
1167
|
-
"returnTypeTokenRange": {
|
|
1168
|
-
"startIndex": 1,
|
|
1169
|
-
"endIndex": 2
|
|
1170
|
-
},
|
|
1171
|
-
"releaseTag": "Public",
|
|
1172
|
-
"isProtected": false,
|
|
1173
|
-
"overloadIndex": 1,
|
|
1174
|
-
"parameters": [],
|
|
1175
|
-
"isOptional": false,
|
|
1176
|
-
"name": "getDefaultConfig"
|
|
1177
|
-
},
|
|
1178
1147
|
{
|
|
1179
1148
|
"kind": "Property",
|
|
1180
1149
|
"canonicalReference": "@microsoft/applicationinsights-properties-js!PropertiesPlugin#identifier:member",
|
|
@@ -1604,35 +1573,6 @@
|
|
|
1604
1573
|
}
|
|
1605
1574
|
]
|
|
1606
1575
|
},
|
|
1607
|
-
{
|
|
1608
|
-
"kind": "Property",
|
|
1609
|
-
"canonicalReference": "@microsoft/applicationinsights-properties-js!SessionManager.acquisitionSpan:member",
|
|
1610
|
-
"docComment": "",
|
|
1611
|
-
"excerptTokens": [
|
|
1612
|
-
{
|
|
1613
|
-
"kind": "Content",
|
|
1614
|
-
"text": "static acquisitionSpan: "
|
|
1615
|
-
},
|
|
1616
|
-
{
|
|
1617
|
-
"kind": "Content",
|
|
1618
|
-
"text": "number"
|
|
1619
|
-
},
|
|
1620
|
-
{
|
|
1621
|
-
"kind": "Content",
|
|
1622
|
-
"text": ";"
|
|
1623
|
-
}
|
|
1624
|
-
],
|
|
1625
|
-
"isReadonly": false,
|
|
1626
|
-
"isOptional": false,
|
|
1627
|
-
"releaseTag": "Public",
|
|
1628
|
-
"name": "acquisitionSpan",
|
|
1629
|
-
"propertyTypeTokenRange": {
|
|
1630
|
-
"startIndex": 1,
|
|
1631
|
-
"endIndex": 2
|
|
1632
|
-
},
|
|
1633
|
-
"isStatic": true,
|
|
1634
|
-
"isProtected": false
|
|
1635
|
-
},
|
|
1636
1576
|
{
|
|
1637
1577
|
"kind": "Property",
|
|
1638
1578
|
"canonicalReference": "@microsoft/applicationinsights-properties-js!SessionManager#automaticSession:member",
|
|
@@ -1693,94 +1633,6 @@
|
|
|
1693
1633
|
"isOptional": false,
|
|
1694
1634
|
"name": "backup"
|
|
1695
1635
|
},
|
|
1696
|
-
{
|
|
1697
|
-
"kind": "Property",
|
|
1698
|
-
"canonicalReference": "@microsoft/applicationinsights-properties-js!SessionManager#config:member",
|
|
1699
|
-
"docComment": "",
|
|
1700
|
-
"excerptTokens": [
|
|
1701
|
-
{
|
|
1702
|
-
"kind": "Content",
|
|
1703
|
-
"text": "config: "
|
|
1704
|
-
},
|
|
1705
|
-
{
|
|
1706
|
-
"kind": "Reference",
|
|
1707
|
-
"text": "ISessionConfig",
|
|
1708
|
-
"canonicalReference": "@microsoft/applicationinsights-properties-js!ISessionConfig:interface"
|
|
1709
|
-
},
|
|
1710
|
-
{
|
|
1711
|
-
"kind": "Content",
|
|
1712
|
-
"text": ";"
|
|
1713
|
-
}
|
|
1714
|
-
],
|
|
1715
|
-
"isReadonly": false,
|
|
1716
|
-
"isOptional": false,
|
|
1717
|
-
"releaseTag": "Public",
|
|
1718
|
-
"name": "config",
|
|
1719
|
-
"propertyTypeTokenRange": {
|
|
1720
|
-
"startIndex": 1,
|
|
1721
|
-
"endIndex": 2
|
|
1722
|
-
},
|
|
1723
|
-
"isStatic": false,
|
|
1724
|
-
"isProtected": false
|
|
1725
|
-
},
|
|
1726
|
-
{
|
|
1727
|
-
"kind": "Property",
|
|
1728
|
-
"canonicalReference": "@microsoft/applicationinsights-properties-js!SessionManager.cookieUpdateInterval:member",
|
|
1729
|
-
"docComment": "",
|
|
1730
|
-
"excerptTokens": [
|
|
1731
|
-
{
|
|
1732
|
-
"kind": "Content",
|
|
1733
|
-
"text": "static cookieUpdateInterval: "
|
|
1734
|
-
},
|
|
1735
|
-
{
|
|
1736
|
-
"kind": "Content",
|
|
1737
|
-
"text": "number"
|
|
1738
|
-
},
|
|
1739
|
-
{
|
|
1740
|
-
"kind": "Content",
|
|
1741
|
-
"text": ";"
|
|
1742
|
-
}
|
|
1743
|
-
],
|
|
1744
|
-
"isReadonly": false,
|
|
1745
|
-
"isOptional": false,
|
|
1746
|
-
"releaseTag": "Public",
|
|
1747
|
-
"name": "cookieUpdateInterval",
|
|
1748
|
-
"propertyTypeTokenRange": {
|
|
1749
|
-
"startIndex": 1,
|
|
1750
|
-
"endIndex": 2
|
|
1751
|
-
},
|
|
1752
|
-
"isStatic": true,
|
|
1753
|
-
"isProtected": false
|
|
1754
|
-
},
|
|
1755
|
-
{
|
|
1756
|
-
"kind": "Property",
|
|
1757
|
-
"canonicalReference": "@microsoft/applicationinsights-properties-js!SessionManager.renewalSpan:member",
|
|
1758
|
-
"docComment": "",
|
|
1759
|
-
"excerptTokens": [
|
|
1760
|
-
{
|
|
1761
|
-
"kind": "Content",
|
|
1762
|
-
"text": "static renewalSpan: "
|
|
1763
|
-
},
|
|
1764
|
-
{
|
|
1765
|
-
"kind": "Content",
|
|
1766
|
-
"text": "number"
|
|
1767
|
-
},
|
|
1768
|
-
{
|
|
1769
|
-
"kind": "Content",
|
|
1770
|
-
"text": ";"
|
|
1771
|
-
}
|
|
1772
|
-
],
|
|
1773
|
-
"isReadonly": false,
|
|
1774
|
-
"isOptional": false,
|
|
1775
|
-
"releaseTag": "Public",
|
|
1776
|
-
"name": "renewalSpan",
|
|
1777
|
-
"propertyTypeTokenRange": {
|
|
1778
|
-
"startIndex": 1,
|
|
1779
|
-
"endIndex": 2
|
|
1780
|
-
},
|
|
1781
|
-
"isStatic": true,
|
|
1782
|
-
"isProtected": false
|
|
1783
|
-
},
|
|
1784
1636
|
{
|
|
1785
1637
|
"kind": "Method",
|
|
1786
1638
|
"canonicalReference": "@microsoft/applicationinsights-properties-js!SessionManager#update:member(1)",
|
|
@@ -1857,8 +1709,8 @@
|
|
|
1857
1709
|
},
|
|
1858
1710
|
{
|
|
1859
1711
|
"kind": "Reference",
|
|
1860
|
-
"text": "
|
|
1861
|
-
"canonicalReference": "@microsoft/applicationinsights-properties-js!~
|
|
1712
|
+
"text": "IPropertiesConfig",
|
|
1713
|
+
"canonicalReference": "@microsoft/applicationinsights-properties-js!~IPropertiesConfig:interface"
|
|
1862
1714
|
},
|
|
1863
1715
|
{
|
|
1864
1716
|
"kind": "Content",
|
|
@@ -56,19 +56,19 @@ export interface IPropTelemetryContext extends ITelemetryContext {
|
|
|
56
56
|
// @public (undocumented)
|
|
57
57
|
export interface ISessionConfig {
|
|
58
58
|
// @deprecated (undocumented)
|
|
59
|
-
cookieDomain?:
|
|
59
|
+
cookieDomain?: string;
|
|
60
60
|
// (undocumented)
|
|
61
|
-
getNewId?: (
|
|
61
|
+
readonly getNewId?: (idLength?: number) => string;
|
|
62
62
|
// (undocumented)
|
|
63
|
-
idLength?:
|
|
63
|
+
readonly idLength?: number;
|
|
64
64
|
// (undocumented)
|
|
65
|
-
namePrefix?:
|
|
65
|
+
readonly namePrefix?: string;
|
|
66
66
|
// (undocumented)
|
|
67
|
-
sessionCookiePostfix?:
|
|
67
|
+
readonly sessionCookiePostfix?: string;
|
|
68
68
|
// (undocumented)
|
|
69
|
-
sessionExpirationMs?:
|
|
69
|
+
readonly sessionExpirationMs?: number;
|
|
70
70
|
// (undocumented)
|
|
71
|
-
sessionRenewalMs?:
|
|
71
|
+
readonly sessionRenewalMs?: number;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
// @public (undocumented)
|
|
@@ -76,10 +76,6 @@ export class PropertiesPlugin extends BaseTelemetryPlugin implements IProperties
|
|
|
76
76
|
constructor();
|
|
77
77
|
// (undocumented)
|
|
78
78
|
context: IPropTelemetryContext;
|
|
79
|
-
// Warning: (ae-forgotten-export) The symbol "ITelemetryConfig" needs to be exported by the entry point applicationinsights-properties-js.d.ts
|
|
80
|
-
//
|
|
81
|
-
// (undocumented)
|
|
82
|
-
static getDefaultConfig(): ITelemetryConfig;
|
|
83
79
|
// (undocumented)
|
|
84
80
|
identifier: string;
|
|
85
81
|
// (undocumented)
|
|
@@ -100,23 +96,16 @@ export class Session implements ISession {
|
|
|
100
96
|
export class SessionManager {
|
|
101
97
|
constructor(config: ISessionConfig, core?: IAppInsightsCore);
|
|
102
98
|
// (undocumented)
|
|
103
|
-
static acquisitionSpan: number;
|
|
104
|
-
// (undocumented)
|
|
105
99
|
automaticSession: Session;
|
|
106
100
|
backup(): void;
|
|
107
101
|
// (undocumented)
|
|
108
|
-
config: ISessionConfig;
|
|
109
|
-
// (undocumented)
|
|
110
|
-
static cookieUpdateInterval: number;
|
|
111
|
-
// (undocumented)
|
|
112
|
-
static renewalSpan: number;
|
|
113
|
-
// (undocumented)
|
|
114
102
|
update(): void;
|
|
115
103
|
}
|
|
116
104
|
|
|
117
105
|
// @public (undocumented)
|
|
118
106
|
export class TelemetryContext implements IPropTelemetryContext {
|
|
119
|
-
|
|
107
|
+
// Warning: (ae-forgotten-export) The symbol "IPropertiesConfig" needs to be exported by the entry point applicationinsights-properties-js.d.ts
|
|
108
|
+
constructor(core: IAppInsightsCore, defaultConfig: IPropertiesConfig, previousTraceCtx?: IDistributedTraceContext);
|
|
120
109
|
// (undocumented)
|
|
121
110
|
appId: () => string;
|
|
122
111
|
// (undocumented)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights properties plugin, 3.0.0-beta.2210-
|
|
2
|
+
* Microsoft Application Insights properties plugin, 3.0.0-beta.2210-03
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -30,6 +30,24 @@ declare namespace ApplicationInsights {
|
|
|
30
30
|
import { IUserContext } from '@microsoft/applicationinsights-common';
|
|
31
31
|
import { IWeb } from '@microsoft/applicationinsights-common';
|
|
32
32
|
|
|
33
|
+
interface IPropertiesConfig {
|
|
34
|
+
readonly instrumentationKey: string;
|
|
35
|
+
readonly accountId: string;
|
|
36
|
+
readonly sessionRenewalMs: number;
|
|
37
|
+
readonly samplingPercentage: number;
|
|
38
|
+
readonly sessionExpirationMs: number;
|
|
39
|
+
readonly cookieDomain: string;
|
|
40
|
+
readonly sdkExtension: string;
|
|
41
|
+
readonly isBrowserLinkTrackingEnabled: boolean;
|
|
42
|
+
readonly appId: string;
|
|
43
|
+
readonly getSessionId: string;
|
|
44
|
+
readonly namePrefix: string;
|
|
45
|
+
readonly sessionCookiePostfix: string;
|
|
46
|
+
readonly userCookiePostfix: string;
|
|
47
|
+
readonly idLength: number;
|
|
48
|
+
readonly getNewId: (idLength?: number) => string;
|
|
49
|
+
}
|
|
50
|
+
|
|
33
51
|
interface IPropTelemetryContext extends ITelemetryContext {
|
|
34
52
|
readonly sessionManager: SessionManager;
|
|
35
53
|
applySessionContext(evt: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
@@ -45,38 +63,19 @@ declare namespace ApplicationInsights {
|
|
|
45
63
|
}
|
|
46
64
|
|
|
47
65
|
interface ISessionConfig {
|
|
48
|
-
sessionRenewalMs?:
|
|
49
|
-
sessionExpirationMs?:
|
|
50
|
-
namePrefix?:
|
|
51
|
-
sessionCookiePostfix?:
|
|
52
|
-
idLength?:
|
|
53
|
-
getNewId?: (
|
|
66
|
+
readonly sessionRenewalMs?: number;
|
|
67
|
+
readonly sessionExpirationMs?: number;
|
|
68
|
+
readonly namePrefix?: string;
|
|
69
|
+
readonly sessionCookiePostfix?: string;
|
|
70
|
+
readonly idLength?: number;
|
|
71
|
+
readonly getNewId?: (idLength?: number) => string;
|
|
54
72
|
/**
|
|
55
73
|
* @deprecated Avoid using this value to override the cookie manager cookie domain.
|
|
56
74
|
*/
|
|
57
|
-
cookieDomain?:
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
interface ITelemetryConfig {
|
|
61
|
-
instrumentationKey: () => string;
|
|
62
|
-
accountId: () => string;
|
|
63
|
-
sessionRenewalMs: () => number;
|
|
64
|
-
samplingPercentage: () => number;
|
|
65
|
-
sessionExpirationMs: () => number;
|
|
66
|
-
cookieDomain: () => null;
|
|
67
|
-
sdkExtension: () => string;
|
|
68
|
-
isBrowserLinkTrackingEnabled: () => boolean;
|
|
69
|
-
appId: () => string;
|
|
70
|
-
getSessionId: () => string;
|
|
71
|
-
namePrefix: () => string;
|
|
72
|
-
sessionCookiePostfix: () => string;
|
|
73
|
-
userCookiePostfix: () => string;
|
|
74
|
-
idLength: () => number;
|
|
75
|
-
getNewId: () => (idLength?: number) => string;
|
|
75
|
+
cookieDomain?: string;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
class PropertiesPlugin extends BaseTelemetryPlugin implements IPropertiesPlugin {
|
|
79
|
-
static getDefaultConfig(): ITelemetryConfig;
|
|
80
79
|
context: IPropTelemetryContext;
|
|
81
80
|
priority: number;
|
|
82
81
|
identifier: string;
|
|
@@ -84,7 +83,7 @@ declare namespace ApplicationInsights {
|
|
|
84
83
|
initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
85
84
|
/**
|
|
86
85
|
* Add Part A fields to the event
|
|
87
|
-
* @param event The event that needs to be processed
|
|
86
|
+
* @param event - The event that needs to be processed
|
|
88
87
|
*/
|
|
89
88
|
processTelemetry(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
90
89
|
}
|
|
@@ -108,11 +107,7 @@ declare namespace ApplicationInsights {
|
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
class SessionManager {
|
|
111
|
-
static acquisitionSpan: number;
|
|
112
|
-
static renewalSpan: number;
|
|
113
|
-
static cookieUpdateInterval: number;
|
|
114
110
|
automaticSession: Session;
|
|
115
|
-
config: ISessionConfig;
|
|
116
111
|
constructor(config: ISessionConfig, core?: IAppInsightsCore);
|
|
117
112
|
update(): void;
|
|
118
113
|
/**
|
|
@@ -136,7 +131,7 @@ declare namespace ApplicationInsights {
|
|
|
136
131
|
web: IWeb;
|
|
137
132
|
appId: () => string;
|
|
138
133
|
getSessionId: () => string;
|
|
139
|
-
constructor(core: IAppInsightsCore, defaultConfig:
|
|
134
|
+
constructor(core: IAppInsightsCore, defaultConfig: IPropertiesConfig, previousTraceCtx?: IDistributedTraceContext);
|
|
140
135
|
applySessionContext(evt: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
141
136
|
applyOperatingSystemContxt(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
142
137
|
applyApplicationContext(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|