-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🥅 Makes ErrorEvent
contains the optional exception stack trace
#28
base: develop
Are you sure you want to change the base?
Conversation
Hello @AlexV525! I will discuss this with the team as I'm quite sure we don't want to throw stack traces to the user/developer in these scenarios... These should be all user facing events so stack traces are meaningless here. If you could provide a useful scenario for doing this it would help me a lot! |
The reason is similar to #25, once you've swallowed the stack trace, developers will never know where goes wrong, especially when you report those errors to analysis platforms. |
We can add logger methods for sure, like on line 217 or 222
But the main idea of I will add for sure logs in the next version but still kipping this PR opened to discuss it. |
What is the definition of "users" here? Is it "end users" or "developers"? For end users they surely don't need to care about anything with stack traces, but they are helpful for developers. One thing we've met in our app is that one of our stream listener was closed which cannot emmited further events but the channel event didn't provide the source. |
Exactly, users are end users. And for developers I will add a logging system there like in other places. If that is not helpful we can discuss this PR further/ |
Logging requires extra effort for developers to track as they need to filter from logs and make connections between business and errors. EDIT: |
Description
The
ErrorEvent
for the relay client error channel does not contain enough info to extract where the exception is thrown. Adding theErrorEvent.stackTrace
will help the developer determine the root cause of the exceptions.