ExportThe configuration to use for this ApplicationInsights instance
Add a new plugin to the installation
The new plugin to add
should any existing plugin be replaced
Should the add be performed asynchronously
OptionaladdCb: ((added?: boolean) => void)Optionaladded: booleanFind and return the (first) plugin with the specified identifier if present
The identifier of the plugin to search for
Watches and tracks changes for accesses to the current config, and if the accessed config changes the handler will be recalled.
The handler to call when the configuration changes
A watcher handler instance that can be used to remove itself when being unloaded
Send a manually constructed custom event
The custom event to send
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.
OptionalisAsync: booleanCan the unload be performed asynchronously (default)
OptionalunloadComplete: ((unloadState: ITelemetryUnloadState) => void)An optional callback that will be called once the unload has completed
OptionalcbTimeout: numberAn optional timeout to wait for any flush operations to complete before proceeding with the unload. Defaults to 5 seconds.
Nothing or if occurring asynchronously a IPromise which will be resolved once the unload is complete, the IPromise will only be returned when no callback is provided and isAsync is true
Update the configuration used and broadcast the changes to all loaded plugins
The new configuration is apply
OptionalmergeExisting: booleanShould the new configuration merge with the existing or just replace it. Default is to merge.
Creates an instance of ApplicationInsights.