You can instrument instance and class method as follows Option 1:
Option 2: You can also instrument method using start and end span.

Parameter

Option 3: You can also instrument method using with_span.