You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example for "Recording exceptions" for Typescript doesn't work as-is. You have to do something to convince the compiler that you're allowed to pass the ex (typed as unknown by default since I think JS lets you throw anything) into the recordException call.
Typing it as any in the catch block or explicitly casting it as Error in the recordException call both seem to work.
Not sure if this is the right code but it seems like recordException is not making any assumptions about the input type anyways, so it seems safe to do these sorts of things.