sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Granular control over filtering specific Activity Breadcrumbs

Open cstavitsky opened this issue 1 year ago • 2 comments

Problem Statement

Opening on behalf of a customer (who referenced this as a "low priority feature request")

Currently you cannot filter selected Activity breadcrumbs, you either have them on or disable them all. It would be nice to have more granular control and be able to filter out some automatic Activity crumbs, but not all of them.

Solution Brainstorm

Add the ability to filter out specific breadcrumbs. Fragment breadcrumbs integration already allows for this so maybe we could do something similar for other automatic breadcrumbs?

┆Issue is synchronized with this Jira Improvement by Unito

cstavitsky avatar Nov 08 '24 17:11 cstavitsky

Possible solutions:

  1. ) Add an option to SentryOptions
  2. ) Allow the customer to remove the Integration and re-add it during init with different settings

markushi avatar Nov 13 '24 14:11 markushi

In the meantime our existing beforeBreadcrumb() callback could be used to filter out specific lifecycle Activity breadcrumbs.

markushi avatar Nov 13 '24 14:11 markushi