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

SentryService

class SentryService : CrashReporterService (source)

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

Constructors

Name Summary
<init> SentryService(context: <ERROR CLASS>, dsn: String, tags: Map<String, String> = emptyMap(), environment: String? = null, sendEventForNativeCrashes: Boolean = false, clientFactory: SentryClientFactory = AndroidSentryClientFactory(context))
A CrashReporterService implementation that uploads crash reports to a Sentry server.

Functions

Name Summary
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.fun report(throwable: Throwable): Unit
Submits a caught exception report for this Throwable.