Optional
activeWatches and tracks status of initialization process
ActiveStatus
3.3.0 If returned status is active, it means initialization process is completed. If returned status is pending, it means the initialization process is waiting for promieses to be resolved. If returned status is inactive, it means ikey is invalid or can 't get ikey or enpoint url from promsises.
Readonly
configFunction used to identify the get w parameter used to identify status bit to some channels
Optional
isReturns a value that indicates whether the instance has already been previously initialized.
Readonly
loggerThe current logger instance for this instance.
Readonly
pluginThe formatted string of the installed plugins that contain a version number
Readonly
pluginAn array of the installed plugins that provide a version
Optional
addAdds a notification listener. The SDK calls methods on the listener when an appropriate notification is raised. The added plugins must raise notifications. If the plugins do not implement the notifications, then no methods will be called.
An INotificationListener object.
Add a new plugin to the installation
The new plugin to add
Optional
replaceExisting: booleanshould any existing plugin be replaced, default is false
Optional
doAsync: booleanShould the add be performed asynchronously
Optional
addCb: ((added?: boolean) => void)[Optional] callback to call after the plugin has been added
Optional
added: booleanAdd a telemetry processor to decorate or drop telemetry events.
The Telemetry Initializer function
Add a handler that will be called when the SDK is being unloaded
the handler
Add this hook so that it is automatically removed during unloading
The single hook or an array of IInstrumentHook objects
Flush and send any batched / cached data immediately
Optional
isAsync: booleanOptional
callBack: ((flushComplete?: boolean) => void)if specified, notify caller when send is complete, the channel should return true to indicate to the caller that it will be called. If the caller doesn't return true the caller should assume that it may never be called.
Optional
flushComplete: booleanOptional
sendReason: SendRequestReasonspecify the reason that you are calling "flush" defaults to ManualFlush (1) if not specified
Optional
cbTimeout: numberAn optional timeout to wait for any flush operations to complete before proceeding with the unload. Defaults to 5 seconds.
Get the current cookie manager for this instance
Get the current notification manager
Get the current performance manager
Find and return the (first) plugin with the specified identifier if present
Return a new instance of the IProcessTelemetryContext for processing events
Gets the current distributed trace context for this instance if available
Optional
createNew: booleanOptional flag to create a new instance if one doesn't currently exist, defaults to true
Optional
logger: IDiagnosticLoggerOptional
notificationManager: INotificationManagerWatches and tracks changes for accesses to the current config, and if the accessed config changes the handler will be recalled.
A watcher handler instance that can be used to remove itself when being unloaded
Optional
pollOptional
removeRemoves all instances of the listener.
INotificationListener to remove.
Set the current cookie manager for this instance
The manager, if set to null/undefined will cause the default to be created
Set the current performance manager
The performance manager
Sets the current distributed trace context for this instance if available
Optional
stopUnload 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.
If you pass isAsync as true
(also the default) and DO NOT pass a callback function then an IPromise
will be returned which will resolve once the unload is complete. The actual implementation of the IPromise
will be a native Promise (if supported) or the default as supplied by ts-async library
Optional
isAsync: booleanCan the unload be performed asynchronously (default)
Optional
unloadComplete: ((unloadState: ITelemetryUnloadState) => void)An optional callback that will be called once the unload has completed
Optional
cbTimeout: 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, this does NOT support updating, adding or removing any the plugins (extensions or channels). It will notify each plugin (if supported) that the configuration has changed but it will not remove or add any new plugins, you need to call addPlugin or getPlugin(identifier).remove();
The new configuration is apply
Optional
mergeExisting: booleanShould the new configuration merge with the existing or just replace it. Default is to merge.
Identifies an interface to a host that can provide an IPerfManager implementation