OpenTelemetry SDK
    Preparing search index...

    Use AsyncLocalStorageContextManager instead.

    Hierarchy

    • AbstractAsyncHooksContextManager
      • AsyncHooksContextManager
    Index
    • Binds a the certain context or the active one to the target function and then returns the target

      Type Parameters

      • T

      Parameters

      • context: Context

        A context (span) to be bind to target

      • target: T

        a function or event emitter. When target or one of its callbacks is called, the provided context will be used as the active context for the duration of the call.

      Returns T

    • Type Parameters

      • A extends unknown[]
      • F extends (...args: A) => ReturnType<F>

      Parameters

      • context: Context
      • fn: F
      • OptionalthisArg: ThisParameterType<F>
      • ...args: A

      Returns ReturnType<F>