Skip to content

Commit 1236ab7

Browse files
authored
chore(ios): Updates enableAppLaunchProfiling option name (#9616)
1 parent dbe7531 commit 1236ab7

File tree

2 files changed

+5
-5
lines changed
  • docs/platforms/apple/common/profiling
  • platform-includes/getting-started-config/basic-config

2 files changed

+5
-5
lines changed

docs/platforms/apple/common/profiling/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ SentrySDK.start { options in
5252
options.dsn = "___PUBLIC_DSN___"
5353
options.tracesSampleRate = 1.0 // tracing must be enabled for profiling
5454
options.profilesSampleRate = 1.0 // see also `profilesSampler` if you need custom sampling logic
55-
options.profileAppLaunches = true // experimental new feature to start profiling in the pre-main launch phase
55+
options.enableAppLaunchProfiling = true // experimental new feature to start profiling in the pre-main launch phase
5656
}
5757
```
5858

@@ -63,7 +63,7 @@ SentrySDK.start { options in
6363
options.dsn = @"___PUBLIC_DSN___";
6464
options.tracesSampleRate = @1.0; // tracing must be enabled for profiling
6565
options.profilesSampleRate = @1.0; // see also `profilesSampler` if you need custom sampling logic
66-
options.profileAppLaunches = YES; // experimental new feature to start profiling in the pre-main launch phase
66+
options.enableAppLaunchProfiling = YES; // experimental new feature to start profiling in the pre-main launch phase
6767
}];
6868
```
6969
@@ -85,7 +85,7 @@ _(New in version 8.21.0)_
8585
8686
Normally, a profile can only be taken during a trace span after the SDK has been initialized. Now, you can configure the SDK to automatically profile certain app launches.
8787
88-
To set up launch profiling, configure the sample rates for traces and profiles with `SentrySDK.startWithOptions` to determine if the subsequent app launch should be automatically profiled. This allows you to gather information on what is going on in your app even before `main` is called, making it easier to diagnose issues with slow app launches.
88+
To set up launch profiling, use the `enableAppLaunchProfiling` option and configure the sample rates for traces and profiles with `SentrySDK.startWithOptions` to determine if the subsequent app launch should be automatically profiled. This allows you to gather information on what is going on in your app even before `main` is called, making it easier to diagnose issues with slow app launches.
8989
9090
If you use `SentryOptions.tracesSampler` or `SentryOptions.profilesSampler`, it will be invoked after you call `SentrySDK.startWithOptions`, with `SentryTransactionContext.forNextAppLaunch` set to `true` indicating that it's evaluating a launch profile sampling decision. If instead you simply set `SentryOptions.tracesSampleRate` and `SentryOptions.profilesSampleRate`, those numerical rates will be used directly.
9191

platform-includes/getting-started-config/basic-config/apple.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ SentrySDK.start { options in
1515
options.enableMetricKit = true
1616
options.enableTimeToFullDisplayTracing = true
1717
options.swiftAsyncStacktraces = true
18-
options.profileAppLaunches = true
18+
options.enableAppLaunchProfiling = true
1919
}
2020
```
2121

@@ -30,7 +30,7 @@ SentrySDK.start { options in
3030
options.enableMetricKit = YES;
3131
options.enableTimeToFullDisplayTracing = YES;
3232
options.swiftAsyncStacktraces = YES;
33-
options.profileAppLaunches = YES;
33+
options.enableAppLaunchProfiling = YES;
3434
}];
3535
```
3636

0 commit comments

Comments
 (0)