Skip to content

Commit 2778f0d

Browse files
authored
Update Android cold start finish to first frame drawn (#11399)
updated when the cold start span is finished on Android (first frame drawn instead of Activity.onResume callback)
1 parent 75e041f commit 2778f0d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/platforms/android/tracing/instrumentation/automatic-instrumentation.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ _The Activity's instrumentation is enabled by default, but you may disable it by
2626
</application>
2727
```
2828

29-
The transaction finishes after each Activity's `onResume` method is executed.
29+
The transaction finishes after each Activity's first frame is drawn.
3030

3131
_The transaction finishes automatically, but you may disable it by setting:_
3232

@@ -131,7 +131,7 @@ The SDK differentiates between a cold and a warm start, but doesn't track hot st
131131

132132
The SDK sets the Span operation to `app.start.cold` for _Cold start_ and `app.start.warm` for _Warm start_.
133133

134-
The SDK uses the `SentryPerformanceProvider` (ContentProvider) creation time as the beginning of the app start and the first `Activity#onResume` call as the end.
134+
The SDK uses the `SentryPerformanceProvider` (ContentProvider) creation time as the beginning of the app start and the first frame drawn as the end.
135135

136136
<Note>
137137

@@ -278,7 +278,7 @@ If the view doesn't have the `id` assigned, the transaction won't be captured be
278278

279279
_(New in version 6.10.0)_
280280

281-
The SDK composes the transaction name out of the host `Activity` and the `tag` set by way of the `Modifier.sentryTag("<tag>")` of the `Composable` (for example, `LoginActivity.login_button`).
281+
The SDK composes the transaction name out of the host `Activity` and the `tag` set by way of the `Modifier.sentryTag("<tag>")` of the `Composable` (for example, `LoginActivity.login_button`).
282282
The transaction operation is set to `ui.action` plus the interaction type (one of `click`, `scroll`, or `swipe`).
283283

284284
```kotlin
@@ -299,7 +299,7 @@ fun LoginScreen() {
299299

300300
<Note>
301301

302-
If the `@Composable` doesn't have a `sentryTag` modifier applied, the transaction won't be captured because it can't be uniquely identified.
302+
If the `@Composable` doesn't have a `sentryTag` modifier applied, the transaction won't be captured because it can't be uniquely identified.
303303
To capture a transaction for the `@Composable`, you must either add a `sentryTag` modifier or enable automatic `@Composable` tagging.
304304

305305
</Note>
@@ -312,8 +312,8 @@ The Sentry Kotlin Compiler plugin is considered _experimental_. Give it a try an
312312

313313
</Note>
314314

315-
The <PlatformLink to="/enhance-errors/kotlin-compiler-plugin/">Sentry Kotlin Compiler Plugin</PlatformLink> can automatically enrich your `@Composable` functions during compilation with a tag name,
316-
based on the function name of your `@Composable`.
315+
The <PlatformLink to="/enhance-errors/kotlin-compiler-plugin/">Sentry Kotlin Compiler Plugin</PlatformLink> can automatically enrich your `@Composable` functions during compilation with a tag name,
316+
based on the function name of your `@Composable`.
317317
In order to use this feature, the Sentry Kotlin Compiler plugin needs to be applied to all modules, which contain `@Composable` elements.
318318

319319
```groovy {filename:app/build.gradle}

0 commit comments

Comments
 (0)