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

  • 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