Skip to content
Merged
8 changes: 7 additions & 1 deletion docs/platforms/android/configuration/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,12 @@ Set this boolean to `false` to disable tracing for `OPTIONS` requests. This opti

## Profiling Options

<Alert title="Note">

Profiling requires SDK versions 8.7.0 or higher. Lower versions can use the legacy profiling.

</Alert>

<ConfigKey name="profile-session-sample-rate">

A number between `0` and `1`, controlling the percentage chance the session will be profiled. `0` represents 0% while `1` represents 100%. The default is null (disabled).
Expand All @@ -329,7 +335,7 @@ A boolean value that determines whether the app start process will be profiled.

## Legacy Profiling Options

<Alert title="Note">
<Alert title="Note">

SDK versions lower than 8.6.0 may use the legacy profiling using the following options.

Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/android/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Configuration is done via the application `AndroidManifest.xml`. Here's an examp

Verify that your app is sending events to Sentry by adding the following snippet, which includes an intentional error. You should see the error reported in Sentry within a few minutes.

```java {"onboardingOptions": {"profiling": "9-10", "profiling": "16-17"}}
```java {"onboardingOptions": {"profiling": "9-10, 16-17"}}
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import java.lang.Exception;
Expand All @@ -118,7 +118,7 @@ public class MyActivity extends AppCompatActivity {
}
```

```kotlin {"onboardingOptions": {"profiling": "8-9", "profiling": "15-16"}}
```kotlin {"onboardingOptions": {"profiling": "8-9, 15-16"}}
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import io.sentry.Sentry
Expand Down