Skip to main content
Version: 2.2.0-beta

Sentry

Description

Write message to Sentry.

Key features

Options

nametyperequireddefault value
dsnstringyes-
envstringno-
releasestringno-
cacheDirPathstringno-
enableExternalConfigurationbooleanno-
maxCacheItemsnumberno-
flushTimeoutMillsnumberno-
maxQueueSizenumberno-

dsn [string]

The DSN tells the SDK where to send the events to.

env [string]

specify the environment

release [string]

specify the release

cacheDirPath [string]

the cache dir path for caching offline events

enableExternalConfiguration [boolean]

if loading properties from external sources is enabled.

maxCacheItems [number]

The max cache items for capping the number of events Default is 30

flushTimeoutMillis [number]

Controls how many seconds to wait before flushing down. Sentry SDKs cache events from a background queue and this queue is given a certain amount to drain pending events Default is 15000 = 15s

maxQueueSize [number]

Max queue size before flushing events/envelopes to the disk

Example

  Sentry {
dsn = "https://xxx@sentry.xxx.com:9999/6"
enableExternalConfiguration = true
maxCacheItems = 1000
env = prod
}