Skip to content

Commit 27f2c6a

Browse files
mydeaLms24
andcommitted
Apply suggestions from code review
Co-authored-by: Lukas Stracke <[email protected]>
1 parent e095df9 commit 27f2c6a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/platforms/javascript/common/options.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ This variable controls the total amount of breadcrumbs that should be captured.
8181

8282
<SdkOption name="attachStacktrace" type='boolean' defaultValue='false'>
8383

84-
When enabled, stack traces are automatically attached to all messages logged. Stack traces are always attached to exceptions; however, when this option is set, stack traces are also sent with messages. This option, for instance, means that stack traces appear next to all log messages.
84+
When enabled, stack traces are automatically attached to all messages logged. Stack traces are always attached to exceptions; however, when this option is set, stack traces are also sent with messages. This option, for instance, means that stack traces appear next to all messages captured with `Sentry.captureMessage()`.
8585

8686
Grouping in Sentry is different for events with stack traces and without. As a result, you will get new groups as you enable or disable this flag for certain events.
8787

@@ -155,7 +155,7 @@ Sentry.init({
155155

156156
<SdkOption name="maxValueLength" type='number' defaultValue='250'>
157157

158-
Maximum number of characters a single value can have before it will be truncated.
158+
Maximum number of characters every string property on events sent to Sentry can have before it will be truncated.
159159

160160
</SdkOption>
161161

@@ -191,7 +191,7 @@ For more advanced configuration options, see the documentation on the <PlatformL
191191

192192
</SdkOption>
193193

194-
<SdkOption name="integrations" type='Array<Integration>' defaultValue='[]'>
194+
<SdkOption name="integrations" type='Array<Integration> | (integrations: Array<Integration>) => Array<Integration>' defaultValue='[]'>
195195

196196
Pass additional integrations that should be initialized with the SDK. Integrations are pieces of code that can be used to extend the SDK's functionality. They can be used to add custom event processors, context providers, or to hook into the SDK's lifecycle.
197197

@@ -212,7 +212,7 @@ See <PlatformLink to="/configuration/integrations/#modifying-default-integration
212212
The JavaScript SDK uses a transport to send events to Sentry. On modern browsers, most transports use the browsers' fetch API to send events. Transports will drop an event if it fails to send due to a lack of connection.
213213

214214
<PlatformCategorySection supported={["browser"]}>
215-
In the browser, a fetch-based transport is used by default.
215+
In the browser, a `fetch`-based transport is used by default.
216216
</PlatformCategorySection>
217217

218218
<PlatformCategorySection supported={["server", "serverless"]}>
@@ -237,7 +237,7 @@ Options used to configure the transport. This is an object with the following po
237237

238238
<PlatformCategorySection supported={["browser", "desktop"]}>
239239
- `headers`: An object containing headers to be sent with every request. Used
240-
by the SDK's fetch and XHR transports. - `fetchOptions`: An object containing
240+
by the SDK's `fetch` and XHR transports. - `fetchOptions`: An object containing
241241
options to be passed to the `fetch` call. Used by the SDK's fetch transport.
242242
</PlatformCategorySection>
243243

0 commit comments

Comments
 (0)