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

Add option attach_stacktrace #1097

Open
EvgenPervenenko opened this issue Dec 5, 2024 · 0 comments
Open

Add option attach_stacktrace #1097

EvgenPervenenko opened this issue Dec 5, 2024 · 0 comments

Comments

@EvgenPervenenko
Copy link

EvgenPervenenko commented Dec 5, 2024

Description
When enabled option, for example, attach_stacktrace, stack traces are automatically attached to all logged messages. While stack traces are always included with exceptions, enabling this option also attaches stack traces to regular messages(or for SENTRY_LEVEL_FATAL messages only). This feature ensures that stack traces are visible alongside all log messages, providing comprehensive context for debugging and issue resolution.

Use case
Capturing Steps to Reproduce Issues: For events logged from client functions, different stack traces can help identify the exact steps that led to the issue, making it easier to reproduce and resolve.

Grouping in Sentry: Sentry groups events differently depending on whether they include stack traces. As a result, enabling or disabling this flag for certain events will lead to new groups being formed.

Interface Changes
add function

sentry_options_set_attach_stacktrace

using:

sentry_options_t *options = sentry_options_new();
sentry_options_set_attach_stacktrace(options, 1);
@github-project-automation github-project-automation bot moved this to Needs Discussion in Mobile & Cross Platform SDK Dec 5, 2024
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 5, 2024
@EvgenPervenenko EvgenPervenenko changed the title [Feature Request] Add configuration option for attach stacktrace to message event [Feature Request] Add configuration option to attach stacktrace to message events Dec 5, 2024
@getsantry getsantry bot removed the status in GitHub Issues with 👀 3 Dec 5, 2024
@supervacuus supervacuus changed the title [Feature Request] Add configuration option to attach stacktrace to message events Add option attach_stacktrace Dec 5, 2024
@kahest kahest moved this from Needs Discussion to Backlog in Mobile & Cross Platform SDK Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: Backlog
Development

No branches or pull requests

3 participants