@microsoft/applicationinsights-web 2.8.0-beta.2202-07 → 2.8.0-beta.2203-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.
Files changed (51) hide show
  1. package/README.md +1 -0
  2. package/browser/{ai.2.8.0-beta.2202-07.cjs.js → ai.2.8.0-beta.2203-03.cjs.js} +1069 -522
  3. package/browser/ai.2.8.0-beta.2203-03.cjs.js.map +1 -0
  4. package/browser/ai.2.8.0-beta.2203-03.cjs.min.js +6 -0
  5. package/browser/ai.2.8.0-beta.2203-03.cjs.min.js.map +1 -0
  6. package/browser/{ai.2.8.0-beta.2202-07.gbl.js → ai.2.8.0-beta.2203-03.gbl.js} +1069 -522
  7. package/browser/ai.2.8.0-beta.2203-03.gbl.js.map +1 -0
  8. package/browser/ai.2.8.0-beta.2203-03.gbl.min.js +6 -0
  9. package/browser/ai.2.8.0-beta.2203-03.gbl.min.js.map +1 -0
  10. package/browser/ai.2.8.0-beta.2203-03.integrity.json +66 -0
  11. package/browser/{ai.2.8.0-beta.2202-07.js → ai.2.8.0-beta.2203-03.js} +1069 -522
  12. package/browser/ai.2.8.0-beta.2203-03.js.map +1 -0
  13. package/browser/ai.2.8.0-beta.2203-03.min.js +6 -0
  14. package/browser/ai.2.8.0-beta.2203-03.min.js.map +1 -0
  15. package/browser/ai.2.cjs.js +1068 -521
  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 +1068 -521
  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 +1068 -521
  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 +925 -660
  28. package/dist/applicationinsights-web.api.md +53 -32
  29. package/dist/applicationinsights-web.d.ts +358 -93
  30. package/dist/applicationinsights-web.js +1134 -585
  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 +358 -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-07.cjs.js.map +0 -1
  43. package/browser/ai.2.8.0-beta.2202-07.cjs.min.js +0 -6
  44. package/browser/ai.2.8.0-beta.2202-07.cjs.min.js.map +0 -1
  45. package/browser/ai.2.8.0-beta.2202-07.gbl.js.map +0 -1
  46. package/browser/ai.2.8.0-beta.2202-07.gbl.min.js +0 -6
  47. package/browser/ai.2.8.0-beta.2202-07.gbl.min.js.map +0 -1
  48. package/browser/ai.2.8.0-beta.2202-07.integrity.json +0 -66
  49. package/browser/ai.2.8.0-beta.2202-07.js.map +0 -1
  50. package/browser/ai.2.8.0-beta.2202-07.min.js +0 -6
  51. package/browser/ai.2.8.0-beta.2202-07.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",
@@ -3656,6 +3656,131 @@
3656
3656
  ],
3657
3657
  "name": "addNotificationListener"
3658
3658
  },
3659
+ {
3660
+ "kind": "Method",
3661
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#addPlugin:member(1)",
3662
+ "docComment": "",
3663
+ "excerptTokens": [
3664
+ {
3665
+ "kind": "Content",
3666
+ "text": "addPlugin<T extends "
3667
+ },
3668
+ {
3669
+ "kind": "Reference",
3670
+ "text": "IPlugin",
3671
+ "canonicalReference": "@microsoft/applicationinsights-web!IPlugin:interface"
3672
+ },
3673
+ {
3674
+ "kind": "Content",
3675
+ "text": " "
3676
+ },
3677
+ {
3678
+ "kind": "Content",
3679
+ "text": "= "
3680
+ },
3681
+ {
3682
+ "kind": "Reference",
3683
+ "text": "ITelemetryPlugin",
3684
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPlugin:interface"
3685
+ },
3686
+ {
3687
+ "kind": "Content",
3688
+ "text": ">(plugin: "
3689
+ },
3690
+ {
3691
+ "kind": "Content",
3692
+ "text": "T"
3693
+ },
3694
+ {
3695
+ "kind": "Content",
3696
+ "text": ", replaceExisting: "
3697
+ },
3698
+ {
3699
+ "kind": "Content",
3700
+ "text": "boolean"
3701
+ },
3702
+ {
3703
+ "kind": "Content",
3704
+ "text": ", doAsync: "
3705
+ },
3706
+ {
3707
+ "kind": "Content",
3708
+ "text": "boolean"
3709
+ },
3710
+ {
3711
+ "kind": "Content",
3712
+ "text": ", addCb?: "
3713
+ },
3714
+ {
3715
+ "kind": "Content",
3716
+ "text": "(added?: boolean) => void"
3717
+ },
3718
+ {
3719
+ "kind": "Content",
3720
+ "text": "): "
3721
+ },
3722
+ {
3723
+ "kind": "Content",
3724
+ "text": "void"
3725
+ },
3726
+ {
3727
+ "kind": "Content",
3728
+ "text": ";"
3729
+ }
3730
+ ],
3731
+ "isOptional": false,
3732
+ "isStatic": false,
3733
+ "returnTypeTokenRange": {
3734
+ "startIndex": 14,
3735
+ "endIndex": 15
3736
+ },
3737
+ "releaseTag": "Public",
3738
+ "overloadIndex": 1,
3739
+ "parameters": [
3740
+ {
3741
+ "parameterName": "plugin",
3742
+ "parameterTypeTokenRange": {
3743
+ "startIndex": 6,
3744
+ "endIndex": 7
3745
+ }
3746
+ },
3747
+ {
3748
+ "parameterName": "replaceExisting",
3749
+ "parameterTypeTokenRange": {
3750
+ "startIndex": 8,
3751
+ "endIndex": 9
3752
+ }
3753
+ },
3754
+ {
3755
+ "parameterName": "doAsync",
3756
+ "parameterTypeTokenRange": {
3757
+ "startIndex": 10,
3758
+ "endIndex": 11
3759
+ }
3760
+ },
3761
+ {
3762
+ "parameterName": "addCb",
3763
+ "parameterTypeTokenRange": {
3764
+ "startIndex": 12,
3765
+ "endIndex": 13
3766
+ }
3767
+ }
3768
+ ],
3769
+ "typeParameters": [
3770
+ {
3771
+ "typeParameterName": "T",
3772
+ "constraintTokenRange": {
3773
+ "startIndex": 1,
3774
+ "endIndex": 3
3775
+ },
3776
+ "defaultTypeTokenRange": {
3777
+ "startIndex": 4,
3778
+ "endIndex": 5
3779
+ }
3780
+ }
3781
+ ],
3782
+ "name": "addPlugin"
3783
+ },
3659
3784
  {
3660
3785
  "kind": "Method",
3661
3786
  "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#addTelemetryInitializer:member(1)",
@@ -3707,6 +3832,52 @@
3707
3832
  ],
3708
3833
  "name": "addTelemetryInitializer"
3709
3834
  },
3835
+ {
3836
+ "kind": "Method",
3837
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#addUnloadCb:member(1)",
3838
+ "docComment": "/**\n * Add an unload handler that will be called when the SDK is being unloaded\n *\n * @param handler - the handler\n */\n",
3839
+ "excerptTokens": [
3840
+ {
3841
+ "kind": "Content",
3842
+ "text": "addUnloadCb(handler: "
3843
+ },
3844
+ {
3845
+ "kind": "Reference",
3846
+ "text": "UnloadHandler",
3847
+ "canonicalReference": "@microsoft/applicationinsights-web!UnloadHandler:type"
3848
+ },
3849
+ {
3850
+ "kind": "Content",
3851
+ "text": "): "
3852
+ },
3853
+ {
3854
+ "kind": "Content",
3855
+ "text": "void"
3856
+ },
3857
+ {
3858
+ "kind": "Content",
3859
+ "text": ";"
3860
+ }
3861
+ ],
3862
+ "isOptional": false,
3863
+ "isStatic": false,
3864
+ "returnTypeTokenRange": {
3865
+ "startIndex": 3,
3866
+ "endIndex": 4
3867
+ },
3868
+ "releaseTag": "Public",
3869
+ "overloadIndex": 1,
3870
+ "parameters": [
3871
+ {
3872
+ "parameterName": "handler",
3873
+ "parameterTypeTokenRange": {
3874
+ "startIndex": 1,
3875
+ "endIndex": 2
3876
+ }
3877
+ }
3878
+ ],
3879
+ "name": "addUnloadCb"
3880
+ },
3710
3881
  {
3711
3882
  "kind": "Property",
3712
3883
  "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#config:member",
@@ -3792,6 +3963,35 @@
3792
3963
  "parameters": [],
3793
3964
  "name": "eventCnt"
3794
3965
  },
3966
+ {
3967
+ "kind": "Method",
3968
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#evtNamespace:member(1)",
3969
+ "docComment": "/**\n * Returns the unique event namespace that should be used\n */\n",
3970
+ "excerptTokens": [
3971
+ {
3972
+ "kind": "Content",
3973
+ "text": "evtNamespace(): "
3974
+ },
3975
+ {
3976
+ "kind": "Content",
3977
+ "text": "string"
3978
+ },
3979
+ {
3980
+ "kind": "Content",
3981
+ "text": ";"
3982
+ }
3983
+ ],
3984
+ "isOptional": false,
3985
+ "isStatic": false,
3986
+ "returnTypeTokenRange": {
3987
+ "startIndex": 1,
3988
+ "endIndex": 2
3989
+ },
3990
+ "releaseTag": "Public",
3991
+ "overloadIndex": 1,
3992
+ "parameters": [],
3993
+ "name": "evtNamespace"
3994
+ },
3795
3995
  {
3796
3996
  "kind": "Method",
3797
3997
  "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#getCookieMgr:member(1)",
@@ -4470,6 +4670,66 @@
4470
4670
  }
4471
4671
  ],
4472
4672
  "name": "track"
4673
+ },
4674
+ {
4675
+ "kind": "Method",
4676
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#unload:member(1)",
4677
+ "docComment": "/**\n * Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous unload call return `true` stating that all plugins reported that they also unloaded, the recommended approach is to create a new instance and initialize that instance. This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable to successfully remove any global references or they may just be completing the unload process asynchronously.\n */\n",
4678
+ "excerptTokens": [
4679
+ {
4680
+ "kind": "Content",
4681
+ "text": "unload(isAsync?: "
4682
+ },
4683
+ {
4684
+ "kind": "Content",
4685
+ "text": "boolean"
4686
+ },
4687
+ {
4688
+ "kind": "Content",
4689
+ "text": ", unloadComplete?: "
4690
+ },
4691
+ {
4692
+ "kind": "Content",
4693
+ "text": "() => void"
4694
+ },
4695
+ {
4696
+ "kind": "Content",
4697
+ "text": "): "
4698
+ },
4699
+ {
4700
+ "kind": "Content",
4701
+ "text": "void"
4702
+ },
4703
+ {
4704
+ "kind": "Content",
4705
+ "text": ";"
4706
+ }
4707
+ ],
4708
+ "isOptional": false,
4709
+ "isStatic": false,
4710
+ "returnTypeTokenRange": {
4711
+ "startIndex": 5,
4712
+ "endIndex": 6
4713
+ },
4714
+ "releaseTag": "Public",
4715
+ "overloadIndex": 1,
4716
+ "parameters": [
4717
+ {
4718
+ "parameterName": "isAsync",
4719
+ "parameterTypeTokenRange": {
4720
+ "startIndex": 1,
4721
+ "endIndex": 2
4722
+ }
4723
+ },
4724
+ {
4725
+ "parameterName": "unloadComplete",
4726
+ "parameterTypeTokenRange": {
4727
+ "startIndex": 3,
4728
+ "endIndex": 4
4729
+ }
4730
+ }
4731
+ ],
4732
+ "name": "unload"
4473
4733
  }
4474
4734
  ],
4475
4735
  "implementsTokenRanges": [
@@ -4561,31 +4821,26 @@
4561
4821
  "name": "_addHook"
4562
4822
  },
4563
4823
  {
4564
- "kind": "Property",
4565
- "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#_getTelCtx:member",
4566
- "docComment": "/**\n * Helper to return the current IProcessTelemetryContext, if the passed argument exists this just returns that value (helps with minification for callers), otherwise it will return the configured context or a temporary one.\n *\n * @param currentCtx - [Optional] The current execution context\n */\n",
4824
+ "kind": "Method",
4825
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#_addUnloadCb:member(1)",
4826
+ "docComment": "/**\n * Add an unload handler that will be called when the SDK is being unloaded\n *\n * @param handler - the handler\n */\n",
4567
4827
  "excerptTokens": [
4568
4828
  {
4569
4829
  "kind": "Content",
4570
- "text": "protected _getTelCtx: "
4571
- },
4572
- {
4573
- "kind": "Content",
4574
- "text": "(currentCtx?: "
4830
+ "text": "protected _addUnloadCb(handler: "
4575
4831
  },
4576
4832
  {
4577
4833
  "kind": "Reference",
4578
- "text": "IProcessTelemetryContext",
4579
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext:interface"
4834
+ "text": "UnloadHandler",
4835
+ "canonicalReference": "@microsoft/applicationinsights-web!UnloadHandler:type"
4580
4836
  },
4581
4837
  {
4582
4838
  "kind": "Content",
4583
- "text": ") => "
4839
+ "text": "): "
4584
4840
  },
4585
4841
  {
4586
- "kind": "Reference",
4587
- "text": "IProcessTelemetryContext",
4588
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext:interface"
4842
+ "kind": "Content",
4843
+ "text": "void"
4589
4844
  },
4590
4845
  {
4591
4846
  "kind": "Content",
@@ -4593,14 +4848,110 @@
4593
4848
  }
4594
4849
  ],
4595
4850
  "isOptional": false,
4596
- "releaseTag": "Public",
4597
- "name": "_getTelCtx",
4598
- "propertyTypeTokenRange": {
4599
- "startIndex": 1,
4600
- "endIndex": 5
4851
+ "isStatic": false,
4852
+ "returnTypeTokenRange": {
4853
+ "startIndex": 3,
4854
+ "endIndex": 4
4601
4855
  },
4602
- "isStatic": false
4603
- },
4856
+ "releaseTag": "Public",
4857
+ "overloadIndex": 1,
4858
+ "parameters": [
4859
+ {
4860
+ "parameterName": "handler",
4861
+ "parameterTypeTokenRange": {
4862
+ "startIndex": 1,
4863
+ "endIndex": 2
4864
+ }
4865
+ }
4866
+ ],
4867
+ "name": "_addUnloadCb"
4868
+ },
4869
+ {
4870
+ "kind": "Property",
4871
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#_doTeardown:member",
4872
+ "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",
4873
+ "excerptTokens": [
4874
+ {
4875
+ "kind": "Content",
4876
+ "text": "protected _doTeardown?: "
4877
+ },
4878
+ {
4879
+ "kind": "Content",
4880
+ "text": "(unloadCtx?: "
4881
+ },
4882
+ {
4883
+ "kind": "Reference",
4884
+ "text": "IProcessTelemetryUnloadContext",
4885
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUnloadContext:interface"
4886
+ },
4887
+ {
4888
+ "kind": "Content",
4889
+ "text": ", unloadState?: "
4890
+ },
4891
+ {
4892
+ "kind": "Reference",
4893
+ "text": "ITelemetryUnloadState",
4894
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUnloadState:interface"
4895
+ },
4896
+ {
4897
+ "kind": "Content",
4898
+ "text": ", asyncCallback?: () => void) => void | boolean"
4899
+ },
4900
+ {
4901
+ "kind": "Content",
4902
+ "text": ";"
4903
+ }
4904
+ ],
4905
+ "isOptional": true,
4906
+ "releaseTag": "Public",
4907
+ "name": "_doTeardown",
4908
+ "propertyTypeTokenRange": {
4909
+ "startIndex": 1,
4910
+ "endIndex": 6
4911
+ },
4912
+ "isStatic": false
4913
+ },
4914
+ {
4915
+ "kind": "Property",
4916
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#_getTelCtx:member",
4917
+ "docComment": "/**\n * Helper to return the current IProcessTelemetryContext, if the passed argument exists this just returns that value (helps with minification for callers), otherwise it will return the configured context or a temporary one.\n *\n * @param currentCtx - [Optional] The current execution context\n */\n",
4918
+ "excerptTokens": [
4919
+ {
4920
+ "kind": "Content",
4921
+ "text": "protected _getTelCtx: "
4922
+ },
4923
+ {
4924
+ "kind": "Content",
4925
+ "text": "(currentCtx?: "
4926
+ },
4927
+ {
4928
+ "kind": "Reference",
4929
+ "text": "IProcessTelemetryContext",
4930
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext:interface"
4931
+ },
4932
+ {
4933
+ "kind": "Content",
4934
+ "text": ") => "
4935
+ },
4936
+ {
4937
+ "kind": "Reference",
4938
+ "text": "IProcessTelemetryContext",
4939
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext:interface"
4940
+ },
4941
+ {
4942
+ "kind": "Content",
4943
+ "text": ";"
4944
+ }
4945
+ ],
4946
+ "isOptional": false,
4947
+ "releaseTag": "Public",
4948
+ "name": "_getTelCtx",
4949
+ "propertyTypeTokenRange": {
4950
+ "startIndex": 1,
4951
+ "endIndex": 5
4952
+ },
4953
+ "isStatic": false
4954
+ },
4604
4955
  {
4605
4956
  "kind": "Constructor",
4606
4957
  "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin:constructor(1)",
@@ -5042,6 +5393,68 @@
5042
5393
  },
5043
5394
  "isStatic": false
5044
5395
  },
5396
+ {
5397
+ "kind": "Method",
5398
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#teardown:member(1)",
5399
+ "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",
5400
+ "excerptTokens": [
5401
+ {
5402
+ "kind": "Content",
5403
+ "text": "teardown(unloadCtx?: "
5404
+ },
5405
+ {
5406
+ "kind": "Reference",
5407
+ "text": "IProcessTelemetryUnloadContext",
5408
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUnloadContext:interface"
5409
+ },
5410
+ {
5411
+ "kind": "Content",
5412
+ "text": ", unloadState?: "
5413
+ },
5414
+ {
5415
+ "kind": "Reference",
5416
+ "text": "ITelemetryUnloadState",
5417
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUnloadState:interface"
5418
+ },
5419
+ {
5420
+ "kind": "Content",
5421
+ "text": "): "
5422
+ },
5423
+ {
5424
+ "kind": "Content",
5425
+ "text": "void | boolean"
5426
+ },
5427
+ {
5428
+ "kind": "Content",
5429
+ "text": ";"
5430
+ }
5431
+ ],
5432
+ "isOptional": false,
5433
+ "isStatic": false,
5434
+ "returnTypeTokenRange": {
5435
+ "startIndex": 5,
5436
+ "endIndex": 6
5437
+ },
5438
+ "releaseTag": "Public",
5439
+ "overloadIndex": 1,
5440
+ "parameters": [
5441
+ {
5442
+ "parameterName": "unloadCtx",
5443
+ "parameterTypeTokenRange": {
5444
+ "startIndex": 1,
5445
+ "endIndex": 2
5446
+ }
5447
+ },
5448
+ {
5449
+ "parameterName": "unloadState",
5450
+ "parameterTypeTokenRange": {
5451
+ "startIndex": 3,
5452
+ "endIndex": 4
5453
+ }
5454
+ }
5455
+ ],
5456
+ "name": "teardown"
5457
+ },
5045
5458
  {
5046
5459
  "kind": "Property",
5047
5460
  "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#version:member",
@@ -5565,35 +5978,6 @@
5565
5978
  ],
5566
5979
  "name": "processTelemetry"
5567
5980
  },
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
5981
  {
5598
5982
  "kind": "Method",
5599
5983
  "canonicalReference": "@microsoft/applicationinsights-web!DependenciesPlugin#trackDependencyData:member(1)",
@@ -5748,82 +6132,55 @@
5748
6132
  ]
5749
6133
  },
5750
6134
  {
5751
- "kind": "Enum",
5752
- "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes:enum",
6135
+ "kind": "TypeAlias",
6136
+ "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes:type",
5753
6137
  "docComment": "",
5754
6138
  "excerptTokens": [
5755
6139
  {
5756
6140
  "kind": "Content",
5757
- "text": "export declare enum DistributedTracingModes "
6141
+ "text": "export declare type DistributedTracingModes = "
6142
+ },
6143
+ {
6144
+ "kind": "Content",
6145
+ "text": "number | "
6146
+ },
6147
+ {
6148
+ "kind": "Reference",
6149
+ "text": "eDistributedTracingModes",
6150
+ "canonicalReference": "@microsoft/applicationinsights-web!eDistributedTracingModes:enum"
6151
+ },
6152
+ {
6153
+ "kind": "Content",
6154
+ "text": ";"
5758
6155
  }
5759
6156
  ],
5760
6157
  "releaseTag": "Public",
5761
6158
  "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
- },
6159
+ "typeTokenRange": {
6160
+ "startIndex": 1,
6161
+ "endIndex": 3
6162
+ }
6163
+ },
6164
+ {
6165
+ "kind": "Variable",
6166
+ "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes:var",
6167
+ "docComment": "",
6168
+ "excerptTokens": [
5784
6169
  {
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
- }
6170
+ "kind": "Content",
6171
+ "text": "DistributedTracingModes: "
5804
6172
  },
5805
6173
  {
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
- }
6174
+ "kind": "Content",
6175
+ "text": "{\n AI: number;\n AI_AND_W3C: number;\n W3C: number;\n}"
5825
6176
  }
5826
- ]
6177
+ ],
6178
+ "releaseTag": "Public",
6179
+ "name": "DistributedTracingModes",
6180
+ "variableTypeTokenRange": {
6181
+ "startIndex": 1,
6182
+ "endIndex": 2
6183
+ }
5827
6184
  },
5828
6185
  {
5829
6186
  "kind": "Function",
@@ -7828,26 +8185,150 @@
7828
8185
  },
7829
8186
  {
7830
8187
  "kind": "MethodSignature",
7831
- "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#addTelemetryInitializer:member(1)",
7832
- "docComment": "/**\n * Add a telemetry processor to decorate or drop telemetry events.\n *\n * @param telemetryInitializer - The Telemetry Initializer function\n *\n * @returns - A ITelemetryInitializerHandler to enable the initializer to be removed\n */\n",
8188
+ "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#addPlugin:member(1)",
8189
+ "docComment": "/**\n * Add a new plugin to the installation\n *\n * @param plugin - The new plugin to add\n *\n * @param replaceExisting - should any existing plugin be replaced\n *\n * @param doAsync - Should the add be performed asynchronously\n */\n",
7833
8190
  "excerptTokens": [
7834
8191
  {
7835
8192
  "kind": "Content",
7836
- "text": "addTelemetryInitializer(telemetryInitializer: "
8193
+ "text": "addPlugin<T extends "
7837
8194
  },
7838
8195
  {
7839
8196
  "kind": "Reference",
7840
- "text": "TelemetryInitializerFunction",
7841
- "canonicalReference": "@microsoft/applicationinsights-web!TelemetryInitializerFunction:type"
8197
+ "text": "IPlugin",
8198
+ "canonicalReference": "@microsoft/applicationinsights-web!IPlugin:interface"
7842
8199
  },
7843
8200
  {
7844
8201
  "kind": "Content",
7845
- "text": "): "
8202
+ "text": " "
7846
8203
  },
7847
8204
  {
7848
- "kind": "Reference",
7849
- "text": "ITelemetryInitializerHandler",
7850
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryInitializerHandler:interface"
8205
+ "kind": "Content",
8206
+ "text": "= "
8207
+ },
8208
+ {
8209
+ "kind": "Reference",
8210
+ "text": "ITelemetryPlugin",
8211
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPlugin:interface"
8212
+ },
8213
+ {
8214
+ "kind": "Content",
8215
+ "text": ">(plugin: "
8216
+ },
8217
+ {
8218
+ "kind": "Content",
8219
+ "text": "T"
8220
+ },
8221
+ {
8222
+ "kind": "Content",
8223
+ "text": ", replaceExisting: "
8224
+ },
8225
+ {
8226
+ "kind": "Content",
8227
+ "text": "boolean"
8228
+ },
8229
+ {
8230
+ "kind": "Content",
8231
+ "text": ", doAsync: "
8232
+ },
8233
+ {
8234
+ "kind": "Content",
8235
+ "text": "boolean"
8236
+ },
8237
+ {
8238
+ "kind": "Content",
8239
+ "text": ", addCb?: "
8240
+ },
8241
+ {
8242
+ "kind": "Content",
8243
+ "text": "(added?: boolean) => void"
8244
+ },
8245
+ {
8246
+ "kind": "Content",
8247
+ "text": "): "
8248
+ },
8249
+ {
8250
+ "kind": "Content",
8251
+ "text": "void"
8252
+ },
8253
+ {
8254
+ "kind": "Content",
8255
+ "text": ";"
8256
+ }
8257
+ ],
8258
+ "isOptional": false,
8259
+ "returnTypeTokenRange": {
8260
+ "startIndex": 14,
8261
+ "endIndex": 15
8262
+ },
8263
+ "releaseTag": "Public",
8264
+ "overloadIndex": 1,
8265
+ "parameters": [
8266
+ {
8267
+ "parameterName": "plugin",
8268
+ "parameterTypeTokenRange": {
8269
+ "startIndex": 6,
8270
+ "endIndex": 7
8271
+ }
8272
+ },
8273
+ {
8274
+ "parameterName": "replaceExisting",
8275
+ "parameterTypeTokenRange": {
8276
+ "startIndex": 8,
8277
+ "endIndex": 9
8278
+ }
8279
+ },
8280
+ {
8281
+ "parameterName": "doAsync",
8282
+ "parameterTypeTokenRange": {
8283
+ "startIndex": 10,
8284
+ "endIndex": 11
8285
+ }
8286
+ },
8287
+ {
8288
+ "parameterName": "addCb",
8289
+ "parameterTypeTokenRange": {
8290
+ "startIndex": 12,
8291
+ "endIndex": 13
8292
+ }
8293
+ }
8294
+ ],
8295
+ "typeParameters": [
8296
+ {
8297
+ "typeParameterName": "T",
8298
+ "constraintTokenRange": {
8299
+ "startIndex": 1,
8300
+ "endIndex": 3
8301
+ },
8302
+ "defaultTypeTokenRange": {
8303
+ "startIndex": 4,
8304
+ "endIndex": 5
8305
+ }
8306
+ }
8307
+ ],
8308
+ "name": "addPlugin"
8309
+ },
8310
+ {
8311
+ "kind": "MethodSignature",
8312
+ "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#addTelemetryInitializer:member(1)",
8313
+ "docComment": "/**\n * Add a telemetry processor to decorate or drop telemetry events.\n *\n * @param telemetryInitializer - The Telemetry Initializer function\n *\n * @returns - A ITelemetryInitializerHandler to enable the initializer to be removed\n */\n",
8314
+ "excerptTokens": [
8315
+ {
8316
+ "kind": "Content",
8317
+ "text": "addTelemetryInitializer(telemetryInitializer: "
8318
+ },
8319
+ {
8320
+ "kind": "Reference",
8321
+ "text": "TelemetryInitializerFunction",
8322
+ "canonicalReference": "@microsoft/applicationinsights-web!TelemetryInitializerFunction:type"
8323
+ },
8324
+ {
8325
+ "kind": "Content",
8326
+ "text": "): "
8327
+ },
8328
+ {
8329
+ "kind": "Reference",
8330
+ "text": "ITelemetryInitializerHandler",
8331
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryInitializerHandler:interface"
7851
8332
  },
7852
8333
  {
7853
8334
  "kind": "Content",
@@ -7876,6 +8357,51 @@
7876
8357
  ],
7877
8358
  "name": "addTelemetryInitializer"
7878
8359
  },
8360
+ {
8361
+ "kind": "MethodSignature",
8362
+ "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#addUnloadCb:member(1)",
8363
+ "docComment": "/**\n * Add a handler that will be called when the SDK is being unloaded\n *\n * @param handler - the handler\n */\n",
8364
+ "excerptTokens": [
8365
+ {
8366
+ "kind": "Content",
8367
+ "text": "addUnloadCb(handler: "
8368
+ },
8369
+ {
8370
+ "kind": "Reference",
8371
+ "text": "UnloadHandler",
8372
+ "canonicalReference": "@microsoft/applicationinsights-web!UnloadHandler:type"
8373
+ },
8374
+ {
8375
+ "kind": "Content",
8376
+ "text": "): "
8377
+ },
8378
+ {
8379
+ "kind": "Content",
8380
+ "text": "void"
8381
+ },
8382
+ {
8383
+ "kind": "Content",
8384
+ "text": ";"
8385
+ }
8386
+ ],
8387
+ "isOptional": false,
8388
+ "returnTypeTokenRange": {
8389
+ "startIndex": 3,
8390
+ "endIndex": 4
8391
+ },
8392
+ "releaseTag": "Public",
8393
+ "overloadIndex": 1,
8394
+ "parameters": [
8395
+ {
8396
+ "parameterName": "handler",
8397
+ "parameterTypeTokenRange": {
8398
+ "startIndex": 1,
8399
+ "endIndex": 2
8400
+ }
8401
+ }
8402
+ ],
8403
+ "name": "addUnloadCb"
8404
+ },
7879
8405
  {
7880
8406
  "kind": "PropertySignature",
7881
8407
  "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#config:member",
@@ -7903,6 +8429,34 @@
7903
8429
  "endIndex": 2
7904
8430
  }
7905
8431
  },
8432
+ {
8433
+ "kind": "MethodSignature",
8434
+ "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#evtNamespace:member(1)",
8435
+ "docComment": "/**\n * Returns the unique event namespace that should be used when registering events\n */\n",
8436
+ "excerptTokens": [
8437
+ {
8438
+ "kind": "Content",
8439
+ "text": "evtNamespace(): "
8440
+ },
8441
+ {
8442
+ "kind": "Content",
8443
+ "text": "string"
8444
+ },
8445
+ {
8446
+ "kind": "Content",
8447
+ "text": ";"
8448
+ }
8449
+ ],
8450
+ "isOptional": false,
8451
+ "returnTypeTokenRange": {
8452
+ "startIndex": 1,
8453
+ "endIndex": 2
8454
+ },
8455
+ "releaseTag": "Public",
8456
+ "overloadIndex": 1,
8457
+ "parameters": [],
8458
+ "name": "evtNamespace"
8459
+ },
7906
8460
  {
7907
8461
  "kind": "MethodSignature",
7908
8462
  "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#getCookieMgr:member(1)",
@@ -8463,6 +9017,65 @@
8463
9017
  }
8464
9018
  ],
8465
9019
  "name": "track"
9020
+ },
9021
+ {
9022
+ "kind": "MethodSignature",
9023
+ "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#unload:member(1)",
9024
+ "docComment": "/**\n * Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous unload call return `true` stating that all plugins reported that they also unloaded, the recommended approach is to create a new instance and initialize that instance. This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable to successfully remove any global references or they may just be completing the unload process asynchronously.\n */\n",
9025
+ "excerptTokens": [
9026
+ {
9027
+ "kind": "Content",
9028
+ "text": "unload(isAsync?: "
9029
+ },
9030
+ {
9031
+ "kind": "Content",
9032
+ "text": "boolean"
9033
+ },
9034
+ {
9035
+ "kind": "Content",
9036
+ "text": ", unloadComplete?: "
9037
+ },
9038
+ {
9039
+ "kind": "Content",
9040
+ "text": "() => void"
9041
+ },
9042
+ {
9043
+ "kind": "Content",
9044
+ "text": "): "
9045
+ },
9046
+ {
9047
+ "kind": "Content",
9048
+ "text": "void"
9049
+ },
9050
+ {
9051
+ "kind": "Content",
9052
+ "text": ";"
9053
+ }
9054
+ ],
9055
+ "isOptional": false,
9056
+ "returnTypeTokenRange": {
9057
+ "startIndex": 5,
9058
+ "endIndex": 6
9059
+ },
9060
+ "releaseTag": "Public",
9061
+ "overloadIndex": 1,
9062
+ "parameters": [
9063
+ {
9064
+ "parameterName": "isAsync",
9065
+ "parameterTypeTokenRange": {
9066
+ "startIndex": 1,
9067
+ "endIndex": 2
9068
+ }
9069
+ },
9070
+ {
9071
+ "parameterName": "unloadComplete",
9072
+ "parameterTypeTokenRange": {
9073
+ "startIndex": 3,
9074
+ "endIndex": 4
9075
+ }
9076
+ }
9077
+ ],
9078
+ "name": "unload"
8466
9079
  }
8467
9080
  ],
8468
9081
  "extendsTokenRanges": [
@@ -11202,7 +11815,7 @@
11202
11815
  {
11203
11816
  "kind": "Reference",
11204
11817
  "text": "DistributedTracingModes",
11205
- "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes:enum"
11818
+ "canonicalReference": "@microsoft/applicationinsights-web!DistributedTracingModes:type"
11206
11819
  },
11207
11820
  {
11208
11821
  "kind": "Content",
@@ -12759,7 +13372,7 @@
12759
13372
  },
12760
13373
  {
12761
13374
  "kind": "Content",
12762
- "text": "(eventName: string, callback: any) => boolean"
13375
+ "text": "(eventName: string, callback: any, evtNamespace?: string | string[]) => boolean"
12763
13376
  },
12764
13377
  {
12765
13378
  "kind": "Content",
@@ -14532,7 +15145,7 @@
14532
15145
  {
14533
15146
  "kind": "Reference",
14534
15147
  "text": "LoggingSeverity",
14535
- "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:enum"
15148
+ "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:type"
14536
15149
  },
14537
15150
  {
14538
15151
  "kind": "Content",
@@ -14704,7 +15317,7 @@
14704
15317
  {
14705
15318
  "kind": "Reference",
14706
15319
  "text": "LoggingSeverity",
14707
- "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:enum"
15320
+ "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:type"
14708
15321
  },
14709
15322
  {
14710
15323
  "kind": "Content",
@@ -16981,390 +17594,21 @@
16981
17594
  {
16982
17595
  "kind": "Reference",
16983
17596
  "text": "IPlugin",
16984
- "canonicalReference": "@microsoft/applicationinsights-web!IPlugin:interface"
16985
- },
16986
- {
16987
- "kind": "Content",
16988
- "text": "[], pluginChain?: "
16989
- },
16990
- {
16991
- "kind": "Reference",
16992
- "text": "ITelemetryPluginChain",
16993
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPluginChain:interface"
16994
- },
16995
- {
16996
- "kind": "Content",
16997
- "text": ") => void"
16998
- },
16999
- {
17000
- "kind": "Content",
17001
- "text": ";"
17002
- }
17003
- ],
17004
- "isOptional": false,
17005
- "releaseTag": "Public",
17006
- "name": "initialize",
17007
- "propertyTypeTokenRange": {
17008
- "startIndex": 1,
17009
- "endIndex": 10
17010
- }
17011
- },
17012
- {
17013
- "kind": "PropertySignature",
17014
- "canonicalReference": "@microsoft/applicationinsights-web!IPlugin#isInitialized:member",
17015
- "docComment": "/**\n * Returns a value that indicates whether the plugin has already been previously initialized. New plugins should implement this method to avoid being initialized more than once.\n */\n",
17016
- "excerptTokens": [
17017
- {
17018
- "kind": "Content",
17019
- "text": "isInitialized?: "
17020
- },
17021
- {
17022
- "kind": "Content",
17023
- "text": "() => boolean"
17024
- },
17025
- {
17026
- "kind": "Content",
17027
- "text": ";"
17028
- }
17029
- ],
17030
- "isOptional": true,
17031
- "releaseTag": "Public",
17032
- "name": "isInitialized",
17033
- "propertyTypeTokenRange": {
17034
- "startIndex": 1,
17035
- "endIndex": 2
17036
- }
17037
- },
17038
- {
17039
- "kind": "PropertySignature",
17040
- "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",
17042
- "excerptTokens": [
17043
- {
17044
- "kind": "Content",
17045
- "text": "teardown?: "
17046
- },
17047
- {
17048
- "kind": "Content",
17049
- "text": "() => void"
17050
- },
17051
- {
17052
- "kind": "Content",
17053
- "text": ";"
17054
- }
17055
- ],
17056
- "isOptional": true,
17057
- "releaseTag": "Public",
17058
- "name": "teardown",
17059
- "propertyTypeTokenRange": {
17060
- "startIndex": 1,
17061
- "endIndex": 2
17062
- }
17063
- },
17064
- {
17065
- "kind": "PropertySignature",
17066
- "canonicalReference": "@microsoft/applicationinsights-web!IPlugin#version:member",
17067
- "docComment": "/**\n * Plugin version (available in data.properties.version in common schema)\n */\n",
17068
- "excerptTokens": [
17069
- {
17070
- "kind": "Content",
17071
- "text": "readonly version?: "
17072
- },
17073
- {
17074
- "kind": "Content",
17075
- "text": "string"
17076
- },
17077
- {
17078
- "kind": "Content",
17079
- "text": ";"
17080
- }
17081
- ],
17082
- "isOptional": true,
17083
- "releaseTag": "Public",
17084
- "name": "version",
17085
- "propertyTypeTokenRange": {
17086
- "startIndex": 1,
17087
- "endIndex": 2
17088
- }
17089
- }
17090
- ],
17091
- "extendsTokenRanges": []
17092
- },
17093
- {
17094
- "kind": "Interface",
17095
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext:interface",
17096
- "docComment": "/**\n * The current context for the current call to processTelemetry(), used to support sharing the same plugin instance between multiple AppInsights instances\n */\n",
17097
- "excerptTokens": [
17098
- {
17099
- "kind": "Content",
17100
- "text": "export interface IProcessTelemetryContext "
17101
- }
17102
- ],
17103
- "releaseTag": "Public",
17104
- "name": "IProcessTelemetryContext",
17105
- "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
- {
17138
- "kind": "PropertySignature",
17139
- "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",
17141
- "excerptTokens": [
17142
- {
17143
- "kind": "Content",
17144
- "text": "createNew: "
17145
- },
17146
- {
17147
- "kind": "Content",
17148
- "text": "(plugins?: "
17149
- },
17150
- {
17151
- "kind": "Reference",
17152
- "text": "IPlugin",
17153
- "canonicalReference": "@microsoft/applicationinsights-web!IPlugin:interface"
17154
- },
17155
- {
17156
- "kind": "Content",
17157
- "text": "[] | "
17158
- },
17159
- {
17160
- "kind": "Reference",
17161
- "text": "ITelemetryPluginChain",
17162
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPluginChain:interface"
17163
- },
17164
- {
17165
- "kind": "Content",
17166
- "text": ", startAt?: "
17167
- },
17168
- {
17169
- "kind": "Reference",
17170
- "text": "IPlugin",
17171
- "canonicalReference": "@microsoft/applicationinsights-web!IPlugin:interface"
17172
- },
17173
- {
17174
- "kind": "Content",
17175
- "text": ") => "
17176
- },
17177
- {
17178
- "kind": "Reference",
17179
- "text": "IProcessTelemetryContext",
17180
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext:interface"
17181
- },
17182
- {
17183
- "kind": "Content",
17184
- "text": ";"
17185
- }
17186
- ],
17187
- "isOptional": false,
17188
- "releaseTag": "Public",
17189
- "name": "createNew",
17190
- "propertyTypeTokenRange": {
17191
- "startIndex": 1,
17192
- "endIndex": 9
17193
- }
17194
- },
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: "
17597
+ "canonicalReference": "@microsoft/applicationinsights-web!IPlugin:interface"
17358
17598
  },
17359
17599
  {
17360
17600
  "kind": "Content",
17361
- "text": "() => "
17601
+ "text": "[], pluginChain?: "
17362
17602
  },
17363
17603
  {
17364
17604
  "kind": "Reference",
17365
17605
  "text": "ITelemetryPluginChain",
17366
17606
  "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPluginChain:interface"
17367
17607
  },
17608
+ {
17609
+ "kind": "Content",
17610
+ "text": ") => void"
17611
+ },
17368
17612
  {
17369
17613
  "kind": "Content",
17370
17614
  "text": ";"
@@ -17372,20 +17616,20 @@
17372
17616
  ],
17373
17617
  "isOptional": false,
17374
17618
  "releaseTag": "Public",
17375
- "name": "getNext",
17619
+ "name": "initialize",
17376
17620
  "propertyTypeTokenRange": {
17377
17621
  "startIndex": 1,
17378
- "endIndex": 3
17622
+ "endIndex": 10
17379
17623
  }
17380
17624
  },
17381
17625
  {
17382
17626
  "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",
17627
+ "canonicalReference": "@microsoft/applicationinsights-web!IPlugin#isInitialized:member",
17628
+ "docComment": "/**\n * Returns a value that indicates whether the plugin has already been previously initialized. New plugins should implement this method to avoid being initialized more than once.\n */\n",
17385
17629
  "excerptTokens": [
17386
17630
  {
17387
17631
  "kind": "Content",
17388
- "text": "hasNext: "
17632
+ "text": "isInitialized?: "
17389
17633
  },
17390
17634
  {
17391
17635
  "kind": "Content",
@@ -17396,9 +17640,9 @@
17396
17640
  "text": ";"
17397
17641
  }
17398
17642
  ],
17399
- "isOptional": false,
17643
+ "isOptional": true,
17400
17644
  "releaseTag": "Public",
17401
- "name": "hasNext",
17645
+ "name": "isInitialized",
17402
17646
  "propertyTypeTokenRange": {
17403
17647
  "startIndex": 1,
17404
17648
  "endIndex": 2
@@ -17406,43 +17650,43 @@
17406
17650
  },
17407
17651
  {
17408
17652
  "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",
17653
+ "canonicalReference": "@microsoft/applicationinsights-web!IPlugin#teardown:member",
17654
+ "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",
17411
17655
  "excerptTokens": [
17412
17656
  {
17413
17657
  "kind": "Content",
17414
- "text": "iterate: "
17658
+ "text": "teardown?: "
17415
17659
  },
17416
17660
  {
17417
17661
  "kind": "Content",
17418
- "text": "<T extends "
17662
+ "text": "(unloadCtx: "
17419
17663
  },
17420
17664
  {
17421
17665
  "kind": "Reference",
17422
- "text": "ITelemetryPlugin",
17423
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPlugin:interface"
17666
+ "text": "IProcessTelemetryUnloadContext",
17667
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUnloadContext:interface"
17424
17668
  },
17425
17669
  {
17426
17670
  "kind": "Content",
17427
- "text": " = "
17671
+ "text": ", unloadState?: "
17428
17672
  },
17429
17673
  {
17430
17674
  "kind": "Reference",
17431
- "text": "ITelemetryPlugin",
17432
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPlugin:interface"
17675
+ "text": "ITelemetryUnloadState",
17676
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUnloadState:interface"
17433
17677
  },
17434
17678
  {
17435
17679
  "kind": "Content",
17436
- "text": ">(callback: (plugin: T) => void) => void"
17680
+ "text": ") => void | boolean"
17437
17681
  },
17438
17682
  {
17439
17683
  "kind": "Content",
17440
17684
  "text": ";"
17441
17685
  }
17442
17686
  ],
17443
- "isOptional": false,
17687
+ "isOptional": true,
17444
17688
  "releaseTag": "Public",
17445
- "name": "iterate",
17689
+ "name": "teardown",
17446
17690
  "propertyTypeTokenRange": {
17447
17691
  "startIndex": 1,
17448
17692
  "endIndex": 6
@@ -17450,51 +17694,99 @@
17450
17694
  },
17451
17695
  {
17452
17696
  "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",
17697
+ "canonicalReference": "@microsoft/applicationinsights-web!IPlugin#version:member",
17698
+ "docComment": "/**\n * Plugin version (available in data.properties.version in common schema)\n */\n",
17455
17699
  "excerptTokens": [
17456
17700
  {
17457
17701
  "kind": "Content",
17458
- "text": "onComplete: "
17702
+ "text": "readonly version?: "
17459
17703
  },
17460
17704
  {
17461
17705
  "kind": "Content",
17462
- "text": "(onComplete: () => void) => void"
17706
+ "text": "string"
17463
17707
  },
17464
17708
  {
17465
17709
  "kind": "Content",
17466
17710
  "text": ";"
17467
17711
  }
17468
17712
  ],
17469
- "isOptional": false,
17713
+ "isOptional": true,
17470
17714
  "releaseTag": "Public",
17471
- "name": "onComplete",
17715
+ "name": "version",
17472
17716
  "propertyTypeTokenRange": {
17473
17717
  "startIndex": 1,
17474
17718
  "endIndex": 2
17475
17719
  }
17720
+ }
17721
+ ],
17722
+ "extendsTokenRanges": []
17723
+ },
17724
+ {
17725
+ "kind": "Interface",
17726
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext:interface",
17727
+ "docComment": "/**\n * The current context for the current call to processTelemetry(), used to support sharing the same plugin instance between multiple AppInsights instances\n */\n",
17728
+ "excerptTokens": [
17729
+ {
17730
+ "kind": "Content",
17731
+ "text": "export interface IProcessTelemetryContext extends "
17476
17732
  },
17733
+ {
17734
+ "kind": "Reference",
17735
+ "text": "IBaseProcessingContext",
17736
+ "canonicalReference": "@microsoft/applicationinsights-web!IBaseProcessingContext:interface"
17737
+ },
17738
+ {
17739
+ "kind": "Content",
17740
+ "text": " "
17741
+ }
17742
+ ],
17743
+ "releaseTag": "Public",
17744
+ "name": "IProcessTelemetryContext",
17745
+ "members": [
17477
17746
  {
17478
17747
  "kind": "PropertySignature",
17479
- "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",
17748
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#createNew:member",
17749
+ "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",
17481
17750
  "excerptTokens": [
17482
17751
  {
17483
17752
  "kind": "Content",
17484
- "text": "processNext: "
17753
+ "text": "createNew: "
17485
17754
  },
17486
17755
  {
17487
17756
  "kind": "Content",
17488
- "text": "(env: "
17757
+ "text": "(plugins?: "
17489
17758
  },
17490
17759
  {
17491
17760
  "kind": "Reference",
17492
- "text": "ITelemetryItem",
17493
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryItem:interface"
17761
+ "text": "IPlugin",
17762
+ "canonicalReference": "@microsoft/applicationinsights-web!IPlugin:interface"
17494
17763
  },
17495
17764
  {
17496
17765
  "kind": "Content",
17497
- "text": ") => void"
17766
+ "text": "[] | "
17767
+ },
17768
+ {
17769
+ "kind": "Reference",
17770
+ "text": "ITelemetryPluginChain",
17771
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPluginChain:interface"
17772
+ },
17773
+ {
17774
+ "kind": "Content",
17775
+ "text": ", startAt?: "
17776
+ },
17777
+ {
17778
+ "kind": "Reference",
17779
+ "text": "IPlugin",
17780
+ "canonicalReference": "@microsoft/applicationinsights-web!IPlugin:interface"
17781
+ },
17782
+ {
17783
+ "kind": "Content",
17784
+ "text": ") => "
17785
+ },
17786
+ {
17787
+ "kind": "Reference",
17788
+ "text": "IProcessTelemetryContext",
17789
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext:interface"
17498
17790
  },
17499
17791
  {
17500
17792
  "kind": "Content",
@@ -17503,33 +17795,33 @@
17503
17795
  ],
17504
17796
  "isOptional": false,
17505
17797
  "releaseTag": "Public",
17506
- "name": "processNext",
17798
+ "name": "createNew",
17507
17799
  "propertyTypeTokenRange": {
17508
17800
  "startIndex": 1,
17509
- "endIndex": 4
17801
+ "endIndex": 9
17510
17802
  }
17511
17803
  },
17512
17804
  {
17513
17805
  "kind": "PropertySignature",
17514
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#setNext:member",
17515
- "docComment": "/**\n * Helper to set the next plugin proxy\n */\n",
17806
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext#processNext:member",
17807
+ "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",
17516
17808
  "excerptTokens": [
17517
17809
  {
17518
17810
  "kind": "Content",
17519
- "text": "setNext: "
17811
+ "text": "processNext: "
17520
17812
  },
17521
17813
  {
17522
17814
  "kind": "Content",
17523
- "text": "(nextCtx: "
17815
+ "text": "(env: "
17524
17816
  },
17525
17817
  {
17526
17818
  "kind": "Reference",
17527
- "text": "ITelemetryPluginChain",
17528
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPluginChain:interface"
17819
+ "text": "ITelemetryItem",
17820
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryItem:interface"
17529
17821
  },
17530
17822
  {
17531
17823
  "kind": "Content",
17532
- "text": ") => void"
17824
+ "text": ") => boolean | void"
17533
17825
  },
17534
17826
  {
17535
17827
  "kind": "Content",
@@ -17538,14 +17830,19 @@
17538
17830
  ],
17539
17831
  "isOptional": false,
17540
17832
  "releaseTag": "Public",
17541
- "name": "setNext",
17833
+ "name": "processNext",
17542
17834
  "propertyTypeTokenRange": {
17543
17835
  "startIndex": 1,
17544
17836
  "endIndex": 4
17545
17837
  }
17546
17838
  }
17547
17839
  ],
17548
- "extendsTokenRanges": []
17840
+ "extendsTokenRanges": [
17841
+ {
17842
+ "startIndex": 1,
17843
+ "endIndex": 3
17844
+ }
17845
+ ]
17549
17846
  },
17550
17847
  {
17551
17848
  "kind": "Interface",
@@ -18071,6 +18368,15 @@
18071
18368
  "kind": "Content",
18072
18369
  "text": "export interface ITelemetryPlugin extends "
18073
18370
  },
18371
+ {
18372
+ "kind": "Reference",
18373
+ "text": "ITelemetryProcessor",
18374
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryProcessor:interface"
18375
+ },
18376
+ {
18377
+ "kind": "Content",
18378
+ "text": ", "
18379
+ },
18074
18380
  {
18075
18381
  "kind": "Reference",
18076
18382
  "text": "IPlugin",
@@ -18110,50 +18416,6 @@
18110
18416
  "endIndex": 2
18111
18417
  }
18112
18418
  },
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
18419
  {
18158
18420
  "kind": "PropertySignature",
18159
18421
  "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPlugin#setNextPlugin:member",
@@ -18202,7 +18464,11 @@
18202
18464
  "extendsTokenRanges": [
18203
18465
  {
18204
18466
  "startIndex": 1,
18205
- "endIndex": 3
18467
+ "endIndex": 2
18468
+ },
18469
+ {
18470
+ "startIndex": 3,
18471
+ "endIndex": 5
18206
18472
  }
18207
18473
  ]
18208
18474
  },
@@ -18213,7 +18479,16 @@
18213
18479
  "excerptTokens": [
18214
18480
  {
18215
18481
  "kind": "Content",
18216
- "text": "export interface ITelemetryPluginChain "
18482
+ "text": "export interface ITelemetryPluginChain extends "
18483
+ },
18484
+ {
18485
+ "kind": "Reference",
18486
+ "text": "ITelemetryProcessor",
18487
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryProcessor:interface"
18488
+ },
18489
+ {
18490
+ "kind": "Content",
18491
+ "text": " "
18217
18492
  }
18218
18493
  ],
18219
18494
  "releaseTag": "Public",
@@ -18283,30 +18558,30 @@
18283
18558
  },
18284
18559
  {
18285
18560
  "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",
18561
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPluginChain#unload:member",
18562
+ "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
18563
  "excerptTokens": [
18289
18564
  {
18290
18565
  "kind": "Content",
18291
- "text": "processTelemetry: "
18566
+ "text": "unload?: "
18292
18567
  },
18293
18568
  {
18294
18569
  "kind": "Content",
18295
- "text": "(env: "
18570
+ "text": "(unloadCtx: "
18296
18571
  },
18297
18572
  {
18298
18573
  "kind": "Reference",
18299
- "text": "ITelemetryItem",
18300
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryItem:interface"
18574
+ "text": "IProcessTelemetryUnloadContext",
18575
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUnloadContext:interface"
18301
18576
  },
18302
18577
  {
18303
18578
  "kind": "Content",
18304
- "text": ", itemCtx: "
18579
+ "text": ", unloadState: "
18305
18580
  },
18306
18581
  {
18307
18582
  "kind": "Reference",
18308
- "text": "IProcessTelemetryContext",
18309
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryContext:interface"
18583
+ "text": "ITelemetryUnloadState",
18584
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUnloadState:interface"
18310
18585
  },
18311
18586
  {
18312
18587
  "kind": "Content",
@@ -18317,16 +18592,21 @@
18317
18592
  "text": ";"
18318
18593
  }
18319
18594
  ],
18320
- "isOptional": false,
18595
+ "isOptional": true,
18321
18596
  "releaseTag": "Public",
18322
- "name": "processTelemetry",
18597
+ "name": "unload",
18323
18598
  "propertyTypeTokenRange": {
18324
18599
  "startIndex": 1,
18325
18600
  "endIndex": 6
18326
18601
  }
18327
18602
  }
18328
18603
  ],
18329
- "extendsTokenRanges": []
18604
+ "extendsTokenRanges": [
18605
+ {
18606
+ "startIndex": 1,
18607
+ "endIndex": 3
18608
+ }
18609
+ ]
18330
18610
  },
18331
18611
  {
18332
18612
  "kind": "Interface",
@@ -19735,61 +20015,55 @@
19735
20015
  "extendsTokenRanges": []
19736
20016
  },
19737
20017
  {
19738
- "kind": "Enum",
19739
- "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:enum",
20018
+ "kind": "TypeAlias",
20019
+ "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:type",
19740
20020
  "docComment": "",
19741
20021
  "excerptTokens": [
19742
20022
  {
19743
20023
  "kind": "Content",
19744
- "text": "export declare enum LoggingSeverity "
20024
+ "text": "export declare type LoggingSeverity = "
20025
+ },
20026
+ {
20027
+ "kind": "Content",
20028
+ "text": "number | "
20029
+ },
20030
+ {
20031
+ "kind": "Reference",
20032
+ "text": "eLoggingSeverity",
20033
+ "canonicalReference": "@microsoft/applicationinsights-web!eLoggingSeverity:enum"
20034
+ },
20035
+ {
20036
+ "kind": "Content",
20037
+ "text": ";"
19745
20038
  }
19746
20039
  ],
19747
20040
  "releaseTag": "Public",
19748
20041
  "name": "LoggingSeverity",
19749
- "members": [
20042
+ "typeTokenRange": {
20043
+ "startIndex": 1,
20044
+ "endIndex": 3
20045
+ }
20046
+ },
20047
+ {
20048
+ "kind": "Variable",
20049
+ "canonicalReference": "@microsoft/applicationinsights-web!LoggingSeverity:var",
20050
+ "docComment": "",
20051
+ "excerptTokens": [
19750
20052
  {
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
- }
20053
+ "kind": "Content",
20054
+ "text": "LoggingSeverity: "
19770
20055
  },
19771
20056
  {
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
- }
20057
+ "kind": "Content",
20058
+ "text": "{\n CRITICAL: number;\n WARNING: number;\n}"
19791
20059
  }
19792
- ]
20060
+ ],
20061
+ "releaseTag": "Public",
20062
+ "name": "LoggingSeverity",
20063
+ "variableTypeTokenRange": {
20064
+ "startIndex": 1,
20065
+ "endIndex": 2
20066
+ }
19793
20067
  },
19794
20068
  {
19795
20069
  "kind": "Class",
@@ -24435,23 +24709,14 @@
24435
24709
  },
24436
24710
  {
24437
24711
  "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}"
24712
+ "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
24713
  }
24449
24714
  ],
24450
24715
  "releaseTag": "Public",
24451
24716
  "name": "Telemetry",
24452
24717
  "variableTypeTokenRange": {
24453
24718
  "startIndex": 1,
24454
- "endIndex": 60
24719
+ "endIndex": 58
24455
24720
  }
24456
24721
  },
24457
24722
  {