Hierarchy

Implements

Constructors

Methods

  • Saves extra information to be emitted when the measurements are flushed

    Parameters

    • fields: {
          [key: string]: {} | undefined;
      }
      • [key: string]: {} | undefined
    • correlationId: string

    Returns void

  • 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.

    Parameters

    • preQueueTime: number
    • currentTime: number

    Returns number

  • Stops 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.

    Parameters

    Returns null | PerformanceEvent

  • Gets map of pre-queue times by correlation Id

    Parameters

    • eventName: string
    • correlationId: string

    Returns number | void

  • Increment counters to be emitted when the measurements are flushed

    Parameters

    • fields: {
          [key: string]: number | undefined;
      }

      {string[]}

      • [key: string]: number | undefined
    • correlationId: string

      {string} correlation identifier

    Returns void

Generated using TypeDoc