如何避免使用 Firebase Performance 跟踪某些 401 网络响应?

How to avoid tracking certain 401 network responses with Firebase Performance?

我将 Firebase Performance 添加到与 REST API 对话的 iOS 应用程序。 API 的身份验证机制通过返回状态代码为 401 的 HTTP 响应来触发 App 中的身份验证令牌刷新。

我现在可以在 Firebase 控制台中看到所有这些 401 响应,这太棒了。有没有办法禁止跟踪所有这些 "token needs to be refreshed" 401 响应,以便只有真正的 "unauthenticated" 响应(即使在刷新令牌后响应失败并返回 401 时)在控制台中可见?

没有。您应该 file a feature request 描述您的特定用例。