Skip to content

Commit f2d1c34

Browse files
buenaflorclaude
andcommitted
style(extend-app-start): Remove explanatory comments in app start paths
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 85e23d8 commit f2d1c34

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

sentry-android-core/src/main/java/io/sentry/android/core/ActivityLifecycleIntegration.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,13 +1026,10 @@ private void onHeadlessAppStart() {
10261026

10271027
final @NotNull AppStartExtension extension = metrics.getAppStartExtension();
10281028
if (extension.isActive()) {
1029-
// Extended start still open: finish the eager txn instead of creating a second one.
10301029
extension.finishTransaction(endTime);
10311030
return;
10321031
}
10331032
if (!metrics.shouldSendStartMeasurements(true)) {
1034-
// The extension already created and finished this app.start (finishExtendedAppStart or the
1035-
// deadline); don't create a duplicate.
10361033
return;
10371034
}
10381035

@@ -1101,8 +1098,6 @@ private void onHeadlessAppStart() {
11011098
}
11021099
final @NotNull AppStartMetrics metrics = AppStartMetrics.getInstance();
11031100

1104-
// The earliest known start of this app start (process start when perf-v2 is available, else SDK
1105-
// init). It is available before the first activity because SentryPerformanceProvider sets it.
11061101
final @NotNull TimeSpan appStartTimeSpan =
11071102
metrics.getAppStartTimeSpan().hasStarted()
11081103
? metrics.getAppStartTimeSpan()
@@ -1112,8 +1107,6 @@ private void onHeadlessAppStart() {
11121107
return null;
11131108
}
11141109

1115-
// The app start txn inherits the sampling decision from app start profiling, then clears it so
1116-
// it doesn't leak to the later ui.load.
11171110
final @Nullable TracesSamplingDecision samplingDecision = metrics.getAppStartSamplingDecision();
11181111
metrics.setAppStartSamplingDecision(null);
11191112

0 commit comments

Comments
 (0)