Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IGroupMetricsOptions<Data>

Options that can be used to construct GroupMetrics instances

Type parameters

  • Data

Hierarchy

Index

Properties

Optional catcher

catcher: ICatcher

Can be provided to catch exceptions in listeners.

Optional generator

generator: IEventEmitterListen<IEventRecord<Data>>

The generator that the metrics will listen for events on. The events are processed to determine how a question is being processed. The metrics will then emit more fine-grained question lifecycle events.

Optional maxListeners

maxListeners: undefined | number

The maximum number of listeners that are allowed on an event. Helps prevent memory leaks from not removing old listeners.