@@ -59,7 +59,8 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
59
59
integrations : Integration [ ] ;
60
60
61
61
/**
62
- * Transport object that should be used to send events to Sentry
62
+ * A function that takes transport options and returns the Transport object which is used to send events to Sentry.
63
+ * The function is invoked internally when the client is initialized.
63
64
*/
64
65
transport : ( transportOptions : TO ) => Transport ;
65
66
@@ -96,7 +97,12 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
96
97
*/
97
98
maxBreadcrumbs ?: number ;
98
99
99
- /** A global sample rate to apply to all events (0 - 1). */
100
+ /**
101
+ * A global sample rate to apply to all events.
102
+ *
103
+ * 0.0 = 0% chance of a given event being sent (send no events) 1.0 = 100% chance of a given event being sent (send
104
+ * all events)
105
+ */
100
106
sampleRate ?: number ;
101
107
102
108
/** Maximum number of chars a single value can have before it will be truncated. */
@@ -149,7 +155,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
149
155
/**
150
156
* Set of metadata about the SDK that can be internally used to enhance envelopes and events,
151
157
* and provide additional data about every request.
152
- * * /
158
+ */
153
159
_metadata ?: SdkMetadata ;
154
160
155
161
/**
@@ -207,7 +213,6 @@ export interface Options<TO extends BaseTransportOptions = BaseTransportOptions>
207
213
/**
208
214
* If this is set to false, default integrations will not be added, otherwise this will internally be set to the
209
215
* recommended default integrations.
210
- * TODO: We should consider changing this to `boolean | Integration[]`
211
216
*/
212
217
defaultIntegrations ?: false | Integration [ ] ;
213
218
@@ -219,7 +224,9 @@ export interface Options<TO extends BaseTransportOptions = BaseTransportOptions>
219
224
integrations ?: Integration [ ] | ( ( integrations : Integration [ ] ) => Integration [ ] ) ;
220
225
221
226
/**
222
- * Transport object that should be used to send events to Sentry
227
+ * A function that takes transport options and returns the Transport object which is used to send events to Sentry.
228
+ * The function is invoked internally during SDK initialization.
229
+ * By default, the SDK initializes its default transports.
223
230
*/
224
231
transport ?: ( transportOptions : TO ) => Transport ;
225
232
0 commit comments