• Decorator that creates a trace span for the decorated method logic. using the typescript decorators stage 3, which available in typescript v5 and above. requires the "experimentalDecorators" compiler option to be false.

    Type Parameters

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

    Parameters

    • target: (this: This, ...args: Args) => Return

      the method to decorate

    • context: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Return>

      the class method decorator context

    Returns (this: This, ...args: Args) => Return

    the decorated method