Basic Options
dsn
The Data Source Name tells the SDK where to send events. Required for sending data to Sentry.
environment
The environment your application is running in.
release
The release version of your application. Used to track regressions and associate source maps.
dist
The distribution identifier. Used to disambiguate build or deployment variants.
Sampling Options
sampleRate
Sample rate for error events. Value between 0.0 (0%) and 1.0 (100%).
tracesSampleRate
Sample rate for transaction events. Value between 0.0 (0%) and 1.0 (100%).
tracesSampler
Dynamic sampling function for fine-grained control over trace sampling.
Event Processing
beforeSend
Called before sending error events. Can modify or drop events.
beforeSendTransaction
Called before sending transaction events.
beforeBreadcrumb
Called before adding a breadcrumb. Can modify or drop breadcrumbs.
Integrations
integrations
List of integrations to enable. See Integrations for details.
Data Limits
maxBreadcrumbs
Maximum number of breadcrumbs to keep.
maxValueLength
Maximum string length before truncation.
normalizeDepth
Maximum depth to traverse in objects.
normalizeMaxBreadth
Maximum properties/elements in arrays or objects.
Filtering
ignoreErrors
Errors matching these patterns won’t be sent.
ignoreTransactions
Transactions matching these patterns won’t be sent.
allowUrls
Only send errors from URLs matching these patterns.
denyUrls
Don’t send errors from URLs matching these patterns.
Tracing
tracePropagationTargets
Control which outgoing requests get tracing headers. See Propagation for details.
propagateTraceparent
Enable W3C
traceparent header propagation.Transport
transport
Transport factory function. Usually provided by the SDK.
transportOptions
Options for the transport. See Transport Options for details.
tunnel
Proxy endpoint for forwarding events.
Debug Options
debug
Enable debug logging.
enabled
Enable or disable the SDK.
Privacy
sendDefaultPii
Send personally identifiable information by default.
Server Options
serverName
Server or device name.
shutdownTimeout
Milliseconds to wait before shutdown.