File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
sentry-android-core/src/main/java/io/sentry/android/core Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Unreleased
4
+
5
+ ### Fixes
6
+
7
+ - Send UI Profiling app start chunk when it finishes ([ #4423 ] ( https://github.com/getsentry/sentry-java/pull/4423 ) )
8
+
3
9
## 8.13.2
4
10
5
11
### Fixes
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ public void startProfiler(
151
151
}
152
152
}
153
153
154
- private void start () {
154
+ private void initScopes () {
155
155
if ((scopes == null || scopes == NoOpScopes .getInstance ())
156
156
&& Sentry .getCurrentScopes () != NoOpScopes .getInstance ()) {
157
157
this .scopes = Sentry .getCurrentScopes ();
@@ -162,6 +162,10 @@ private void start() {
162
162
rateLimiter .addRateLimitObserver (this );
163
163
}
164
164
}
165
+ }
166
+
167
+ private void start () {
168
+ initScopes ();
165
169
166
170
// Debug.startMethodTracingSampling() is only available since Lollipop, but Android Profiler
167
171
// causes crashes on api 21 -> https://github.com/getsentry/sentry-java/issues/3392
@@ -252,6 +256,7 @@ public void stopProfiler(final @NotNull ProfileLifecycle profileLifecycle) {
252
256
}
253
257
254
258
private void stop (final boolean restartProfiler ) {
259
+ initScopes ();
255
260
try (final @ NotNull ISentryLifecycleToken ignored = lock .acquire ()) {
256
261
if (stopFuture != null ) {
257
262
stopFuture .cancel (true );
You can’t perform that action at this time.
0 commit comments