in Sources/apm-agent-ios/Instrumentation/ViewController/ViewControllerInstrumentation.swift [134:148]
func swizzle() {
swap { previousImplementation -> BlockSignature in { viewController, animated in
let name = "\(type(of: viewController)) - view appearing"
_ = ViewControllerInstrumentation
.traceLogger
.startTrace(tracer: ViewControllerInstrumentation.getTracer(),
associatedObject: viewController,
name: name,
preferredName: ViewControllerInstrumentation.getViewControllerName(viewController))
previousImplementation(viewController, self.selector, animated)
}}
}