Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/platforms/common/configuration/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ If the callback is not set, or it returns `undefined`, the default naming scheme

</PlatformSection>

<ConfigKey name="enabled" supported={["javascript", "node"]}>
<ConfigKey name="enabled" supported={["javascript", "node", "java"]}>

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.

Expand Down
16 changes: 16 additions & 0 deletions src/platforms/java/common/configuration/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,22 @@ SENTRY_DEBUG=true
sentry.debug=true
```

### Disable Sentry

To disable Sentry, use the `enabled` option:

```properties {tabTitle:sentry.properties}
enabled=false
```

```properties {tabTitle:environment variable}
SENTRY_ENABLED=false
```

```properties {tabTitle:system property}
sentry.enabled=false
```

## Configuring Timeouts

It’s possible to manually set the connection timeouts length with `connectionTimeoutMillis` and `readTimeoutMillis`:
Expand Down