SentryOptions

open class SentryOptions

Sentry SDK options

Constructors

SentryOptions
Link copied to clipboard
open fun SentryOptions()
SentryOptions ctor It adds and set default things

Types

BeforeBreadcrumbCallback
Link copied to clipboard
interface BeforeBreadcrumbCallback
The BeforeBreadcrumb callback
BeforeSendCallback
Link copied to clipboard
interface BeforeSendCallback
The BeforeSend callback
Proxy
Link copied to clipboard
class Proxy
TracesSamplerCallback
Link copied to clipboard
interface TracesSamplerCallback
The traces sampler callback.

Functions

addEventProcessor
Link copied to clipboard
open fun addEventProcessor(@NotNull() eventProcessor: @NotNull() EventProcessor)
Adds an event processor
addIgnoredExceptionForType
Link copied to clipboard
open fun addIgnoredExceptionForType(@NotNull() exceptionType: @NotNull() Class<out Throwable>)
Adds exception type to the list of ignored exceptions.
addInAppExclude
Link copied to clipboard
open fun addInAppExclude(@NotNull() exclude: @NotNull() String)
Adds an inApp exclude
addInAppInclude
Link copied to clipboard
open fun addInAppInclude(@NotNull() include: @NotNull() String)
Adds an inApp include
addIntegration
Link copied to clipboard
open fun addIntegration(@NotNull() integration: @NotNull() Integration)
Adds an integration
addScopeObserver
Link copied to clipboard
open fun addScopeObserver(@NotNull() observer: @NotNull() IScopeObserver)
Adds a Scope observer
from
Link copied to clipboard
@NotNull()
open fun from(@NotNull() propertiesProvider: @NotNull() PropertiesProvider, @NotNull() logger: @NotNull() ILogger): @NotNull() SentryOptions
Creates SentryOptions from properties provided by a PropertiesProvider.
getOutboxPath
Link copied to clipboard
@Nullable()
open fun getOutboxPath(): @Nullable() String
Returns the outbox path if cacheDirPath is set
isAttachServerName
Link copied to clipboard
open fun isAttachServerName(): Boolean
Returns if SDK automatically resolves and attaches server name to events.
isAttachStacktrace
Link copied to clipboard
open fun isAttachStacktrace(): Boolean
Checks if the AttachStacktrace is enabled or not
isAttachThreads
Link copied to clipboard
open fun isAttachThreads(): Boolean
Checks if the AttachThreads is enabled or not
isDebug
Link copied to clipboard
open fun isDebug(): Boolean
Check if debug mode is ON Default is OFF
isEnableDeduplication
Link copied to clipboard
open fun isEnableDeduplication(): Boolean
Returns if event deduplication is turned on.
isEnableExternalConfiguration
Link copied to clipboard
open fun isEnableExternalConfiguration(): Boolean
Returns if loading properties from external sources is enabled.
isEnableNdk
Link copied to clipboard
open fun isEnableNdk(): Boolean
Check if NDK is ON or OFF Default is ON
isEnableScopeSync
Link copied to clipboard
open fun isEnableScopeSync(): Boolean
Returns if the Java to NDK Scope sync is enabled
isEnableSessionTracking
Link copied to clipboard
open fun isEnableSessionTracking(): Boolean
Returns if the automatic session tracking is enabled or not
isEnableUncaughtExceptionHandler
Link copied to clipboard
open fun isEnableUncaughtExceptionHandler(): Boolean
Checks if the default UncaughtExceptionHandlerIntegration is enabled or not.
isSendDefaultPii
Link copied to clipboard
open fun isSendDefaultPii(): Boolean
isTracingEnabled
Link copied to clipboard
open fun isTracingEnabled(): Boolean
Returns if tracing should be enabled.
setTag
Link copied to clipboard
open fun setTag(@NotNull() key: @NotNull() String, @NotNull() value: @NotNull() String)
Sets a tag that is applied to all events and transactions.

Properties

attachServerName
Link copied to clipboard
private open var attachServerName: Boolean
Automatically resolve server name.
attachStacktrace
Link copied to clipboard
private open var attachStacktrace: Boolean
When enabled, stack traces are automatically attached to all threads logged.
attachThreads
Link copied to clipboard
private open var attachThreads: Boolean
When enabled, all the threads are automatically attached to all logged events.
beforeBreadcrumb
Link copied to clipboard
@Nullable()
private open var beforeBreadcrumb: @Nullable() SentryOptions.BeforeBreadcrumbCallback
This function is called with an SDK specific breadcrumb object before the breadcrumb is addedto the scope.
beforeSend
Link copied to clipboard
@Nullable()
private open var beforeSend: @Nullable() SentryOptions.BeforeSendCallback
This function is called with an SDK specific event object and can return a modified eventobject or nothing to skip reporting the event
cacheDirPath
Link copied to clipboard
@Nullable()
private open var cacheDirPath: @Nullable() String
The cache dir.
cacheDirSize
Link copied to clipboard
private open var cacheDirSize: Int
The cache dir.
connectionTimeoutMillis
Link copied to clipboard
private open var connectionTimeoutMillis: Int
connection timeout in milliseconds.
debug
Link copied to clipboard
@Nullable()
private open var debug: @Nullable() Boolean
Turns debug mode on or off.
diagnosticLevel
Link copied to clipboard
@NotNull()
private open var diagnosticLevel: @NotNull() SentryLevel
minimum LogLevel to be used if debug is enabled
dist
Link copied to clipboard
@Nullable()
private open var dist: @Nullable() String
Sets the distribution.
distinctId
Link copied to clipboard
private open var distinctId: String
The distinct Id (generated Guid) used for session tracking
dsn
Link copied to clipboard
@Nullable()
private open var dsn: @Nullable() String
The DSN tells the SDK where to send the events to.
enableDeduplication
Link copied to clipboard
private open var enableDeduplication: Boolean
Enables event deduplication with DuplicateEventDetectionEventProcessor.
enableExternalConfiguration
Link copied to clipboard
private open var enableExternalConfiguration: Boolean
Enables loading additional options from external locations like {@code sentry.properties} fileor environment variables, system properties.
enableNdk
Link copied to clipboard
private open var enableNdk: Boolean
Turns NDK on or off.
enableScopeSync
Link copied to clipboard
private open var enableScopeSync: Boolean
Enable the Java to NDK Scope sync
enableSessionTracking
Link copied to clipboard
private open var enableSessionTracking: Boolean
Whether to enable or disable automatic session tracking.
enableUncaughtExceptionHandler
Link copied to clipboard
@Nullable()
private open var enableUncaughtExceptionHandler: @Nullable() Boolean
envelopeDiskCache
Link copied to clipboard
@NotNull()
private open var envelopeDiskCache: @NotNull() IEnvelopeCache
Reads and caches envelope files in the disk
envelopeReader
Link copied to clipboard
@NotNull()
private open var envelopeReader: @NotNull() IEnvelopeReader
Envelope reader interface
environment
Link copied to clipboard
@Nullable()
private open var environment: @Nullable() String
Sets the environment.
eventProcessors
Link copied to clipboard
@NotNull()
private val eventProcessors: @NotNull() List<EventProcessor>
Are callbacks that run for every event.
flushTimeoutMillis
Link copied to clipboard
private open var flushTimeoutMillis: Long
Controls how many seconds to wait before flushing down.
hostnameVerifier
Link copied to clipboard
@Nullable()
private open var hostnameVerifier: @Nullable() HostnameVerifier
HostnameVerifier for self-signed certificate trust*
ignoredExceptionsForType
Link copied to clipboard
@NotNull()
private val ignoredExceptionsForType: @NotNull() Set<Class<out Throwable>>
Exceptions that once captured will not be sent to Sentry as SentryEvent.
inAppExcludes
Link copied to clipboard
@NotNull()
private val inAppExcludes: @NotNull() List<String>
A list of string prefixes of module names that do not belong to the app, but rather third-partypackages.
inAppIncludes
Link copied to clipboard
@NotNull()
private val inAppIncludes: @NotNull() List<String>
A list of string prefixes of module names that belong to the app.
integrations
Link copied to clipboard
@NotNull()
private val integrations: @NotNull() List<Integration>
Code that provides middlewares, bindings or hooks into certain frameworks or environments,along with code that inserts those bindings and activates them.
logger
Link copied to clipboard
@NotNull()
private open var logger: @NotNull() ILogger
Logger interface to log useful debugging information if debug is enabled
maxAttachmentSize
Link copied to clipboard
private open var maxAttachmentSize: Long
max attachment size in bytes.
maxBreadcrumbs
Link copied to clipboard
private open var maxBreadcrumbs: Int
This variable controls the total amount of breadcrumbs that should be captured Default is 100
maxQueueSize
Link copied to clipboard
private open var maxQueueSize: Int
Max.
maxSpans
Link copied to clipboard
private open var maxSpans: Int
Maximum number of spans that can be atteched to single transaction.
proxy
Link copied to clipboard
@Nullable()
private open var proxy: @Nullable() SentryOptions.Proxy
When set, a proxy can be configured that should be used for outbound requests.
readTimeoutMillis
Link copied to clipboard
private open var readTimeoutMillis: Int
read timeout in milliseconds
release
Link copied to clipboard
@Nullable()
private open var release: @Nullable() String
Sets the release.
sampleRate
Link copied to clipboard
@Nullable()
private open var sampleRate: @Nullable() Double
Configures the sample rate as a percentage of events to be sent in the range of 0.0 to 1.0.
sdkVersion
Link copied to clipboard
@Nullable()
private open var sdkVersion: @Nullable() SdkVersion
SdkVersion object that contains the Sentry Client Name and its version
sendDefaultPii
Link copied to clipboard
private open var sendDefaultPii: Boolean
whether to send personal identifiable information along with events
sentryClientName
Link copied to clipboard
@Nullable()
private open var sentryClientName: @Nullable() String
Sentry client name used for the HTTP authHeader and userAgent egsentry.{language}.{platform}/{version} eg sentry.java.android/2.0.
serializer
Link copied to clipboard
@NotNull()
private open var serializer: @NotNull() ISerializer
Serializer interface to serialize/deserialize json events
serverName
Link copied to clipboard
private open var serverName: String
The server name used in the Sentry messages.
sessionTrackingIntervalMillis
Link copied to clipboard
private open var sessionTrackingIntervalMillis: Long
The session tracking interval in millis.
shutdownTimeout
Link copied to clipboard
private open var shutdownTimeout: Long
Controls how many seconds to wait before shutting down.
sslSocketFactory
Link copied to clipboard
@Nullable()
private open var sslSocketFactory: @Nullable() SSLSocketFactory
SSLSocketFactory for self-signed certificate trust *
tags
Link copied to clipboard
@NotNull()
private val tags: @NotNull() Map<String, @NotNull() String>
Tags applied to every event and transaction
tracesSampler
Link copied to clipboard
@Nullable()
private open var tracesSampler: @Nullable() SentryOptions.TracesSamplerCallback
This function is called by TracesSampler to determine if transaction is sampled - meantto be sent to Sentry.
tracesSampleRate
Link copied to clipboard
@Nullable()
private open var tracesSampleRate: @Nullable() Double
Configures the sample rate as a percentage of transactions to be sent in the range of 0.0 to1.0.
transportFactory
Link copied to clipboard
@NotNull()
private open var transportFactory: @NotNull() ITransportFactory
The transport factory creates instances of io.sentry.transport.ITransport - internalconstruct of the client that abstracts away the event sending.
transportGate
Link copied to clipboard
@NotNull()
private open var transportGate: @NotNull() ITransportGate
Implementations of this interface serve as gatekeepers that allow or disallow sending of theevents