You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/kotlin-multiplatform/configuration/options.mdx
-127Lines changed: 0 additions & 127 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,12 +75,6 @@ This variable controls the total amount of breadcrumbs that should be captured.
75
75
76
76
</ConfigKey>
77
77
78
-
<ConfigKeyname="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
-
84
78
<ConfigKeyname="attach-stacktrace">
85
79
86
80
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
91
85
92
86
</ConfigKey>
93
87
94
-
<ConfigKeyname="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
-
<ConfigKeyname="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
-
<ConfigKeyname="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
-
<ConfigKeyname="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 <PlatformIdentifiername="in-app-include" />.
131
-
132
-
</ConfigKey>
133
-
134
-
<ConfigKeyname="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
-
<ConfigKeyname="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
-
<ConfigKeyname="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
-
<ConfigKeyname="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
-
<ConfigKeyname="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.
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
-
181
88
## Hooks
182
89
183
90
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
203
110
204
111
</ConfigKey>
205
112
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
-
<ConfigKeyname="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
-
<ConfigKeyname="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
-
<ConfigKeyname="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
-
228
113
## Tracing Options
229
114
230
-
<ConfigKeyname="enable-tracing">
231
-
232
-
A boolean value, if true, transactions and trace data will be generated and captured. This will set the <PlatformIdentifiername="traces-sample-rate" /> to the recommended default of 1.0 if <PlatformIdentifiername="traces-sample-rate" /> is not defined. Note that <PlatformIdentifiername="traces-sample-rate" /> and <PlatformIdentifiername="traces-sampler" /> take precedence over this option.
233
-
234
-
</ConfigKey>
235
-
236
115
<ConfigKeyname="traces-sample-rate">
237
116
238
117
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 <PlatformIdentifiername="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
256
135
If <PlatformIdentifiername="trace-propagation-targets" /> is not provided, trace data is attached to every outgoing request from the instrumented client.
257
136
258
137
</ConfigKey>
259
-
260
-
<ConfigKeyname="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.
Copy file name to clipboardExpand all lines: docs/platforms/kotlin-multiplatform/initialization-strategies.mdx
+18-14Lines changed: 18 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Initialization Strategies
3
3
description: "Strategies for initializing the Kotlin Multiplatform SDK."
4
-
sidebar_order: 3
4
+
sidebar_order: 2
5
5
---
6
6
7
7
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
16
16
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.
17
17
Here are general guidelines for placing the initialization code for different platforms:
@@ -106,10 +110,10 @@ The shared initializer approach involves initializing the SDK in your shared cod
106
110
107
111
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.
108
112
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.
Copy file name to clipboardExpand all lines: docs/platforms/kotlin-multiplatform/native-access-sdk.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Native Access to the SDK
3
3
description: "How to directly access the SDK without the shared module."
4
-
sidebar_order: 8
4
+
sidebar_order: 4
5
5
---
6
6
7
7
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(...)`:
Copy file name to clipboardExpand all lines: docs/platforms/kotlin-multiplatform/usage/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Usage
3
3
description: "Use the SDK to manually capture errors and other events."
4
-
sidebar_order: 10
4
+
sidebar_order: 5
5
5
---
6
6
7
7
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