odictl or using YAML files.
- odictl
- YAML
Open the Instrumentation Rules pane
Use 
Tab to cycle to the Instrumentation Rules pane, or click it with your mouse. Press Enter or click + Add Rule to add a new rule.
Configure the rule
- Press
ito enter INSERT mode. - For Java: set
class(fully qualified class name) andmethod(method name). - For Go function: set
packageNameandfunctionName. Do not setreceiverNameorreceiverMethodName. - For Go receiver method: set
packageName,receiverName, andreceiverMethodName. Do not setfunctionName. - When finished, press
Esc, then type:wqto save and exit.
Java
Java
Instrument a method by fully qualified class and method name:
Go — function
Go — function
Instrument a function by package and function name:
Go — receiver method
Go — receiver method
Instrument a method by package, receiver type, and method name:
To cancel, press
Esc if in INSERT mode, then type :q! to exit without saving.

