Skip to content
Draft
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: 2 additions & 0 deletions docs/platforms/android/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ Configuration is done via the application `AndroidManifest.xml`. Here's an examp
<!-- ___PRODUCT_OPTION_START___ performance -->
<!-- Enable the performance API by setting a sample-rate, adjust in production env -->
<meta-data android:name="io.sentry.traces.sample-rate" android:value="1.0" />
<!-- Send app start data as a standalone transaction for more accurate measurements -->
<meta-data android:name="io.sentry.standalone-app-start-tracing.enable" android:value="true" />
<!-- ___PRODUCT_OPTION_END___ performance -->
<!-- ___PRODUCT_OPTION_START___ profiling -->
<!-- Enable profiling, adjust in production env. This is evaluated only once per session -->
Expand Down
18 changes: 18 additions & 0 deletions includes/apple-platform-getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ func application(_ application: UIApplication,
// Set tracesSampleRate to 1 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
options.tracesSampleRate = 1

// Send app start data as a standalone transaction for more accurate measurements.
options.experimental.enableStandaloneAppStartTracing = true
// ___PRODUCT_OPTION_END___ performance
// ___PRODUCT_OPTION_START___ profiling

Expand Down Expand Up @@ -153,6 +156,9 @@ func application(_ application: UIApplication,
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
options.tracesSampleRate = @1.f;

// Send app start data as a standalone transaction for more accurate measurements.
options.experimental.enableStandaloneAppStartTracing = YES;
// ___PRODUCT_OPTION_END___ performance
// ___PRODUCT_OPTION_START___ profiling

Expand Down Expand Up @@ -196,6 +202,9 @@ struct SwiftUIApp: App {
// Set tracesSampleRate to 1 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
options.tracesSampleRate = 1

// Send app start data as a standalone transaction for more accurate measurements.
options.experimental.enableStandaloneAppStartTracing = true
// ___PRODUCT_OPTION_END___ performance
// ___PRODUCT_OPTION_START___ profiling

Expand Down Expand Up @@ -240,6 +249,9 @@ func application(_ application: UIApplication,
// Set tracesSampleRate to 1 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
options.tracesSampleRate = 1

// Send app start data as a standalone transaction for more accurate measurements.
options.experimental.enableStandaloneAppStartTracing = true
// ___PRODUCT_OPTION_END___ performance
// ___PRODUCT_OPTION_START___ profiling

Expand Down Expand Up @@ -276,6 +288,9 @@ func application(_ application: UIApplication,
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
options.tracesSampleRate = @1.f;

// Send app start data as a standalone transaction for more accurate measurements.
options.experimental.enableStandaloneAppStartTracing = YES;
// ___PRODUCT_OPTION_END___ performance

// ___PRODUCT_OPTION_START___ profiling
Expand Down Expand Up @@ -313,6 +328,9 @@ struct SwiftUIApp: App {
// Set tracesSampleRate to 1 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
options.tracesSampleRate = 1

// Send app start data as a standalone transaction for more accurate measurements.
options.experimental.enableStandaloneAppStartTracing = true
// ___PRODUCT_OPTION_END___ performance
// ___PRODUCT_OPTION_START___ profiling

Expand Down
Loading