sentry-android-gradle-plugin icon indicating copy to clipboard operation
sentry-android-gradle-plugin copied to clipboard

Allow more granular auto installation

Open romtsn opened this issue 3 years ago • 3 comments

Description

We could expose more granular options for setting up auto-installation, specifically, we could provide a list of integrations to install, for example:

sentry {
  autoInstallation {
    enabled = true
    features = [AutoInstallationFeature.TIMBER, AutoInstallationFeature.OKHTTP]
  }
}

By default all of them should be in the list (enabled).

For reference https://github.com/getsentry/sentry-java/issues/2468

romtsn avatar Jan 12 '23 08:01 romtsn

Maybe it makes sense to have a property to "deactivate" certain features, as it matches the typical workflow better (E.g. "I don't want to have timber integration, but everthing else").

markushi avatar Jan 18 '23 15:01 markushi

Could make sense to tackle this for Instrumentation Features as well

markushi avatar Jan 18 '23 15:01 markushi

I would go even further, in our case we would like to track timber logs as breadcrumbs but not as an individual events. That means we can't use auto install even with the proposed solution. In our case smth like this would be useful:

sentry {
  autoInstallation {
    enabled = true
    features = [AutoInstallationFeature.TIMBER, AutoInstallationFeature.OKHTTP]
    timber {
       minEventLevel = FATAL
       minBreadcrumbLevel = INFO
    }
  }
}

denis-bezrukov avatar Jan 23 '23 19:01 denis-bezrukov