android-components / mozilla.components.lib.crash.service / SentryService

# SentryService

`class SentryService : CrashReporterService` (source)

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

### 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.

### Constructors

<init> | `SentryService(context: Context, dsn: String, tags: Map<String, String> = emptyMap(), sendEventForNativeCrashes: Boolean = false, clientFactory: SentryClientFactory = AndroidSentryClientFactory(context))` A CrashReporterService implementation that uploads crash reports to a Sentry server.

### Functions

report | `fun report(crash: UncaughtExceptionCrash): Unit` Submits a crash report for this Crash.UncaughtExceptionCrash. `fun report(crash: NativeCodeCrash): Unit` Submits a crash report for this Crash.NativeCodeCrash.