Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 iOS 开发一个框架,我想使用哨兵进行崩溃报告。我只想发送与我的框架相关的崩溃事件,而不是主机应用程序中发生的所有崩溃。有什么方法可以防止事件被传递或发送到哨兵iOS sdk中的哨兵(假设我有过滤某些事件的解决方案)?
我认为您正在寻找的是shouldSendEvent回调,它可以这样使用:
shouldSendEvent
Client.shared?.shouldSendEvent = { event in // check for event stuff here // event. //return true // OR return false }