• Decorator that creates a trace span for the decorated 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 method

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

      the method descriptor

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

    the decorated descriptor