Abstract
Client ID of the application
Authority used by the application
Logger used by the application
Name of the library
Version of the library
application name and version
Optional
intFields: Set<string>integer fields to be truncated
Registers a callback function to receive performance events.
Adds queue measurement time to QueueMeasurements array for given correlation ID.
Optional
correlationId: stringOptional
queueTime: numberOptional
manuallyCompleted: booleanindicator for manually completed queue measurements
Calculates the difference between current time and time when function was queued. Note: It is possible to have 0 as the queue time if the current time and the queued time was the same.
Emits events to all registered callbacks.
Optional
correlationId: stringStops measuring the performance for an operation. Should only be called directly by PerformanceClient classes, as consumers should instead use the function returned by startMeasurement. Adds a new field named as "[event name]DurationMs" for sub-measurements, completes and emits an event otherwise.
Optional
measurement: IPerformanceMeasurementAbstract
generateAbstract
setSets pre-queue time by correlation Id
Optional
correlationId: stringStarts measuring performance for a given operation. Returns a function that should be used to end the measurement.
Optional
correlationId: stringStarts and returns an platform-specific implementation of IPerformanceMeasurement. Note: this function can be changed to abstract at the next major version bump.
Generated using TypeDoc
Creates an instance of PerformanceClient, an abstract class containing core performance telemetry logic.