Skip to main content

WrappedMethodArgs

The arguments that are passed to the wrapMethod method of the InstrumentationStrategy interface.

Signature

instance

propertyany

The instance of the class which is being instrumented.

target

propertyType<any>

The class which is being instrumented.

methodName

propertystring

The name of the method which is being instrumented.

args

propertyany[]

The arguments which are passed to the method.

applyOriginalFunction

property() => any | Promise<any>

A function which applies the original method and returns the result. This is used to call the original method after the instrumentation has been applied.

Was this chapter helpful?
Report Issue
Edited Jan 28, 2026ยทEdit this page