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/android/configuration/options.mdx
+26-24
Original file line number
Diff line number
Diff line change
@@ -301,54 +301,56 @@ Set this boolean to `false` to disable tracing for `OPTIONS` requests. This opti
301
301
302
302
</ConfigKey>
303
303
304
-
## Profiling Options
304
+
## UI Profiling Options
305
305
306
-
<ConfigKeyname="profiles-sample-rate">
306
+
<Alerttitle="Note">
307
307
308
-
A number between `0` and `1`, controlling the percentage chance a given profile will be sent to Sentry. (`0`represents 0% while `1` represents 100%.) Applies only to sampled transactions created in the app. Either this or <PlatformIdentifiername="profiles-sampler" /> must be defined to enable transaction profiling. Don't set it if you want to use <PlatformLinkto="/profiling/#continuous-profiling">Continuous Profiling</PlatformLink>.
308
+
UI Profiling requires SDK versions `8.7.0`or higher. Lower versions can use the <PlatformLinkto="/configuration/options/#transaction-based-profiling-options">transaction-based profiling</PlatformLink>.
309
309
310
-
</ConfigKey>
310
+
</Alert>
311
311
312
-
<ConfigKeyname="profiles-sampler">
312
+
<ConfigKeyname="profile-session-sample-rate">
313
313
314
-
A function responsible for determining the percentage chance a given profile will be sent to Sentry. It will automatically be passed information about the transaction and the context in which it's being created, and must return a number between `0`(0% chance of being sent) and `1`(100% chance of being sent). Can also be used for filtering profiles, by returning 0 for those that are unwanted. Either this or <PlatformIdentifiername="profiles-sample-rate" /> must be defined to enable transaction profiling. Don't set it if you want to use <PlatformLinkto="/profiling/#continuous-profiling">Continuous Profiling</PlatformLink>.
314
+
A number between `0` and `1`, controlling the percentage chance that the session will be profiled. `0`represents 0% while `1`represents 100%. The default is null (disabled).
315
315
316
316
</ConfigKey>
317
317
318
-
<ConfigKeyname="enable-app-start-profiling">
318
+
<ConfigKeyname="profile-lifecycle">
319
319
320
-
A boolean value that determines whether the app start process will be profiled. When true, the startup process, including ContentProviders, Application and first Activity creation, will be profiled. Note that <PlatformIdentifiername="profiles-sample-rate" /> or <PlatformIdentifiername="profiles-sampler" /> must be defined.
320
+
Whether the UI profiling lifecycle is controlled manually or based on the trace lifecycle. Possible values are:
321
+
322
+
-`manual`: **default** Profiler must be started and stopped through `Sentry.startProfiler()` and `Sentry.stopProfiler()` APIs
323
+
-`trace`: Profiler is started and stopped automatically whenever a sampled trace starts or finishes
321
324
322
325
</ConfigKey>
323
326
324
-
## Continuous Profiling Options
327
+
<ConfigKeyname="start-profiler-on-app-start">
325
328
326
-
<Alert>
329
+
A boolean value that determines whether the app start process will be profiled. When true, the startup process, including ContentProviders, Application, and first Activity creation, will be profiled. Note that <PlatformIdentifiername="profile-session-sample-rate" /> must be defined.
327
330
328
-
This feature is experimental and may have bugs.
331
+
- If profileLifecycle is set to `manual`: profiling is started automatically on startup and stopProfiler must be called manually whenever the app startup is deemed to be completed
332
+
- If profileLifecycle is set to `trace`: profiling is started automatically on startup, and will automatically be stopped when the root span that is associated with app startup ends
329
333
330
-
</Alert>
334
+
</ConfigKey>
331
335
332
-
<ConfigKeyname="profile-session-sample-rate">
336
+
## Transaction-Based Profiling Options
333
337
334
-
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). <PlatformIdentifiername="profiles-sampler" /> and <PlatformIdentifiername="profiles-sample-rate" /> must not be set to enable <PlatformLinkto="/profiling/#continuous-profiling">Continuous Profiling</PlatformLink>.
338
+
This mode will eventually be deprecated, and it's recommended to upgrade to <PlatformLinkto="/configuration/options/#ui-profiling-options">UI Profiling</PlatformLink>. The same behaviour, without the 30 seconds limitation, can be achieved with the `trace` <PlatformLinkto="/configuration/options/#profile-lifecycle">profile lifecycle</PlatformLink> option. In order to upgrade to UI Profiling, you also need to remove the transaction-based options from your configuration.
335
339
336
-
</ConfigKey>
340
+
<ConfigKeyname="profiles-sample-rate">
337
341
338
-
<ConfigKeyname="profile-lifecycle">
342
+
A number between `0` and `1`, controlling the percentage chance that a given profile will be sent to Sentry. (`0` represents 0% while `1` represents 100%.) Applies only to sampled transactions created in the app. Setting this option will enable the legacy profiler.
339
343
340
-
Whether the profiling lifecycle is controlled manually or based on the trace lifecycle. Possible values are:
344
+
</ConfigKey>
341
345
342
-
-`manual`: **default** Profiler must be started and stopped through `Sentry.startProfiler()` and `Sentry.stopProfiler()` APIs
343
-
-`trace`: Profiler is started and stopped automatically whenever a sampled trace starts and finishes
346
+
<ConfigKeyname="profiles-sampler">
344
347
345
-
</ConfigKey>
348
+
A function responsible for determining the percentage chance that a given profile will be sent to Sentry. It will automatically be passed information about the transaction and the context in which it's being created, and must return a number between `0` (0% chance of being sent) and `1` (100% chance of being sent). Can also be used for filtering profiles, by returning 0 for those that are unwanted. Either this or <PlatformIdentifiername="profiles-sample-rate" /> must be defined to enable transaction profiling. Setting this option will enable the legacy profiler.
346
349
347
-
<ConfigKeyname="start-profiler-on-app-start">
350
+
</ConfigKey>
348
351
349
-
A boolean value that determines whether the app start process will be profiled. When true, the startup process, including ContentProviders, Application and first Activity creation, will be profiled. Note that <PlatformIdentifiername="profile-session-sample-rate" /> must be defined.
352
+
<ConfigKeyname="enable-app-start-profiling">
350
353
351
-
- If profileLifecycle is set to `manual`: profiling is started automatically on startup and stopProfiler must be called manually whenever the app startup is deemed to be completed
352
-
- If profileLifecycle is set to `trace`: profiling is started automatically on startup, and will automatically be stopped when the root span that is associated with app startup ends
354
+
A boolean value that determines whether the app start process will be profiled. When true, the startup process, including ContentProviders, Application, and first Activity creation, will be profiled.
<!-- Set profiling lifecycle, can be `manual` (controlled through `Sentry.startProfiler()` and `Sentry.stopProfiler()`) or `trace` (automatically starts and stop a profile whenever a sampled trace starts and finishes)-->
0 commit comments