Skip to content

SentryClientOptions

Defined in: utils.ts:7

Options for createSentryClient() and createSentryRestClient().

optional baseUrl?: string

Defined in: utils.ts:11

Override base URL for testing. Defaults to https://sentry.io/api/0


optional errors?: ErrorSink

Defined in: utils.ts:17

Reports transport failures and unexpected 5xx. Defaults to a no-op.


optional fetch?: (input, init?) => Promise<Response>

Defined in: utils.ts:13

Override fetch for testing. Defaults to globalThis.fetch.

string | URL | Request

RequestInit

Promise<Response>


optional logger?: Logger

Defined in: utils.ts:15

Structured logger for request/response diagnostics. Defaults to a no-op.


token: string

Defined in: utils.ts:9

Sentry auth token.