• Decorator that creates a trace span for the decorated async method logic. using the typescript decorators stage 2. requires the "experimentalDecorators" compiler option to be true.

    Type Parameters

    • This extends { tracer: Tracer }
    • Args extends unknown[]

    Parameters

    • _target: This

      the class prototype

    • propertyKey: string | symbol

      the name of the decorated async method

    • descriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<any>>

      the async method descriptor

    Returns TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<any>>

    the decorated descriptor