SentryExtensionBuilder

Builder used to configure Sentry and the Sentry extension.

Constructors

Link copied to clipboard
constructor(parent: ExtensionsBuilder)

Types

Properties

Link copied to clipboard
open var builder: () -> SentryAdapter

Builder used to construct a SentryAdapter instance, usually the constructor.

Link copied to clipboard
open var debug: Boolean

Whether to enable Sentry's debug mode.

Link copied to clipboard
open var distribution: String?

Optional distribution name to send to Sentry.

Link copied to clipboard
open var dsn: String?

Your Sentry DSN, required for submitting events to Sentry.

Link copied to clipboard
open var enable: Boolean

Whether to enable Sentry integration. This includes the extension, and SentryAdapter setup.

Link copied to clipboard
open var environment: String?

Optional environment name to send to Sentry.

Link copied to clipboard

Whether to enable the Sentry extension, which provides feedback commands.

Link copied to clipboard

Whether to ping users when responding to them.

Link copied to clipboard
open var release: String?

Optional release version to send to Sentry.

Link copied to clipboard

How many events to send to Sentry, as a percentage. Defaults to 1.0, meaning all events.

Link copied to clipboard
open var serverName: String?

Optional server name to send to Sentry.

Link copied to clipboard

Function in charge of setting up the SentryAdapter, by calling its setup function. You can use this if you need to pass extra parameters to the setup function, but make sure you pass everything that's required.

Functions

Link copied to clipboard
fun builder(body: () -> SentryAdapter)

Register a builder used to construct a SentryAdapter instance, usually the constructor.

Link copied to clipboard

Registry a Sentry data type transformer.

Link copied to clipboard

Configure the default data types sent via (or omitted from) Sentry captures.

Link copied to clipboard
fun enableIfDSN(sentryDSN: String?)

Convenience function to enable and set the DSN, but only if the supplied DSN isn't null.

Link copied to clipboard
fun predicate(body: suspend SentryCapture.() -> Boolean)

Register a Sentry submission predicate.

Link copied to clipboard
fun setup(body: SentryAdapter.() -> Unit)

Register the function in charge of setting up the SentryAdapter, by calling its setup function. You can use this if you need to pass extra parameters to the setup function, but make sure you pass everything that's required.