method-call

The method-call join point matches call expressions of the form receiver.Method(args...) where the receiver’s type is a specific fully-qualified named type. Unlike function-call, it uses type information to distinguish between different types that expose the same method name.

The match field controls whether to match pointer receivers (pointer-only), value receivers (value-only), or both (any, the default).

Examples

method-call:
  name: Info
  receiver: go.uber.org/zap.Logger
method-call:
  match: pointer-only
  name: Do
  receiver: net/http.Client