Skip to content

Commit 4c0ca3a

Browse files
sfanahataShannon Anahata
andauthored
Updating Java options with missing defaults (#15217)
## DESCRIBE YOUR PR Adding more details to Java options since moving everything to SDKoption formatting Preview: https://sentry-docs-git-java-options-updates.sentry.dev/platforms/java/configuration/options/ ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [x] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) --------- Co-authored-by: Shannon Anahata <[email protected]>
1 parent 90f207d commit 4c0ca3a

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

docs/platforms/java/common/configuration/options.mdx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Learn more about [DSN utilization](/product/sentry-basics/dsn-explainer/#dsn-uti
2222

2323
</SdkOption>
2424

25-
<SdkOption name="debug" type="bool" defaultValue="false">
25+
<SdkOption name="debug" type="boolean" defaultValue="false">
2626

2727
Turns debug mode on or off. If debug is enabled SDK will attempt to print out useful debugging information if something goes wrong with sending the event. The default is always `false`. It's generally not recommended to turn it on in production, though turning `debug` mode on will not cause any safety concerns.
2828

2929
</SdkOption>
3030

31-
<SdkOption name="diagnosticLevel" type="enum">
31+
<SdkOption name="diagnosticLevel" type="enum" defaultValue="DEBUG">
3232

3333
Enabling `debug` mode makes the SDK generate as much diagnostic data as possible. However, if you'd prefer to lower the verbosity of the Sentry SDK diagnostics logs, configure this option to set the appropriate level:
3434

@@ -68,19 +68,19 @@ Configures the sample rate for error events, in the range of `0.0` to `1.0`. The
6868

6969
</SdkOption>
7070

71-
<SdkOption name="maxBreadcrumbs" type="int" defaultValue="100">
71+
<SdkOption name="maxBreadcrumbs" type="integer" defaultValue="100">
7272

7373
This variable controls the total amount of breadcrumbs that should be captured. This defaults to `100`, but you can set this to any number. However, you should be aware that Sentry has a [maximum payload size](https://develop.sentry.dev/sdk/data-model/envelopes/#size-limits) and any events exceeding that payload size will be dropped.
7474

7575
</SdkOption>
7676

77-
<SdkOption name="maxCacheItems" type="int" defaultValue="30">
77+
<SdkOption name="maxCacheItems" type="integer" defaultValue="30">
7878

7979
The maximum number of [envelopes](https://develop.sentry.dev/sdk/data-model/envelopes/) to keep in cache. The SDKs use envelopes to send data, such as events, attachments, user feedback, and sessions to sentry.io. An envelope can contain multiple items, such as an event with a session and two attachments. Depending on the usage of the SDK, the size of an envelope can differ. If the number of envelopes in the local cache exceeds `max-cache-items`, the SDK deletes the oldest envelope and migrates the sessions to the next envelope to maintain the integrity of your release health stats. The default is `30`.
8080

8181
</SdkOption>
8282

83-
<SdkOption name="attachStacktrace" type="bool" defaultValue="true">
83+
<SdkOption name="attachStacktrace" type="boolean" defaultValue="true">
8484

8585
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.
8686

@@ -90,7 +90,7 @@ Grouping in Sentry is different for events with stack traces and without. As a r
9090

9191
</SdkOption>
9292

93-
<SdkOption name="attachThreads" type="bool" defaultValue="false">
93+
<SdkOption name="attachThreads" type="boolean" defaultValue="false">
9494

9595
When enabled, information about all threads is attached to events, not just the crashing thread. This provides a more complete picture of the application state at the time of an error, including stack traces from all running threads.
9696

@@ -100,7 +100,7 @@ Note that enabling this option may increase the payload size of events sent to S
100100

101101
</SdkOption>
102102

103-
<SdkOption name="sendDefaultPii" type="bool" defaultValue="false">
103+
<SdkOption name="sendDefaultPii" type="boolean" defaultValue="false">
104104

105105
If this flag is enabled, certain personally identifiable information (PII) is added by active integrations. By default, no such data is sent.
106106

@@ -140,11 +140,11 @@ A list of exception types that will be filtered out before sending to Sentry.
140140

141141
</SdkOption>
142142

143-
<SdkOption name="maxRequestBodySize" type="enum">
143+
<SdkOption name="maxRequestBodySize" type="enum" defaultValue="NONE">
144144

145145
This parameter controls whether integrations should capture HTTP request bodies. It can be set to one of the following values:
146146

147-
- `never`: Request bodies are never sent.
147+
- `none`: **default** Request bodies are never sent.
148148
- `small`: Only small request bodies will be captured. The cutoff for small depends on the SDK (typically 4KB).
149149
- `medium`: Medium and small requests will be captured (typically 10KB).
150150
- `always`: The SDK will always capture the request body as long as Sentry can make sense of it.
@@ -154,29 +154,29 @@ Please consult the <PlatformLink to="/configuration/options/#sendDefaultPii">doc
154154

155155
</SdkOption>
156156

157-
<SdkOption name="enabled" type="bool" defaultValue="true">
157+
<SdkOption name="enabled" type="boolean" defaultValue="true">
158158

159159
Specifies whether this SDK should send events to Sentry. Defaults to `true`. Setting this to `enabled: false` doesn't prevent all overhead from Sentry instrumentation. To disable Sentry completely, depending on environment, call `Sentry.init` conditionally.
160160

161161
</SdkOption>
162162

163-
<SdkOption name="sendClientReports" type="bool" availableSince="6.0.0">
163+
<SdkOption name="sendClientReports" type="boolean" defaultValue="true" availableSince="6.0.0">
164164

165165
Set this boolean to `false` to disable sending of client reports. Client reports are a protocol feature that let clients send status reports about themselves to Sentry. They are currently mainly used to emit outcomes for events that were never sent.
166166

167167
_(New in version 6.0.0)_
168168

169169
</SdkOption>
170170

171-
<SdkOption name="forceInit" type="bool" defaultValue="false" availableSince="8.0.0">
171+
<SdkOption name="forceInit" type="boolean" defaultValue="false" availableSince="8.0.0">
172172

173173
Set this boolean to `true` to force a call to `Sentry.init` to re-initialize the SDK, even if the SDK has already been initialized by a high priority integration.
174174

175175
_(New in version 8.0.0)_
176176

177177
</SdkOption>
178178

179-
<SdkOption name="enableBackpressureHandling" type="bool" availableSince="7.1.0">
179+
<SdkOption name="enableBackpressureHandling" type="boolean" defaultValue="true" availableSince="7.1.0">
180180

181181
Set this boolean to `false` to disable automatic downsampling of transactions while the system is under load. The `tracesSampleRate` is halved for every failing health check up to 10 times, (roughly 0.001% of the original `tracesSampleRate`). Any positive health check will reset `tracesSampleRate` to its original value. Health checks run in the background every 10 seconds, checking for queue drops and rate limiting. Note: Starting with version 7.8.0 backpressure handling has changed from opt-in to opt-out.
182182

@@ -241,7 +241,7 @@ When set, a proxy can be configured that should be used for outbound requests. T
241241

242242
</SdkOption>
243243

244-
<SdkOption name="shutdownTimeoutMillis" type="int" defaultValue="2000">
244+
<SdkOption name="shutdownTimeoutMillis" type="integer" defaultValue="2000">
245245

246246
Controls how many seconds to wait before shutting down. The SDK sends events from a background queue. This queue is given a certain amount to drain pending events. The default is two seconds. Setting this value too low may cause problems for sending events from command line applications. Setting the value too high will cause the application to block for a long time for users experiencing network connectivity problems.
247247

@@ -273,13 +273,13 @@ If <PlatformIdentifier name="tracePropagationTargets" /> is not provided, trace
273273

274274
</SdkOption>
275275

276-
<SdkOption name="propagateTraceparent" type="bool" defaultValue="false" availableSince="8.22.0">
276+
<SdkOption name="propagateTraceparent" type="boolean" defaultValue="false" availableSince="8.22.0">
277277

278278
Controls whether the SDK should propagate the W3C `traceparent` HTTP header alongside the `sentry-trace` and `baggage` headers for distributed tracing. This option defaults to `false` and is available starting from SDK version 8.22.0.
279279

280280
</SdkOption>
281281

282-
<SdkOption name="traceOptionsRequests" type="bool">
282+
<SdkOption name="traceOptionsRequests" type="boolean" defaultValue="true">
283283

284284
Set this boolean to `false` to disable tracing for `OPTIONS` requests. This options default value will likely be changed in the next major version, meaning you will have to set it to `true` if you want to keep tracing `OPTIONS` requests.
285285

0 commit comments

Comments
 (0)