ClassMethodToInstrument
Index
Properties
className
The class name to patch.
methodName
The method name to patch.
moduleName
The Crawlee package the class is exported from, for example @crawlee/basic.
optionalspanName
The name of the span. Defaults to className.methodName.
When given a function, it is called with the arguments of the patched method, and this is the instance the
method was called on. The arguments are any because they are whatever the patched method receives.
optionalspanOptions
The attributes of the span. Follows the same calling convention as ClassMethodToInstrument.spanName.
One class method to wrap in a span, and the module that has to be loaded for it to exist.