Skip to content

Commit 102275c

Browse files
authored
ref(Mobile): Remove enableTracing mentions (#12561)
* removes enableTracing from Apple snippets * removes enableTracing from Mobile basic options
1 parent 13c8fda commit 102275c

File tree

6 files changed

+20
-40
lines changed

6 files changed

+20
-40
lines changed

docs/platforms/apple/common/configuration/options.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,6 @@ The callback typically gets a second argument (called a "hint") which contains t
242242

243243
## Tracing Options
244244

245-
<ConfigKey name="enable-tracing">
246-
247-
A boolean value, if true, transactions and trace data will be generated and captured. This will set the <PlatformIdentifier name="traces-sample-rate" /> to the recommended default of 1.0 if <PlatformIdentifier name="traces-sample-rate" /> is not defined. Note that <PlatformIdentifier name="traces-sample-rate" /> and <PlatformIdentifier name="traces-sampler" /> take precedence over this option.
248-
249-
</ConfigKey>
250-
251245
<ConfigKey name="traces-sample-rate">
252246

253247
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 <PlatformIdentifier name="traces-sampler" /> must be defined to enable tracing.

docs/platforms/apple/guides/ios/manual-setup.mdx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ func application(_ application: UIApplication,
3939
SentrySDK.start { options in
4040
options.dsn = "___PUBLIC_DSN___"
4141
options.debug = true // Enabled debug when first installing is always helpful
42+
43+
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
44+
// We recommend adjusting this value in production.
45+
options.tracesSampleRate = 1.0
4246
}
4347

4448
return true
@@ -54,10 +58,9 @@ func application(_ application: UIApplication,
5458
options.dsn = @"___PUBLIC_DSN___";
5559
options.debug = YES; // Enabled debug when first installing is always helpful
5660

57-
// Enable tracing to capture 100% of transactions for tracing.
58-
// Use 'options.tracesSampleRate' to set the sampling rate.
59-
// We recommend setting a sample rate in production.
60-
options.enableTracing = YES;
61+
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
62+
// We recommend adjusting this value in production.
63+
options.tracesSampleRate = @1.0;
6164
}];
6265

6366
return YES;
@@ -77,10 +80,9 @@ struct SwiftUIApp: App {
7780
options.dsn = "___PUBLIC_DSN___"
7881
options.debug = true // Enabled debug when first installing is always helpful
7982

80-
// Enable tracing to capture 100% of transactions for tracing.
81-
// Use 'options.tracesSampleRate' to set the sampling rate.
82-
// We recommend setting a sample rate in production.
83-
options.enableTracing = true
83+
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
84+
// We recommend adjusting this value in production.
85+
options.tracesSampleRate = 1.0
8486
}
8587
}
8688
}

docs/platforms/dart/configuration/options.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,6 @@ Switches out the transport used to send events. How this works depends on the SD
199199

200200
## Tracing Options
201201

202-
<ConfigKey name="enable-tracing">
203-
204-
A boolean value, if true, transactions and trace data will be generated and captured. This will set the <PlatformIdentifier name="traces-sample-rate" /> to the recommended default of 1.0 if <PlatformIdentifier name="traces-sample-rate" /> is not defined. Note that <PlatformIdentifier name="traces-sample-rate" /> and <PlatformIdentifier name="traces-sampler" /> take precedence over this option.
205-
206-
</ConfigKey>
207-
208202
<ConfigKey name="traces-sample-rate">
209203

210204
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 <PlatformIdentifier name="traces-sampler" /> must be defined to enable tracing.

docs/platforms/flutter/configuration/options.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,6 @@ Switches out the transport used to send events. How this works depends on the SD
234234

235235
## Tracing Options
236236

237-
<ConfigKey name="enable-tracing">
238-
239-
A boolean value, if true, transactions and trace data will be generated and captured. This will set the <PlatformIdentifier name="traces-sample-rate" /> to the recommended default of 1.0 if <PlatformIdentifier name="traces-sample-rate" /> is not defined. Note that <PlatformIdentifier name="traces-sample-rate" /> and <PlatformIdentifier name="traces-sampler" /> take precedence over this option.
240-
241-
</ConfigKey>
242-
243237
<ConfigKey name="traces-sample-rate">
244238

245239
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 <PlatformIdentifier name="traces-sampler" /> must be defined to enable tracing.

docs/platforms/react-native/configuration/options.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,6 @@ Controls how many seconds to wait before shutting down. Sentry SDKs send events
241241

242242
## Tracing Options
243243

244-
<ConfigKey name="enable-tracing">
245-
246-
A boolean value, if true, transactions and trace data will be generated and captured. This will set the <PlatformIdentifier name="traces-sample-rate" /> to the recommended default of 1.0 if <PlatformIdentifier name="traces-sample-rate" /> is not defined. Note that <PlatformIdentifier name="traces-sample-rate" /> and <PlatformIdentifier name="traces-sampler" /> take precedence over this option.
247-
248-
</ConfigKey>
249-
250244
<ConfigKey name="traces-sample-rate">
251245

252246
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 <PlatformIdentifier name="traces-sampler" /> must be defined to enable tracing.

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ func application(_ application: UIApplication,
1212
SentrySDK.start { options in
1313
options.dsn = "___PUBLIC_DSN___"
1414
options.debug = true // Enabled debug when first installing is always helpful
15+
16+
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
17+
// We recommend adjusting this value in production.
18+
options.tracesSampleRate = 1.0
1519
}
1620

1721
return true
@@ -27,10 +31,9 @@ func application(_ application: UIApplication,
2731
options.dsn = @"___PUBLIC_DSN___";
2832
options.debug = YES; // Enabled debug when first installing is always helpful
2933

30-
// Enable tracing to capture 100% of transactions for tracing.
31-
// Use 'options.tracesSampleRate' to set the sampling rate.
32-
// We recommend setting a sample rate in production.
33-
options.enableTracing = YES;
34+
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
35+
// We recommend adjusting this value in production.
36+
options.tracesSampleRate = @1.0;
3437
}];
3538

3639
return YES;
@@ -50,10 +53,9 @@ struct SwiftUIApp: App {
5053
options.dsn = "___PUBLIC_DSN___"
5154
options.debug = true // Enabled debug when first installing is always helpful
5255

53-
// Enable tracing to capture 100% of transactions for tracing.
54-
// Use 'options.tracesSampleRate' to set the sampling rate.
55-
// We recommend setting a sample rate in production.
56-
options.enableTracing = true
56+
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
57+
// We recommend adjusting this value in production.
58+
options.tracesSampleRate = 1.0
5759
}
5860
}
5961
}

0 commit comments

Comments
 (0)