Content-Length: 358520 | pFad | http://github.com/getsentry/sentry-javascript/pull/16098/files

4B added jsdoc defaults by softwarebyze · Pull Request #16098 · getsentry/sentry-javascript · GitHub
Skip to content

added jsdoc defaults #16098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 28 additions & 10 deletions packages/core/src/types-hoist/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,25 @@ import type { BaseTransportOptions, Transport } from './transport';
export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOptions> {
/**
* Enable debug functionality in the SDK itself
* @default false
*/
debug?: boolean;

/**
* Specifies whether this SDK should send events to Sentry.
* Defaults to true.
* @default true
*/
enabled?: boolean;

/** Attaches stacktraces to pure capture message / log integrations */
/**
* Attaches stacktraces to pure capture message / log integrations
* @default false
*/
attachStacktrace?: boolean;

/**
* Send SDK Client Reports. When calling `Sentry.init()`, this option defaults to `true`.
* @default true
*/
sendClientReports?: boolean;

Expand All @@ -43,14 +48,18 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
*/
release?: string;

/** The current environment of your application (e.g. "production"). */
/**
* The current environment of your application (e.g. "production").
* @default "production"
*/
environment?: string;

/** Sets the distribution for all events */
dist?: string;

/**
* List of integrations that should be installed after SDK was initialized.
* @default []
*/
integrations: Integration[];

Expand Down Expand Up @@ -101,8 +110,9 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
initialScope?: CaptureContext;

/**
* The maximum number of breadcrumbs sent with events. Defaults to 100.
* The maximum number of breadcrumbs sent with events.
* Sentry has a maximum payload size of 1MB and any events exceeding that payload size will be dropped.
* @default 100
*/
maxBreadcrumbs?: number;

Expand All @@ -111,10 +121,14 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
*
* 0.0 = 0% chance of a given event being sent (send no events) 1.0 = 100% chance of a given event being sent (send
* all events)
* @default 1.0
*/
sampleRate?: number;

/** Maximum number of chars a single value can have before it will be truncated. */
/**
* Maximum number of chars a single value can have before it will be truncated.
* @default 250
*/
maxValueLength?: number;

/**
Expand All @@ -124,7 +138,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
* - `user`
* - `contexts`
* - `extra`
* Defaults to `3`. Set to `0` to disable.
* @default 3
*/
normalizeDepth?: number;

Expand All @@ -135,19 +149,21 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
* - `user`
* - `contexts`
* - `extra`
* Defaults to `1000`
* @default 1000
*/
normalizeMaxBreadth?: number;

/**
* A pattern for error messages which should not be sent to Sentry.
* By default, all errors will be sent.
* @default []
*/
ignoreErrors?: Array<string | RegExp>;

/**
* A pattern for transaction names which should not be sent to Sentry.
* By default, all transactions will be sent.
* @default []
*/
ignoreTransactions?: Array<string | RegExp>;

Expand All @@ -162,8 +178,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
* Controls if potentially sensitive data should be sent to Sentry by default.
* Note that this only applies to data that the SDK is sending by default
* but not data that was explicitly set (e.g. by calling `Sentry.setUser()`).
*
* Defaults to `false`.
* @default false
*
* NOTE: This option currently controls only a few data points in a selected
* set of SDKs. The goal for this option is to eventually control all sensitive
Expand All @@ -186,7 +201,8 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: any;
/**
* If logs support should be enabled. Defaults to false.
* If logs support should be enabled.
* @default false
*/
enableLogs?: boolean;
/**
Expand All @@ -208,6 +224,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
* By default, all errors will be sent.
*
* Requires the use of the `InboundFilters` integration.
* @default []
*/
allowUrls?: Array<string | RegExp>;

Expand All @@ -217,6 +234,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
* By default, all errors will be sent.
*
* Requires the use of the `InboundFilters` integration.
* @default []
*/
deniyUrls?: Array<string | RegExp>;

Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/getsentry/sentry-javascript/pull/16098/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy