Skip to content

Commit 96c5645

Browse files
committed
update sidebars
1 parent 4ad6fd7 commit 96c5645

File tree

9 files changed

+25
-149
lines changed

9 files changed

+25
-149
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Configuration
33
description: "Additional configuration options for the SDK."
4-
sidebar_order: 5
4+
sidebar_order: 20
55
---
66

77
<PageGrid />

docs/platforms/kotlin-multiplatform/configuration/options.mdx

Lines changed: 0 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ This variable controls the total amount of breadcrumbs that should be captured.
7575

7676
</ConfigKey>
7777

78-
<ConfigKey name="max-cache-items">
79-
80-
The maximum number of [envelopes](https://develop.sentry.dev/sdk/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`.
81-
82-
</ConfigKey>
83-
8478
<ConfigKey name="attach-stacktrace">
8579

8680
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.
@@ -91,93 +85,6 @@ Grouping in Sentry is different for events with stack traces and without. As a r
9185

9286
</ConfigKey>
9387

94-
<ConfigKey name="send-default-pii">
95-
96-
If this flag is enabled, certain personally identifiable information (PII) is added by active integrations. By default, no such data is sent.
97-
98-
<Note>
99-
100-
If you are using Sentry in your mobile app, read our [frequently asked questions about mobile data privacy](/security-legal-pii/security/mobile-privacy/) to assist with Apple App Store and Google Play app privacy details.
101-
102-
</Note>
103-
104-
This option is turned off by default.
105-
106-
If you enable this option, be sure to manually remove what you don't want to send using our features for managing [_Sensitive Data_](../../data-management/sensitive-data/).
107-
108-
</ConfigKey>
109-
110-
<ConfigKey name="server-name">
111-
112-
This option can be used to supply a "server name." When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
113-
114-
Most SDKs will attempt to auto-discover this value.
115-
116-
</ConfigKey>
117-
118-
<ConfigKey name="in-app-include">
119-
120-
A list of string prefixes of module names that belong to the app. This option takes precedence over `in-app-exclude`.
121-
122-
Sentry differentiates stack frames that are directly related to your application ("in application") from stack frames that come from other packages such as the standard library, frameworks, or other dependencies. The application package is automatically marked as `inApp`. The difference is visible in [sentry.io](https://sentry.io), where only the "in application" frames are displayed by default.
123-
124-
</ConfigKey>
125-
126-
<ConfigKey name="in-app-exclude">
127-
128-
A list of string prefixes of module names that do not belong to the app, but rather to third-party packages. Modules considered not part of the app will be hidden from stack traces by default.
129-
130-
This option can be overridden using <PlatformIdentifier name="in-app-include" />.
131-
132-
</ConfigKey>
133-
134-
<ConfigKey name="ignored-exceptions-for-type">
135-
136-
A list of exception types that will be filtered out before sending to Sentry.
137-
138-
</ConfigKey>
139-
140-
<ConfigKey name="max-request-body-size">
141-
142-
This parameter controls whether integrations should capture HTTP request bodies. It can be set to one of the following values:
143-
144-
- `never`: Request bodies are never sent.
145-
- `small`: Only small request bodies will be captured. The cutoff for small depends on the SDK (typically 4KB).
146-
- `medium`: Medium and small requests will be captured (typically 10KB).
147-
- `always`: The SDK will always capture the request body as long as Sentry can make sense of it.
148-
149-
</ConfigKey>
150-
151-
<ConfigKey name="enabled">
152-
153-
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.
154-
155-
</ConfigKey>
156-
157-
<ConfigKey name="send-client-reports">
158-
159-
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.
160-
161-
_(New in version 6.0.0)_
162-
163-
</ConfigKey>
164-
165-
## Integration Configuration
166-
167-
For many platform SDKs integrations can be configured alongside it. On some platforms that happen as part of the `init()` call, in some others, different patterns apply.
168-
169-
<ConfigKey name="integrations" />
170-
171-
In some SDKs, the integrations are configured through this parameter on library initialization. For more information, please see our documentation for a specific integration.
172-
173-
<ConfigKey name="default-integrations" notSupported={["java", "dart"]} />
174-
175-
This can be used to disable integrations that are added by default. When set to `false`, no default integrations are added.
176-
177-
<ConfigKey name="auto-enabling-integrations" supported={["python"]} />
178-
179-
This can be used to disable integrations that are enabled by default if the SDK detects that the corresponding framework or library is installed. When set to `false`, none of these integrations will be enabled by default, even if the corresponding framework/library is detected.
180-
18188
## Hooks
18289

18390
These options can be used to hook the SDK in various ways to customize the reporting of events.
@@ -203,36 +110,8 @@ The callback typically gets a second argument (called a "hint") which contains t
203110

204111
</ConfigKey>
205112

206-
## Transport Options
207-
208-
Transports are used to send events to Sentry. Transports can be customized to some degree to better support highly specific deployments.
209-
210-
<ConfigKey name="transport">
211-
212-
Switches out the transport used to send events. How this works depends on the SDK. It can, for instance, be used to capture events for unit-testing or to send it through some more complex setup that requires proxy authentication.
213-
214-
</ConfigKey>
215-
216-
<ConfigKey name="http-proxy">
217-
218-
When set, a proxy can be configured that should be used for outbound requests. This is also used for HTTPS requests unless a separate `https-proxy` is configured. However, not all SDKs support a separate HTTPS proxy. SDKs will attempt to default to the system-wide configured proxy, if possible. For instance, on Unix systems, the `http_proxy` environment variable will be picked up.
219-
220-
</ConfigKey>
221-
222-
<ConfigKey name="shutdown-timeout">
223-
224-
Controls how many seconds to wait before shutting down. Sentry SDKs send events from a background queue. This queue is given a certain amount to drain pending events. The default is SDK specific but typically around 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.
225-
226-
</ConfigKey>
227-
228113
## Tracing Options
229114

230-
<ConfigKey name="enable-tracing">
231-
232-
A boolean value, if true, transactions and trace data will be generated and captured. This will set the <PlatformIdentifier name="traces-sample-rate" /> to the recommended default of 1.0 if <PlatformIdentifier name="traces-sample-rate" /> is not defined. Note that <PlatformIdentifier name="traces-sample-rate" /> and <PlatformIdentifier name="traces-sampler" /> take precedence over this option.
233-
234-
</ConfigKey>
235-
236115
<ConfigKey name="traces-sample-rate">
237116

238117
A number between 0 and 1, controlling the percentage chance a given transaction will be sent to Sentry. (0 represents 0% while 1 represents 100%.) Applies equally to all transactions created in the app. Either this or <PlatformIdentifier name="traces-sampler" /> must be defined to enable tracing.
@@ -256,9 +135,3 @@ String entries do not have to be full matches, meaning the URL of a request is m
256135
If <PlatformIdentifier name="trace-propagation-targets" /> is not provided, trace data is attached to every outgoing request from the instrumented client.
257136

258137
</ConfigKey>
259-
260-
<ConfigKey name="trace-options-requests">
261-
262-
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.
263-
264-
</ConfigKey>

docs/platforms/kotlin-multiplatform/debug-symbols.mdx renamed to docs/platforms/kotlin-multiplatform/debug-symbols/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Upload Debug Symbols
33
description: "Learn more about how to upload debug symbols in Sentry Kotlin Multiplatform."
4-
sidebar_order: 4
4+
sidebar_order: 6
55
---
66

77
To symbolicate your stack traces, you need to provide debug information to Sentry.

docs/platforms/kotlin-multiplatform/features/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Features
3-
sidebar_order: 0
3+
sidebar_order: 1
44
description: "Learn about the features of Sentry's Kotlin Multiplatform SDK."
55
---
66

docs/platforms/kotlin-multiplatform/index.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Kotlin Multiplatform
33
caseStyle: camelCase
4-
fallbackPlatform: java
54
supportLevel: production
65
sdk: sentry.kotlin.kmp
76
categories:
@@ -41,6 +40,6 @@ To view and resolve the recorded error, log into [sentry.io](https://sentry.io)
4140
## Next Steps
4241

4342
- <PlatformLink to="/features">Learn more about Sentry's Kotlin Multiplatform SDK features</PlatformLink>
44-
- <PlatformLink to="/initialization-strategies">Get to know different ways initialize the SDK</PlatformLink>
43+
- <PlatformLink to="/initialization-stra">Get to know different ways initialize the SDK</PlatformLink>
4544
- <PlatformLink to="/configuration/gradle">Configuration options for the Kotlin Multiplatform Gradle Plugin</PlatformLink>
4645
- <PlatformLink to="/debug-symbols">Add readable stack traces to your errors</PlatformLink>

docs/platforms/kotlin-multiplatform/initialization-strategies.mdx

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Initialization Strategies
33
description: "Strategies for initializing the Kotlin Multiplatform SDK."
4-
sidebar_order: 3
4+
sidebar_order: 2
55
---
66

77
When it comes to initializing a Kotlin Multiplatform SDK, there are multiple strategies to consider:
@@ -16,9 +16,7 @@ When it comes to initializing a Kotlin Multiplatform SDK, there are multiple str
1616
Regardless of the initialization strategy you choose, it's important to place the initialization code at an early lifecycle stage of your application to ensure the SDK is set up correctly before it is used.
1717
Here are general guidelines for placing the initialization code for different platforms:
1818

19-
### Android
20-
21-
```kotlin {filename:MainActivity.kt}
19+
```kotlin {filename:MainActivity.kt}{tabTitle: androidApp}
2220
import your.kmp.app.initializeSentry
2321

2422
class YourApplication : Application() {
@@ -28,19 +26,25 @@ class YourApplication : Application() {
2826
}
2927
}
3028
```
31-
32-
### iOS
33-
34-
```swift {filename:AppDelegate.swift}
29+
```swift {tabTitle: iosApp}
3530
import shared
3631

3732
func application(
3833
_ application: UIApplication,
3934
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil
4035
) -> Bool {
41-
AppSetupKt.initializeSentry()
36+
SentrySetupKt.initializeSentry()
4237
return true
4338
}
39+
40+
// OR if you're using SwiftUI:
41+
42+
@main
43+
struct SwiftUIApp: App {
44+
init() {
45+
initializeSentry()
46+
}
47+
}
4448
```
4549

4650
## Native Platform Options
@@ -106,10 +110,10 @@ The shared initializer approach involves initializing the SDK in your shared cod
106110

107111
Using a shared initializer provides a single source of truth for your SDK's configuration options. This can simplify maintenance and debugging efforts, as you only need to update one codebase for all platforms.
108112

109-
To initialize the SDK, create a Kotlin file in your `commonMain` (such as `AppSetup.kt` or whatever you decide to call it), and write an initialization function. You'll then be able to call it in an early lifecycle stage in your platforms.
113+
To initialize the SDK, create a Kotlin file in your `commonMain` (such as `SentrySetup.kt` or whatever you decide to call it), and write an initialization function. You'll then be able to call it in an early lifecycle stage in your platforms.
110114

111115

112-
```kotlin {filename:AppSetup.kt}
116+
```kotlin {filename:SentrySetup.kt}
113117
import io.sentry.kotlin.multiplatform.Sentry
114118
import io.sentry.kotlin.multiplatform.SentryOptions
115119

@@ -133,7 +137,7 @@ If you need to use the respective platform's options directly, you should use th
133137

134138
### Common
135139

136-
```kotlin {filename:commonMain/AppSetup.kt}
140+
```kotlin {filename:commonMain/SentrySetup.kt}
137141
import io.sentry.kotlin.multiplatform.Context
138142

139143
expect fun initializeSentry()
@@ -142,7 +146,7 @@ expect fun initializeSentry()
142146
### androidMain
143147

144148

145-
```kotlin {filename:androidMain/AppSetup.kt}
149+
```kotlin {filename:androidMain/SentrySetup.kt}
146150
import io.sentry.kotlin.multiplatform.Sentry
147151
import io.sentry.kotlin.multiplatform.Context
148152

@@ -157,7 +161,7 @@ actual fun initializeSentry() {
157161
### iosMain
158162

159163

160-
```kotlin {filename:iosMain/AppSetup.kt}
164+
```kotlin {filename:iosMain/SentrySetup.kt}
161165
import io.sentry.kotlin.multiplatform.Sentry
162166
import io.sentry.kotlin.multiplatform.Context
163167

docs/platforms/kotlin-multiplatform/manual-setup/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Manual Setup
3-
sidebar_order: 1
3+
sidebar_order: 3
44
description: "Learn how to set up the SDK manually."
55
---
66

docs/platforms/kotlin-multiplatform/native-access-sdk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Native Access to the SDK
33
description: "How to directly access the SDK without the shared module."
4-
sidebar_order: 8
4+
sidebar_order: 4
55
---
66

77
If you need to access the SDK directly in your native platform without the shared module, you first need to change the dependency configuration from `implementation(...)` to `api(...)`:

docs/platforms/kotlin-multiplatform/usage/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Usage
33
description: "Use the SDK to manually capture errors and other events."
4-
sidebar_order: 10
4+
sidebar_order: 5
55
---
66

77
Sentry's SDK hooks into your runtime environment and automatically reports errors, uncaught exceptions, and unhandled rejections as well as other types of errors depending on the platform.

0 commit comments

Comments
 (0)