@microsoft/applicationinsights-web 2.8.0-beta.2202-06 → 2.8.0-beta.2203-02

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.
Files changed (51) hide show
  1. package/README.md +1 -0
  2. package/browser/{ai.2.8.0-beta.2202-06.cjs.js → ai.2.8.0-beta.2203-02.cjs.js} +876 -515
  3. package/browser/ai.2.8.0-beta.2203-02.cjs.js.map +1 -0
  4. package/browser/ai.2.8.0-beta.2203-02.cjs.min.js +6 -0
  5. package/browser/ai.2.8.0-beta.2203-02.cjs.min.js.map +1 -0
  6. package/browser/{ai.2.8.0-beta.2202-06.gbl.js → ai.2.8.0-beta.2203-02.gbl.js} +876 -515
  7. package/browser/ai.2.8.0-beta.2203-02.gbl.js.map +1 -0
  8. package/browser/ai.2.8.0-beta.2203-02.gbl.min.js +6 -0
  9. package/browser/ai.2.8.0-beta.2203-02.gbl.min.js.map +1 -0
  10. package/browser/ai.2.8.0-beta.2203-02.integrity.json +66 -0
  11. package/browser/{ai.2.8.0-beta.2202-06.js → ai.2.8.0-beta.2203-02.js} +876 -515
  12. package/browser/ai.2.8.0-beta.2203-02.js.map +1 -0
  13. package/browser/ai.2.8.0-beta.2203-02.min.js +6 -0
  14. package/browser/ai.2.8.0-beta.2203-02.min.js.map +1 -0
  15. package/browser/ai.2.cjs.js +875 -514
  16. package/browser/ai.2.cjs.js.map +1 -1
  17. package/browser/ai.2.cjs.min.js +2 -2
  18. package/browser/ai.2.cjs.min.js.map +1 -1
  19. package/browser/ai.2.gbl.js +875 -514
  20. package/browser/ai.2.gbl.js.map +1 -1
  21. package/browser/ai.2.gbl.min.js +2 -2
  22. package/browser/ai.2.gbl.min.js.map +1 -1
  23. package/browser/ai.2.js +875 -514
  24. package/browser/ai.2.js.map +1 -1
  25. package/browser/ai.2.min.js +2 -2
  26. package/browser/ai.2.min.js.map +1 -1
  27. package/dist/applicationinsights-web.api.json +328 -568
  28. package/dist/applicationinsights-web.api.md +44 -32
  29. package/dist/applicationinsights-web.d.ts +298 -93
  30. package/dist/applicationinsights-web.js +941 -578
  31. package/dist/applicationinsights-web.js.map +1 -1
  32. package/dist/applicationinsights-web.min.js +2 -2
  33. package/dist/applicationinsights-web.min.js.map +1 -1
  34. package/dist/applicationinsights-web.rollup.d.ts +298 -93
  35. package/dist-esm/ApplicationInsightsContainer.js +1 -1
  36. package/dist-esm/ApplicationInsightsDeprecated.js +1 -1
  37. package/dist-esm/Init.js +1 -1
  38. package/dist-esm/Initialization.js +1 -1
  39. package/dist-esm/applicationinsights-web.js +1 -1
  40. package/package.json +7 -7
  41. package/types/Initialization.d.ts +6 -2
  42. package/browser/ai.2.8.0-beta.2202-06.cjs.js.map +0 -1
  43. package/browser/ai.2.8.0-beta.2202-06.cjs.min.js +0 -6
  44. package/browser/ai.2.8.0-beta.2202-06.cjs.min.js.map +0 -1
  45. package/browser/ai.2.8.0-beta.2202-06.gbl.js.map +0 -1
  46. package/browser/ai.2.8.0-beta.2202-06.gbl.min.js +0 -6
  47. package/browser/ai.2.8.0-beta.2202-06.gbl.min.js.map +0 -1
  48. package/browser/ai.2.8.0-beta.2202-06.integrity.json +0 -66
  49. package/browser/ai.2.8.0-beta.2202-06.js.map +0 -1
  50. package/browser/ai.2.8.0-beta.2202-06.min.js +0 -6
  51. package/browser/ai.2.8.0-beta.2202-06.min.js.map +0 -1
@@ -180,12 +180,12 @@
180
180
  },
181
181
  {
182
182
  "kind": "Content",
183
- "text": "number | typeof "
183
+ "text": "number | "
184
184
  },
185
185
  {
186
186
  "kind": "Reference",
187
- "text": "_InternalMessageId",
188
- "canonicalReference": "@microsoft/applicationinsights-web!_InternalMessageId:var"
187
+ "text": "_eInternalMessageId",
188
+ "canonicalReference": "@microsoft/applicationinsights-web!_eInternalMessageId:enum"
189
189
  },
190
190
  {
191
191
  "kind": "Content",
@@ -3792,6 +3792,35 @@
3792
3792
  "parameters": [],
3793
3793
  "name": "eventCnt"
3794
3794
  },
3795
+ {
3796
+ "kind": "Method",
3797
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#evtNamespace:member(1)",
3798
+ "docComment": "/**\n * Returns the unique event namespace that should be used\n */\n",
3799
+ "excerptTokens": [
3800
+ {
3801
+ "kind": "Content",
3802
+ "text": "evtNamespace(): "
3803
+ },
3804
+ {
3805
+ "kind": "Content",
3806
+ "text": "string"
3807
+ },
3808
+ {
3809
+ "kind": "Content",
3810
+ "text": ";"
3811
+ }
3812
+ ],
3813
+ "isOptional": false,
3814
+ "isStatic": false,
3815
+ "returnTypeTokenRange": {
3816
+ "startIndex": 1,
3817
+ "endIndex": 2
3818
+ },
3819
+ "releaseTag": "Public",
3820
+ "overloadIndex": 1,
3821
+ "parameters": [],
3822
+ "name": "evtNamespace"
3823
+ },
3795
3824
  {
3796
3825
  "kind": "Method",
3797
3826
  "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#getCookieMgr:member(1)",
@@ -4560,6 +4589,51 @@
4560
4589
  ],
4561
4590
  "name": "_addHook"
4562
4591
  },
4592
+ {
4593
+ "kind": "Property",
4594
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#_doTeardown:member",
4595
+ "docComment": "/**\n * Teardown / Unload hook to allow implementations to perform some additional unload operations before the BaseTelemetryPlugin finishes it's removal.\n *\n * @param unloadCtx - This is the context that should be used during unloading.\n *\n * @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.\n *\n * @param asyncCallback - An optional callback that the plugin must call if it returns true to inform the caller that it has completed any async unload/teardown operations.\n *\n * @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.\n */\n",
4596
+ "excerptTokens": [
4597
+ {
4598
+ "kind": "Content",
4599
+ "text": "protected _doTeardown?: "
4600
+ },
4601
+ {
4602
+ "kind": "Content",
4603
+ "text": "(unloadCtx?: "
4604
+ },
4605
+ {
4606
+ "kind": "Reference",
4607
+ "text": "IProcessTelemetryUnloadContext",
4608
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUnloadContext:interface"
4609
+ },
4610
+ {
4611
+ "kind": "Content",
4612
+ "text": ", unloadState?: "
4613
+ },
4614
+ {
4615
+ "kind": "Reference",
4616
+ "text": "ITelemetryUnloadState",
4617
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUnloadState:interface"
4618
+ },
4619
+ {
4620
+ "kind": "Content",
4621
+ "text": ", asyncCallback?: () => void) => void | boolean"
4622
+ },
4623
+ {
4624
+ "kind": "Content",
4625
+ "text": ";"
4626
+ }
4627
+ ],
4628
+ "isOptional": true,
4629
+ "releaseTag": "Public",
4630
+ "name": "_doTeardown",
4631
+ "propertyTypeTokenRange": {
4632
+ "startIndex": 1,
4633
+ "endIndex": 6
4634
+ },
4635
+ "isStatic": false
4636
+ },
4563
4637
  {
4564
4638
  "kind": "Property",
4565
4639
  "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#_getTelCtx:member",
@@ -5042,6 +5116,68 @@
5042
5116
  },
5043
5117
  "isStatic": false
5044
5118
  },
5119
+ {
5120
+ "kind": "Method",
5121
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#teardown:member(1)",
5122
+ "docComment": "/**\n * Tear down the plugin and remove any hooked value, the plugin should be removed so that it is no longer initialized and therefore could be re-initialized after being torn down. The plugin should ensure that once this has been called any further processTelemetry calls are ignored and it just calls the processNext() with the provided context.\n *\n * @param unloadCtx - This is the context that should be used during unloading.\n *\n * @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.\n *\n * @returns boolean - true if the plugin has or will call processNext(), this for backward compatibility as previously teardown was synchronous and returned nothing.\n */\n",
5123
+ "excerptTokens": [
5124
+ {
5125
+ "kind": "Content",
5126
+ "text": "teardown(unloadCtx?: "
5127
+ },
5128
+ {
5129
+ "kind": "Reference",
5130
+ "text": "IProcessTelemetryUnloadContext",
5131
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUnloadContext:interface"
5132
+ },
5133
+ {
5134
+ "kind": "Content",
5135
+ "text": ", unloadState?: "
5136
+ },
5137
+ {
5138
+ "kind": "Reference",
5139
+ "text": "ITelemetryUnloadState",
5140
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUnloadState:interface"
5141
+ },
5142
+ {
5143
+ "kind": "Content",
5144
+ "text": "): "
5145
+ },
5146
+ {
5147
+ "kind": "Content",
5148
+ "text": "void | boolean"
5149
+ },
5150
+ {
5151
+ "kind": "Content",
5152
+ "text": ";"
5153
+ }
5154
+ ],
5155
+ "isOptional": false,
5156
+ "isStatic": false,
5157
+ "returnTypeTokenRange": {
5158
+ "startIndex": 5,
5159
+ "endIndex": 6
5160
+ },
5161
+ "releaseTag": "Public",
5162
+ "overloadIndex": 1,
5163
+ "parameters": [
5164
+ {
5165
+ "parameterName": "unloadCtx",
5166
+ "parameterTypeTokenRange": {
5167
+ "startIndex": 1,
5168
+ "endIndex": 2
5169
+ }
5170
+ },
5171
+ {
5172
+ "parameterName": "unloadState",
5173
+ "parameterTypeTokenRange": {
5174
+ "startIndex": 3,
5175
+ "endIndex": 4
5176
+ }
5177
+ }
5178
+ ],
5179
+ "name": "teardown"
5180
+ },
5045
5181
  {
5046
5182
  "kind": "Property",
5047
5183
  "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#version:member",
@@ -5565,35 +5701,6 @@
5565
5701
  ],
5566
5702
  "name": "processTelemetry"
5567
5703
  },
5568
- {
5569
- "kind": "Method",
5570
- "canonicalReference": "@microsoft/applicationinsights-web!DependenciesPlugin#teardown:member(1)",
5571
- "docComment": "",
5572
- "excerptTokens": [
5573
- {
5574
- "kind": "Content",
5575
- "text": "teardown(): "
5576
- },
5577
- {
5578
- "kind": "Content",
5579
- "text": "void"
5580
- },
5581
- {
5582
- "kind": "Content",
5583
- "text": ";"
5584
- }
5585
- ],
5586
- "isOptional": false,
5587
- "isStatic": false,
5588
- "returnTypeTokenRange": {
5589
- "startIndex": 1,
5590
- "endIndex": 2
5591
- },
5592
- "releaseTag": "Public",
5593
- "overloadIndex": 1,
5594
- "parameters": [],
5595
- "name": "teardown"
5596
- },
5597
5704
  {
5598
5705
  "kind": "Method",
5599
5706
  "canonicalReference": "@microsoft/applicationinsights-web!DependenciesPlugin#trackDependencyData:member(1)",
@@ -5748,82 +5855,55 @@
5748
5855
  ]
5749
5856
  },
5750
5857
  {
5751
- "kind": "Enum",
5752
- "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes:enum",
5858
+ "kind": "TypeAlias",
5859
+ "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes:type",
5753
5860
  "docComment": "",
5754
5861
  "excerptTokens": [
5755
5862
  {
5756
5863
  "kind": "Content",
5757
- "text": "export declare enum DistributedTracingModes "
5864
+ "text": "export declare type DistributedTracingModes = "
5865
+ },
5866
+ {
5867
+ "kind": "Content",
5868
+ "text": "number | "
5869
+ },
5870
+ {
5871
+ "kind": "Reference",
5872
+ "text": "eDistributedTracingModes",
5873
+ "canonicalReference": "@microsoft/applicationinsights-web!eDistributedTracingModes:enum"
5874
+ },
5875
+ {
5876
+ "kind": "Content",
5877
+ "text": ";"
5758
5878
  }
5759
5879
  ],
5760
5880
  "releaseTag": "Public",
5761
5881
  "name": "DistributedTracingModes",
5762
- "members": [
5763
- {
5764
- "kind": "EnumMember",
5765
- "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes.AI:member",
5766
- "docComment": "/**\n * (Default) Send Application Insights correlation headers\n */\n",
5767
- "excerptTokens": [
5768
- {
5769
- "kind": "Content",
5770
- "text": "AI = "
5771
- },
5772
- {
5773
- "kind": "Content",
5774
- "text": "0"
5775
- }
5776
- ],
5777
- "releaseTag": "Public",
5778
- "name": "AI",
5779
- "initializerTokenRange": {
5780
- "startIndex": 1,
5781
- "endIndex": 2
5782
- }
5783
- },
5882
+ "typeTokenRange": {
5883
+ "startIndex": 1,
5884
+ "endIndex": 3
5885
+ }
5886
+ },
5887
+ {
5888
+ "kind": "Variable",
5889
+ "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes:var",
5890
+ "docComment": "",
5891
+ "excerptTokens": [
5784
5892
  {
5785
- "kind": "EnumMember",
5786
- "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes.AI_AND_W3C:member",
5787
- "docComment": "/**\n * Send both W3C Trace Context headers and back-compatibility Application Insights headers\n */\n",
5788
- "excerptTokens": [
5789
- {
5790
- "kind": "Content",
5791
- "text": "AI_AND_W3C = "
5792
- },
5793
- {
5794
- "kind": "Content",
5795
- "text": "1"
5796
- }
5797
- ],
5798
- "releaseTag": "Public",
5799
- "name": "AI_AND_W3C",
5800
- "initializerTokenRange": {
5801
- "startIndex": 1,
5802
- "endIndex": 2
5803
- }
5893
+ "kind": "Content",
5894
+ "text": "DistributedTracingModes: "
5804
5895
  },
5805
5896
  {
5806
- "kind": "EnumMember",
5807
- "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes.W3C:member",
5808
- "docComment": "/**\n * Send W3C Trace Context headers\n */\n",
5809
- "excerptTokens": [
5810
- {
5811
- "kind": "Content",
5812
- "text": "W3C = "
5813
- },
5814
- {
5815
- "kind": "Content",
5816
- "text": "2"
5817
- }
5818
- ],
5819
- "releaseTag": "Public",
5820
- "name": "W3C",
5821
- "initializerTokenRange": {
5822
- "startIndex": 1,
5823
- "endIndex": 2
5824
- }
5897
+ "kind": "Content",
5898
+ "text": "{\n AI: number;\n AI_AND_W3C: number;\n W3C: number;\n}"
5825
5899
  }
5826
- ]
5900
+ ],
5901
+ "releaseTag": "Public",
5902
+ "name": "DistributedTracingModes",
5903
+ "variableTypeTokenRange": {
5904
+ "startIndex": 1,
5905
+ "endIndex": 2
5906
+ }
5827
5907
  },
5828
5908
  {
5829
5909
  "kind": "Function",
@@ -7903,6 +7983,34 @@
7903
7983
  "endIndex": 2
7904
7984
  }
7905
7985
  },
7986
+ {
7987
+ "kind": "MethodSignature",
7988
+ "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#evtNamespace:member(1)",
7989
+ "docComment": "/**\n * Returns the unique event namespace that should be used when registering events\n */\n",
7990
+ "excerptTokens": [
7991
+ {
7992
+ "kind": "Content",
7993
+ "text": "evtNamespace(): "
7994
+ },
7995
+ {
7996
+ "kind": "Content",
7997
+ "text": "string"
7998
+ },
7999
+ {
8000
+ "kind": "Content",
8001
+ "text": ";"
8002
+ }
8003
+ ],
8004
+ "isOptional": false,
8005
+ "returnTypeTokenRange": {
8006
+ "startIndex": 1,
8007
+ "endIndex": 2
8008
+ },
8009
+ "releaseTag": "Public",
8010
+ "overloadIndex": 1,
8011
+ "parameters": [],
8012
+ "name": "evtNamespace"
8013
+ },
7906
8014
  {
7907
8015
  "kind": "MethodSignature",
7908
8016
  "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#getCookieMgr:member(1)",
@@ -11202,7 +11310,7 @@
11202
11310
  {
11203
11311
  "kind": "Reference",
11204
11312
  "text": "DistributedTracingModes",
11205
- "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes:enum"
11313
+ "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes:type"
11206
11314
  },
11207
11315
  {
11208
11316
  "kind": "Content",
@@ -12759,7 +12867,7 @@
12759
12867
  },
12760
12868
  {
12761
12869
  "kind": "Content",
12762
- "text": "(eventName: string, callback: any) => boolean"
12870
+ "text": "(eventName: string, callback: any, evtNamespace?: string | string[]) => boolean"
12763
12871
  },
12764
12872
  {
12765
12873
  "kind": "Content",
@@ -14532,7 +14640,7 @@
14532
14640
  {
14533
14641
  "kind": "Reference",
14534
14642
  "text": "LoggingSeverity",
14535
- "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:enum"
14643
+ "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:type"
14536
14644
  },
14537
14645
  {
14538
14646
  "kind": "Content",
@@ -14704,7 +14812,7 @@
14704
14812
  {
14705
14813
  "kind": "Reference",
14706
14814
  "text": "LoggingSeverity",
14707
- "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:enum"
14815
+ "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:type"
14708
14816
  },
14709
14817
  {
14710
14818
  "kind": "Content",
@@ -17038,7 +17146,7 @@
17038
17146
  {
17039
17147
  "kind": "PropertySignature",
17040
17148
  "canonicalReference": "@microsoft/applicationinsights-web!IPlugin#teardown:member",
17041
- "docComment": "/**\n * Tear down the plugin and remove any hooked value, the plugin should remove that it is no longer initialized and therefore can be re-initialized after being torn down.\n */\n",
17149
+ "docComment": "/**\n * Tear down the plugin and remove any hooked value, the plugin should be removed so that it is no longer initialized and therefore could be re-initialized after being torn down. The plugin should ensure that once this has been called any further processTelemetry calls are ignored and it just calls the processNext() with the provided context.\n *\n * @param unloadCtx - This is the context that should be used during unloading.\n *\n * @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.\n *\n * @returns boolean - true if the plugin has or will call processNext(), this for backward compatibility as previously teardown was synchronous and returned nothing.\n */\n",
17042
17150
  "excerptTokens": [
17043
17151
  {
17044
17152
  "kind": "Content",
@@ -17046,7 +17154,25 @@
17046
17154
  },
17047
17155
  {
17048
17156
  "kind": "Content",
17049
- "text": "() => void"
17157
+ "text": "(unloadCtx: "
17158
+ },
17159
+ {
17160
+ "kind": "Reference",
17161
+ "text": "IProcessTelemetryUnloadContext",
17162
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUnloadContext:interface"
17163
+ },
17164
+ {
17165
+ "kind": "Content",
17166
+ "text": ", unloadState?: "
17167
+ },
17168
+ {
17169
+ "kind": "Reference",
17170
+ "text": "ITelemetryUnloadState",
17171
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUnloadState:interface"
17172
+ },
17173
+ {
17174
+ "kind": "Content",
17175
+ "text": ") => void | boolean"
17050
17176
  },
17051
17177
  {
17052
17178
  "kind": "Content",
@@ -17058,7 +17184,7 @@
17058
17184
  "name": "teardown",
17059
17185
  "propertyTypeTokenRange": {
17060
17186
  "startIndex": 1,
17061
- "endIndex": 2
17187
+ "endIndex": 6
17062
17188
  }
17063
17189
  },
17064
17190
  {
@@ -17097,47 +17223,25 @@
17097
17223
  "excerptTokens": [
17098
17224
  {
17099
17225
  "kind": "Content",
17100
- "text": "export interface IProcessTelemetryContext "
17226
+ "text": "export interface IProcessTelemetryContext extends "
17227
+ },
17228
+ {
17229
+ "kind": "Reference",
17230
+ "text": "IBaseProcessingContext",
17231
+ "canonicalReference": "@microsoft/applicationinsights-web!IBaseProcessingContext:interface"
17232
+ },
17233
+ {
17234
+ "kind": "Content",
17235
+ "text": " "
17101
17236
  }
17102
17237
  ],
17103
17238
  "releaseTag": "Public",
17104
17239
  "name": "IProcessTelemetryContext",
17105
17240
  "members": [
17106
- {
17107
- "kind": "PropertySignature",
17108
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#core:member",
17109
- "docComment": "/**\n * The current core instance for the request\n */\n",
17110
- "excerptTokens": [
17111
- {
17112
- "kind": "Content",
17113
- "text": "core: "
17114
- },
17115
- {
17116
- "kind": "Content",
17117
- "text": "() => "
17118
- },
17119
- {
17120
- "kind": "Reference",
17121
- "text": "IAppInsightsCore",
17122
- "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore:interface"
17123
- },
17124
- {
17125
- "kind": "Content",
17126
- "text": ";"
17127
- }
17128
- ],
17129
- "isOptional": false,
17130
- "releaseTag": "Public",
17131
- "name": "core",
17132
- "propertyTypeTokenRange": {
17133
- "startIndex": 1,
17134
- "endIndex": 3
17135
- }
17136
- },
17137
17241
  {
17138
17242
  "kind": "PropertySignature",
17139
17243
  "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#createNew:member",
17140
- "docComment": "/**\n * Create a new context using the core and config from the current instance\n *\n * @param plugins - The execution order to process the plugins, if null or not supplied then the current execution order will be copied.\n *\n * @param startAt - The plugin to start processing from, if missing from the execution order then the next plugin will be NOT set.\n */\n",
17244
+ "docComment": "/**\n * Create a new context using the core and config from the current instance, returns a new instance of the same type\n *\n * @param plugins - The execution order to process the plugins, if null or not supplied then the current execution order will be copied.\n *\n * @param startAt - The plugin to start processing from, if missing from the execution order then the next plugin will be NOT set.\n */\n",
17141
17245
  "excerptTokens": [
17142
17246
  {
17143
17247
  "kind": "Content",
@@ -17192,292 +17296,10 @@
17192
17296
  "endIndex": 9
17193
17297
  }
17194
17298
  },
17195
- {
17196
- "kind": "PropertySignature",
17197
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#diagLog:member",
17198
- "docComment": "/**\n * THe current diagnostic logger for the request\n */\n",
17199
- "excerptTokens": [
17200
- {
17201
- "kind": "Content",
17202
- "text": "diagLog: "
17203
- },
17204
- {
17205
- "kind": "Content",
17206
- "text": "() => "
17207
- },
17208
- {
17209
- "kind": "Reference",
17210
- "text": "IDiagnosticLogger",
17211
- "canonicalReference": "@microsoft/applicationinsights-web!IDiagnosticLogger:interface"
17212
- },
17213
- {
17214
- "kind": "Content",
17215
- "text": ";"
17216
- }
17217
- ],
17218
- "isOptional": false,
17219
- "releaseTag": "Public",
17220
- "name": "diagLog",
17221
- "propertyTypeTokenRange": {
17222
- "startIndex": 1,
17223
- "endIndex": 3
17224
- }
17225
- },
17226
- {
17227
- "kind": "PropertySignature",
17228
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#getCfg:member",
17229
- "docComment": "/**\n * Gets the current core config instance\n */\n",
17230
- "excerptTokens": [
17231
- {
17232
- "kind": "Content",
17233
- "text": "getCfg: "
17234
- },
17235
- {
17236
- "kind": "Content",
17237
- "text": "() => "
17238
- },
17239
- {
17240
- "kind": "Reference",
17241
- "text": "IConfiguration",
17242
- "canonicalReference": "@microsoft/applicationinsights-web!IConfiguration:interface"
17243
- },
17244
- {
17245
- "kind": "Content",
17246
- "text": ";"
17247
- }
17248
- ],
17249
- "isOptional": false,
17250
- "releaseTag": "Public",
17251
- "name": "getCfg",
17252
- "propertyTypeTokenRange": {
17253
- "startIndex": 1,
17254
- "endIndex": 3
17255
- }
17256
- },
17257
- {
17258
- "kind": "PropertySignature",
17259
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#getConfig:member",
17260
- "docComment": "/**\n * Gets the named config from either the named identifier extension or core config if neither exist then the default value is returned\n *\n * @param identifier - The named extension identifier\n *\n * @param field - The config field name\n *\n * @param defaultValue - The default value to return if no defined config exists\n */\n",
17261
- "excerptTokens": [
17262
- {
17263
- "kind": "Content",
17264
- "text": "getConfig: "
17265
- },
17266
- {
17267
- "kind": "Content",
17268
- "text": "(identifier: string, field: string, defaultValue?: number | string | boolean | string[] | "
17269
- },
17270
- {
17271
- "kind": "Reference",
17272
- "text": "RegExp",
17273
- "canonicalReference": "!RegExp:interface"
17274
- },
17275
- {
17276
- "kind": "Content",
17277
- "text": "[] | "
17278
- },
17279
- {
17280
- "kind": "Reference",
17281
- "text": "Function",
17282
- "canonicalReference": "!Function:interface"
17283
- },
17284
- {
17285
- "kind": "Content",
17286
- "text": ") => number | string | boolean | string[] | "
17287
- },
17288
- {
17289
- "kind": "Reference",
17290
- "text": "RegExp",
17291
- "canonicalReference": "!RegExp:interface"
17292
- },
17293
- {
17294
- "kind": "Content",
17295
- "text": "[] | "
17296
- },
17297
- {
17298
- "kind": "Reference",
17299
- "text": "Function",
17300
- "canonicalReference": "!Function:interface"
17301
- },
17302
- {
17303
- "kind": "Content",
17304
- "text": ";"
17305
- }
17306
- ],
17307
- "isOptional": false,
17308
- "releaseTag": "Public",
17309
- "name": "getConfig",
17310
- "propertyTypeTokenRange": {
17311
- "startIndex": 1,
17312
- "endIndex": 9
17313
- }
17314
- },
17315
- {
17316
- "kind": "PropertySignature",
17317
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#getExtCfg:member",
17318
- "docComment": "/**\n * Gets the named extension config\n */\n",
17319
- "excerptTokens": [
17320
- {
17321
- "kind": "Content",
17322
- "text": "getExtCfg: "
17323
- },
17324
- {
17325
- "kind": "Content",
17326
- "text": "<T>(identifier: string, defaultValue?: T | any, mergeDefault?: "
17327
- },
17328
- {
17329
- "kind": "Reference",
17330
- "text": "GetExtCfgMergeType",
17331
- "canonicalReference": "@microsoft/applicationinsights-web!GetExtCfgMergeType:enum"
17332
- },
17333
- {
17334
- "kind": "Content",
17335
- "text": ") => T"
17336
- },
17337
- {
17338
- "kind": "Content",
17339
- "text": ";"
17340
- }
17341
- ],
17342
- "isOptional": false,
17343
- "releaseTag": "Public",
17344
- "name": "getExtCfg",
17345
- "propertyTypeTokenRange": {
17346
- "startIndex": 1,
17347
- "endIndex": 4
17348
- }
17349
- },
17350
- {
17351
- "kind": "PropertySignature",
17352
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#getNext:member",
17353
- "docComment": "/**\n * Returns the next configured plugin proxy\n */\n",
17354
- "excerptTokens": [
17355
- {
17356
- "kind": "Content",
17357
- "text": "getNext: "
17358
- },
17359
- {
17360
- "kind": "Content",
17361
- "text": "() => "
17362
- },
17363
- {
17364
- "kind": "Reference",
17365
- "text": "ITelemetryPluginChain",
17366
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPluginChain:interface"
17367
- },
17368
- {
17369
- "kind": "Content",
17370
- "text": ";"
17371
- }
17372
- ],
17373
- "isOptional": false,
17374
- "releaseTag": "Public",
17375
- "name": "getNext",
17376
- "propertyTypeTokenRange": {
17377
- "startIndex": 1,
17378
- "endIndex": 3
17379
- }
17380
- },
17381
- {
17382
- "kind": "PropertySignature",
17383
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#hasNext:member",
17384
- "docComment": "/**\n * Helper to allow plugins to check and possibly shortcut executing code only required if there is a nextPlugin\n */\n",
17385
- "excerptTokens": [
17386
- {
17387
- "kind": "Content",
17388
- "text": "hasNext: "
17389
- },
17390
- {
17391
- "kind": "Content",
17392
- "text": "() => boolean"
17393
- },
17394
- {
17395
- "kind": "Content",
17396
- "text": ";"
17397
- }
17398
- ],
17399
- "isOptional": false,
17400
- "releaseTag": "Public",
17401
- "name": "hasNext",
17402
- "propertyTypeTokenRange": {
17403
- "startIndex": 1,
17404
- "endIndex": 2
17405
- }
17406
- },
17407
- {
17408
- "kind": "PropertySignature",
17409
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#iterate:member",
17410
- "docComment": "/**\n * Synchronously iterate over the context chain running the callback for each plugin, once every plugin has been executed via the callback, any associated onComplete will be called.\n *\n * @param callback - The function call for each plugin in the context chain\n */\n",
17411
- "excerptTokens": [
17412
- {
17413
- "kind": "Content",
17414
- "text": "iterate: "
17415
- },
17416
- {
17417
- "kind": "Content",
17418
- "text": "<T extends "
17419
- },
17420
- {
17421
- "kind": "Reference",
17422
- "text": "ITelemetryPlugin",
17423
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPlugin:interface"
17424
- },
17425
- {
17426
- "kind": "Content",
17427
- "text": " = "
17428
- },
17429
- {
17430
- "kind": "Reference",
17431
- "text": "ITelemetryPlugin",
17432
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPlugin:interface"
17433
- },
17434
- {
17435
- "kind": "Content",
17436
- "text": ">(callback: (plugin: T) => void) => void"
17437
- },
17438
- {
17439
- "kind": "Content",
17440
- "text": ";"
17441
- }
17442
- ],
17443
- "isOptional": false,
17444
- "releaseTag": "Public",
17445
- "name": "iterate",
17446
- "propertyTypeTokenRange": {
17447
- "startIndex": 1,
17448
- "endIndex": 6
17449
- }
17450
- },
17451
- {
17452
- "kind": "PropertySignature",
17453
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#onComplete:member",
17454
- "docComment": "/**\n * Set the function to call when the current chain has executed all processNext or unloadNext items.\n */\n",
17455
- "excerptTokens": [
17456
- {
17457
- "kind": "Content",
17458
- "text": "onComplete: "
17459
- },
17460
- {
17461
- "kind": "Content",
17462
- "text": "(onComplete: () => void) => void"
17463
- },
17464
- {
17465
- "kind": "Content",
17466
- "text": ";"
17467
- }
17468
- ],
17469
- "isOptional": false,
17470
- "releaseTag": "Public",
17471
- "name": "onComplete",
17472
- "propertyTypeTokenRange": {
17473
- "startIndex": 1,
17474
- "endIndex": 2
17475
- }
17476
- },
17477
17299
  {
17478
17300
  "kind": "PropertySignature",
17479
17301
  "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#processNext:member",
17480
- "docComment": "/**\n * Call back for telemetry processing before it it is sent\n *\n * @param env - This is the current event being reported\n */\n",
17302
+ "docComment": "/**\n * Call back for telemetry processing before it it is sent\n *\n * @param env - This is the current event being reported\n *\n * @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)\n */\n",
17481
17303
  "excerptTokens": [
17482
17304
  {
17483
17305
  "kind": "Content",
@@ -17494,7 +17316,7 @@
17494
17316
  },
17495
17317
  {
17496
17318
  "kind": "Content",
17497
- "text": ") => void"
17319
+ "text": ") => boolean | void"
17498
17320
  },
17499
17321
  {
17500
17322
  "kind": "Content",
@@ -17508,44 +17330,14 @@
17508
17330
  "startIndex": 1,
17509
17331
  "endIndex": 4
17510
17332
  }
17511
- },
17512
- {
17513
- "kind": "PropertySignature",
17514
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#setNext:member",
17515
- "docComment": "/**\n * Helper to set the next plugin proxy\n */\n",
17516
- "excerptTokens": [
17517
- {
17518
- "kind": "Content",
17519
- "text": "setNext: "
17520
- },
17521
- {
17522
- "kind": "Content",
17523
- "text": "(nextCtx: "
17524
- },
17525
- {
17526
- "kind": "Reference",
17527
- "text": "ITelemetryPluginChain",
17528
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPluginChain:interface"
17529
- },
17530
- {
17531
- "kind": "Content",
17532
- "text": ") => void"
17533
- },
17534
- {
17535
- "kind": "Content",
17536
- "text": ";"
17537
- }
17538
- ],
17539
- "isOptional": false,
17540
- "releaseTag": "Public",
17541
- "name": "setNext",
17542
- "propertyTypeTokenRange": {
17543
- "startIndex": 1,
17544
- "endIndex": 4
17545
- }
17546
17333
  }
17547
17334
  ],
17548
- "extendsTokenRanges": []
17335
+ "extendsTokenRanges": [
17336
+ {
17337
+ "startIndex": 1,
17338
+ "endIndex": 3
17339
+ }
17340
+ ]
17549
17341
  },
17550
17342
  {
17551
17343
  "kind": "Interface",
@@ -18071,6 +17863,15 @@
18071
17863
  "kind": "Content",
18072
17864
  "text": "export interface ITelemetryPlugin extends "
18073
17865
  },
17866
+ {
17867
+ "kind": "Reference",
17868
+ "text": "ITelemetryProcessor",
17869
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryProcessor:interface"
17870
+ },
17871
+ {
17872
+ "kind": "Content",
17873
+ "text": ", "
17874
+ },
18074
17875
  {
18075
17876
  "kind": "Reference",
18076
17877
  "text": "IPlugin",
@@ -18110,50 +17911,6 @@
18110
17911
  "endIndex": 2
18111
17912
  }
18112
17913
  },
18113
- {
18114
- "kind": "PropertySignature",
18115
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPlugin#processTelemetry:member",
18116
- "docComment": "/**\n * Call back for telemetry processing before it it is sent\n *\n * @param env - This is the current event being reported\n *\n * @param itemCtx - This is the context for the current request, ITelemetryPlugin instances can optionally use this to access the current core instance or define / pass additional information to later plugins (vs appending items to the telemetry item)\n */\n",
18117
- "excerptTokens": [
18118
- {
18119
- "kind": "Content",
18120
- "text": "processTelemetry: "
18121
- },
18122
- {
18123
- "kind": "Content",
18124
- "text": "(env: "
18125
- },
18126
- {
18127
- "kind": "Reference",
18128
- "text": "ITelemetryItem",
18129
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryItem:interface"
18130
- },
18131
- {
18132
- "kind": "Content",
18133
- "text": ", itemCtx?: "
18134
- },
18135
- {
18136
- "kind": "Reference",
18137
- "text": "IProcessTelemetryContext",
18138
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext:interface"
18139
- },
18140
- {
18141
- "kind": "Content",
18142
- "text": ") => void"
18143
- },
18144
- {
18145
- "kind": "Content",
18146
- "text": ";"
18147
- }
18148
- ],
18149
- "isOptional": false,
18150
- "releaseTag": "Public",
18151
- "name": "processTelemetry",
18152
- "propertyTypeTokenRange": {
18153
- "startIndex": 1,
18154
- "endIndex": 6
18155
- }
18156
- },
18157
17914
  {
18158
17915
  "kind": "PropertySignature",
18159
17916
  "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPlugin#setNextPlugin:member",
@@ -18202,7 +17959,11 @@
18202
17959
  "extendsTokenRanges": [
18203
17960
  {
18204
17961
  "startIndex": 1,
18205
- "endIndex": 3
17962
+ "endIndex": 2
17963
+ },
17964
+ {
17965
+ "startIndex": 3,
17966
+ "endIndex": 5
18206
17967
  }
18207
17968
  ]
18208
17969
  },
@@ -18213,7 +17974,16 @@
18213
17974
  "excerptTokens": [
18214
17975
  {
18215
17976
  "kind": "Content",
18216
- "text": "export interface ITelemetryPluginChain "
17977
+ "text": "export interface ITelemetryPluginChain extends "
17978
+ },
17979
+ {
17980
+ "kind": "Reference",
17981
+ "text": "ITelemetryProcessor",
17982
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryProcessor:interface"
17983
+ },
17984
+ {
17985
+ "kind": "Content",
17986
+ "text": " "
18217
17987
  }
18218
17988
  ],
18219
17989
  "releaseTag": "Public",
@@ -18283,30 +18053,30 @@
18283
18053
  },
18284
18054
  {
18285
18055
  "kind": "PropertySignature",
18286
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPluginChain#processTelemetry:member",
18287
- "docComment": "/**\n * Call back for telemetry processing before it it is sent\n *\n * @param env - This is the current event being reported\n *\n * @param itemCtx - This is the context for the current request, ITelemetryPlugin instances can optionally use this to access the current core instance or define / pass additional information to later plugins (vs appending items to the telemetry item)\n */\n",
18056
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPluginChain#unload:member",
18057
+ "docComment": "/**\n * This plugin is being unloaded and should remove any hooked events and cleanup any global/scoped values, after this call the plugin will be removed from the telemetry processing chain and will no longer receive any events..\n *\n * @param unloadCtx - The unload context to use for this call.\n *\n * @param unloadState - The details of the unload operation\n */\n",
18288
18058
  "excerptTokens": [
18289
18059
  {
18290
18060
  "kind": "Content",
18291
- "text": "processTelemetry: "
18061
+ "text": "unload?: "
18292
18062
  },
18293
18063
  {
18294
18064
  "kind": "Content",
18295
- "text": "(env: "
18065
+ "text": "(unloadCtx: "
18296
18066
  },
18297
18067
  {
18298
18068
  "kind": "Reference",
18299
- "text": "ITelemetryItem",
18300
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryItem:interface"
18069
+ "text": "IProcessTelemetryUnloadContext",
18070
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUnloadContext:interface"
18301
18071
  },
18302
18072
  {
18303
18073
  "kind": "Content",
18304
- "text": ", itemCtx: "
18074
+ "text": ", unloadState: "
18305
18075
  },
18306
18076
  {
18307
18077
  "kind": "Reference",
18308
- "text": "IProcessTelemetryContext",
18309
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext:interface"
18078
+ "text": "ITelemetryUnloadState",
18079
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUnloadState:interface"
18310
18080
  },
18311
18081
  {
18312
18082
  "kind": "Content",
@@ -18317,16 +18087,21 @@
18317
18087
  "text": ";"
18318
18088
  }
18319
18089
  ],
18320
- "isOptional": false,
18090
+ "isOptional": true,
18321
18091
  "releaseTag": "Public",
18322
- "name": "processTelemetry",
18092
+ "name": "unload",
18323
18093
  "propertyTypeTokenRange": {
18324
18094
  "startIndex": 1,
18325
18095
  "endIndex": 6
18326
18096
  }
18327
18097
  }
18328
18098
  ],
18329
- "extendsTokenRanges": []
18099
+ "extendsTokenRanges": [
18100
+ {
18101
+ "startIndex": 1,
18102
+ "endIndex": 3
18103
+ }
18104
+ ]
18330
18105
  },
18331
18106
  {
18332
18107
  "kind": "Interface",
@@ -19735,61 +19510,55 @@
19735
19510
  "extendsTokenRanges": []
19736
19511
  },
19737
19512
  {
19738
- "kind": "Enum",
19739
- "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:enum",
19513
+ "kind": "TypeAlias",
19514
+ "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:type",
19740
19515
  "docComment": "",
19741
19516
  "excerptTokens": [
19742
19517
  {
19743
19518
  "kind": "Content",
19744
- "text": "export declare enum LoggingSeverity "
19519
+ "text": "export declare type LoggingSeverity = "
19520
+ },
19521
+ {
19522
+ "kind": "Content",
19523
+ "text": "number | "
19524
+ },
19525
+ {
19526
+ "kind": "Reference",
19527
+ "text": "eLoggingSeverity",
19528
+ "canonicalReference": "@microsoft/applicationinsights-web!eLoggingSeverity:enum"
19529
+ },
19530
+ {
19531
+ "kind": "Content",
19532
+ "text": ";"
19745
19533
  }
19746
19534
  ],
19747
19535
  "releaseTag": "Public",
19748
19536
  "name": "LoggingSeverity",
19749
- "members": [
19537
+ "typeTokenRange": {
19538
+ "startIndex": 1,
19539
+ "endIndex": 3
19540
+ }
19541
+ },
19542
+ {
19543
+ "kind": "Variable",
19544
+ "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:var",
19545
+ "docComment": "",
19546
+ "excerptTokens": [
19750
19547
  {
19751
- "kind": "EnumMember",
19752
- "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity.CRITICAL:member",
19753
- "docComment": "/**\n * Error will be sent as internal telemetry\n */\n",
19754
- "excerptTokens": [
19755
- {
19756
- "kind": "Content",
19757
- "text": "CRITICAL = "
19758
- },
19759
- {
19760
- "kind": "Content",
19761
- "text": "1"
19762
- }
19763
- ],
19764
- "releaseTag": "Public",
19765
- "name": "CRITICAL",
19766
- "initializerTokenRange": {
19767
- "startIndex": 1,
19768
- "endIndex": 2
19769
- }
19548
+ "kind": "Content",
19549
+ "text": "LoggingSeverity: "
19770
19550
  },
19771
19551
  {
19772
- "kind": "EnumMember",
19773
- "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity.WARNING:member",
19774
- "docComment": "/**\n * Error will NOT be sent as internal telemetry, and will only be shown in browser console\n */\n",
19775
- "excerptTokens": [
19776
- {
19777
- "kind": "Content",
19778
- "text": "WARNING = "
19779
- },
19780
- {
19781
- "kind": "Content",
19782
- "text": "2"
19783
- }
19784
- ],
19785
- "releaseTag": "Public",
19786
- "name": "WARNING",
19787
- "initializerTokenRange": {
19788
- "startIndex": 1,
19789
- "endIndex": 2
19790
- }
19552
+ "kind": "Content",
19553
+ "text": "{\n CRITICAL: number;\n WARNING: number;\n}"
19791
19554
  }
19792
- ]
19555
+ ],
19556
+ "releaseTag": "Public",
19557
+ "name": "LoggingSeverity",
19558
+ "variableTypeTokenRange": {
19559
+ "startIndex": 1,
19560
+ "endIndex": 2
19561
+ }
19793
19562
  },
19794
19563
  {
19795
19564
  "kind": "Class",
@@ -24435,23 +24204,14 @@
24435
24204
  },
24436
24205
  {
24437
24206
  "kind": "Content",
24438
- "text": ";\n Extensions: {\n UserExt: string;\n DeviceExt: string;\n TraceExt: string;\n WebExt: string;\n AppExt: string;\n OSExt: string;\n SessionExt: string;\n SDKExt: string;\n };\n DistributedTracingModes: typeof "
24439
- },
24440
- {
24441
- "kind": "Reference",
24442
- "text": "DistributedTracingModes",
24443
- "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes:enum"
24444
- },
24445
- {
24446
- "kind": "Content",
24447
- "text": ";\n}"
24207
+ "text": ";\n Extensions: {\n UserExt: string;\n DeviceExt: string;\n TraceExt: string;\n WebExt: string;\n AppExt: string;\n OSExt: string;\n SessionExt: string;\n SDKExt: string;\n };\n DistributedTracingModes: {\n AI: number;\n AI_AND_W3C: number;\n W3C: number;\n };\n}"
24448
24208
  }
24449
24209
  ],
24450
24210
  "releaseTag": "Public",
24451
24211
  "name": "Telemetry",
24452
24212
  "variableTypeTokenRange": {
24453
24213
  "startIndex": 1,
24454
- "endIndex": 60
24214
+ "endIndex": 58
24455
24215
  }
24456
24216
  },
24457
24217
  {