• Decorator that creates a trace span for the decorated async 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) => Promise<Return>

      the async method to decorate

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

      the class method decorator context

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

    the decorated async method