File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
sentry-android-core/src/main/java/io/sentry/android/core Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
* Feat: Add datasource tracing with P6Spy (#1784 )
6
6
* Fix: ActivityFramesTracker does not throw if Activity has not been added (#1782 )
7
+ * Fix: PerformanceAndroidEventProcessor uses up to date isTracingEnabled set on Configuration callback (#1786 )
7
8
8
9
## 5.2.4
9
10
Original file line number Diff line number Diff line change 19
19
/** Event Processor responsible for adding Android metrics to transactions */
20
20
final class PerformanceAndroidEventProcessor implements EventProcessor {
21
21
22
- private final boolean tracingEnabled ;
23
-
24
22
private boolean sentStartMeasurement = false ;
25
23
26
24
private final @ NotNull ActivityFramesTracker activityFramesTracker ;
25
+ private final @ NotNull SentryAndroidOptions options ;
27
26
28
27
PerformanceAndroidEventProcessor (
29
28
final @ NotNull SentryAndroidOptions options ,
30
29
final @ NotNull ActivityFramesTracker activityFramesTracker ) {
31
- tracingEnabled = options . isTracingEnabled ( );
30
+ this . options = Objects . requireNonNull ( options , "SentryAndroidOptions is required" );
32
31
this .activityFramesTracker =
33
32
Objects .requireNonNull (activityFramesTracker , "ActivityFramesTracker is required" );
34
33
}
@@ -37,7 +36,7 @@ final class PerformanceAndroidEventProcessor implements EventProcessor {
37
36
public synchronized @ NotNull SentryTransaction process (
38
37
@ NotNull SentryTransaction transaction , @ Nullable Object hint ) {
39
38
40
- if (!tracingEnabled ) {
39
+ if (!options . isTracingEnabled () ) {
41
40
return transaction ;
42
41
}
43
42
You can’t perform that action at this time.
0 commit comments