Andrei Calazans

@andrei-calazans.bsky.social

Software engineering - React, React Native, GraphQL, Mobile, Infra.

It’s me once again asking for some help😅 Are there any solutions/sales engineers out there who would be willing to chat with me about your experience? Would love to chat! I’m trying to figure out if solutions/sales engineering could be a good fit for me

We were seeing misleading stacktraces in Bugsnag. Turns out the new Error object takes a stacktrace snapshot when you instantiate it, thus defining it in a variable far away from where it is thrown will mislead your stacktrace. See this post for the explanation andrei-calazans.com/posts/predef...

Why Predefining Errors as Constants is Problematic

Using predefined error constants introduces misleading stack traces, which can complicate debugging and error tracking.

andrei-calazans.com