Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tracing

A class that represents automatic tracing.

Hierarchy

  • Tracing

Implements

  • object

Index

Constructors

constructor

Methods

disable

  • disable(): void
  • Disables automatic tracing support. This disables the publicly exposed custom span API, as well as any instances passed to plugins. This also prevents the Trace Writer from publishing additional traces.

    Returns void

enable

  • enable(): void
  • Enables automatic tracing support and the custom span API.

    Returns void

logModulesLoadedBeforeTrace

  • logModulesLoadedBeforeTrace(filesLoadedBeforeTrace: string[]): void
  • Logs an error message detailing the list of modules that were loaded before the Trace Agent. Loading these modules before the Trace Agent may prevent us from monkeypatching those modules for automatic tracing.

    Parameters

    • filesLoadedBeforeTrace: string[]

      The list of files that were loaded using require() before the Stackdriver Trace Agent was required.

    Returns void

Generated using TypeDoc