android-components / mozilla.components.lib.crash.service / SentryService / <init>

<init>

SentryService(context: <ERROR CLASS>, dsn: String, tags: Map<String, String> = emptyMap(), environment: String? = null, sendEventForNativeCrashes: Boolean = false, clientFactory: SentryClientFactory? = null)

A CrashReporterService implementation that uploads crash reports to a Sentry server.

This implementation will add default tags to every sent crash report (like the used Android Components version) prefixed with “ac.”.

Parameters

context - The application Context.

dsn - Data Source Name of the Sentry server.

tags - A list of additional tags that will be sent together with crash reports.

environment - An optional, environment name string or null to set none