init()

in Sources/apm-agent-ios/InstrumentationWrapper.swift [37:52]


    init(config: AgentConfigManager) {
        self.config = config

#if os(iOS)
        if config.instrumentation.enableLifecycleEvents {
            applicationLifecycleInstrumentation = ApplicationLifecycleInstrumentation()
        }
        do {
            if self.config.instrumentation.enableViewControllerInstrumentation {
                vcInstrumentation = try ViewControllerInstrumentation()
            }
        } catch {
            print("failed to initalize view controller instrumentation: \(error)")
        }
#endif // os(iOS)
    }