replace-function

The replace-function advice replaces the callee of a Call node (typically matched by function-call) with the designated function. The current & replacement functions must have compatible signatures.

Examples

replace-function: github.com/DataDog/dd-trace-go/contrib/gorm.io/gorm.v1/v2.Open