A component is any part of the system that has a own identity and can be monitored for error handling. The only requirement is to emit an error event when something goes wrong, to have a name and unique component identifier.

Hierarchy

  • EventEmitter
    • PlugWrapper

Implements

Constructors

Accessors

Constructors

Accessors

  • get componentId(): string
  • Component identification

    Returns string

  • get metrics(): undefined | Registry<"text/plain; version=0.0.4; charset=utf-8">
  • Metrics registry for this component

    Returns undefined | Registry<"text/plain; version=0.0.4; charset=utf-8">

  • get name(): string
  • Component name

    Returns string