Creates a new Node SDK instance.
Configuration options for this SDK.
Protected
Optional
Readonly
_dsnThe client Dsn, if specified in options. Without this Dsn, the SDK will be disabled.
Protected
_eventProtected
_integrationsArray of set up integrations.
Protected
_integrationsIndicates whether this client's integrations have been set up.
Protected
_numNumber of calls being processed
Protected
Readonly
_optionsOptions passed to the SDK.
Protected
_sessionProtected
Optional
Readonly
_transportOptional
Experimental
metricsA reference to a metrics aggregator
Note this is alpha API. It may experience breaking changes in the future.
Protected
_captureProtected
_captureProtected
_clearProtected
_isDetermine if the client is finished processing. Returns a promise because it will wait timeout
ms before saying
"no" (resolving to false
) in order to give the client a chance to potentially finish first.
Optional
timeout: numberThe time, in ms, after which to resolve to false
if the client is still busy. Passing 0
(or not
passing anything) will make the promise wait as long as it takes for processing to finish before resolving to
true
.
A promise which will resolve to true
if processing is already done or finishes before the timeout, and
false
otherwise
Protected
_isProtected
_prepareProtected
_processProtected
_processProcesses an event (either error or message) and sends it to Sentry.
This also adds breadcrumbs and context information to the event. However, platform specific meta data (such as the User's IP address) must be added by the SDK implementor.
A SyncPromise that resolves with the event or rejects in case event was/will not be send.
Protected
_sendProtected
_setupProtected
_updateOptional
level: Severity | SeverityLevelOptional
hint: EventHintOptional
scope: ScopeOptional
hint: BreadcrumbHintOptional
options: { includeReplay: boolean }Optional
level: Severity | SeverityLevelOptional
hint: EventHint
The Sentry Node SDK Client.
See