getVisitor

open override fun getVisitor(instrumentableContext: MethodContext, apiVersion: Int, originalVisitor: MethodVisitor, parameters: SpanAddingClassVisitorFactory.SpanAddingParameters): MethodVisitor

Provides a visitor for this instrumentable. A visitor can be one of the visitors defined in ASM

Parameters

instrumentableContext

A context of the instrumentable.

apiVersion

Defines the ASM api version, usually provided from the parent

originalVisitor

The original visitor that ASM provides us with before visiting code

parameters

Parameters that are configured by users and passed via the Sentry gradle plugin