Skip to content

Comments

feat: Add support for in-app classification#514

Closed
Swatinem wants to merge 1 commit intomasterfrom
feat/in-app
Closed

feat: Add support for in-app classification#514
Swatinem wants to merge 1 commit intomasterfrom
feat/in-app

Conversation

@Swatinem
Copy link
Contributor

@Swatinem Swatinem commented Apr 14, 2021

This needed some changes to the way that options are passed through when applying the scope to events.

Fixes #472
Fixes #473 (we already have max_breadcrumbs, and close is being added in #518)

This needed some changes to the way that options are passed through when applying the scope to events.
* *in-app*, which match this pattern.
* Matching is done on both symbols names and object file names they belong to.
*/
SENTRY_API void sentry_options_add_in_app_include(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* When on-device symbolication is enabled (see
* `sentry_options_set_symbolize_stacktraces`), this will flag stack frames as
* *in-app*, which match this pattern.
* Matching is done on both symbols names and object file names they belong to.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Pattern" here is underspecified. If you compare with existing SDKs, such as JavaScript documented here, this is only a prefix match on the module.

@untitaker @mitsuhiko - did we never support functions for this? Being able to do a prefix match on functions sounds pretty essential, tbh.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefix match on the module was entirely sufficient for python. function names of a library don't share a common pattern one could match against

istm native just needs a different API, but that's fine IMO


sentry_string_list_t *in_app = symbolize_data->options->in_app_includes;
while (in_app) {
if (strstr(symbol_name, in_app->str) != NULL
Copy link
Member

@jan-auer jan-auer Apr 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on if we go with a prefix match, you can use strncmp here.

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

Successfully merging this pull request may close these issues.

Extend Sentry Options to better integrate with Android Support InAppIncludes

3 participants