Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Plugin

Package version

Interface Plugin to apply patch.

Hierarchy

  • Plugin

Index

Methods

Methods

disable

  • disable(): void
  • Method to disable the instrumentation

    Returns void

enable

  • enable<T>(moduleExports: T, tracer: TracerBase, version: string, options: PluginConfig, basedir?: undefined | string, stats?: Stats): T
  • Method that enables the instrumentation patch.

    Type parameters

    • T

    Parameters

    • moduleExports: T

      nodejs module exports from the module to patch

    • tracer: TracerBase

      a tracer instance

    • version: string

      version of the current instaled module to patch

    • options: PluginConfig

      plugin options

    • Optional basedir: undefined | string

      an optional module absolute path

    • Optional stats: Stats

      an optional stats instance

    Returns T

Generated using TypeDoc