Skip to content
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

iOS Stack Trace for Error Log #1572

Closed
akovalov opened this issue Dec 1, 2023 · 2 comments
Closed

iOS Stack Trace for Error Log #1572

akovalov opened this issue Dec 1, 2023 · 2 comments
Assignees

Comments

@akovalov
Copy link

akovalov commented Dec 1, 2023

Is it possible to have a stack trace for the error type log in the iOS SDK?
For example, if the error was logged as

logger.error("An error was met!")
// or with an Error object
logger.error("An error was met!", error: errorObj)

How to get the stack trace that led to this error? Can SDK automatically attach it or need manually pass somehow?

Thanks

@ncreated
Copy link
Member

Hello @akovalov 👋. At this moment our SDK doesn't collect backtraces for errors collected with logger.error(). Although you could implement it by your own with leveraging Thread. callStackSymbols() and sending it as log attribute, this may not work reliably if debug symbols are stripped out in release build.

Today, we only symbolicate crashes if dSYMs are uploaded to Datadog. Symbolication isn't yet supported for other kind of errors (log errors, span errors nor manually collected RUM errors), hence we don't collect stack trace as part of them.

@ncreated ncreated self-assigned this Dec 12, 2023
@akovalov
Copy link
Author

Hi @ncreated got it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants