File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
firebase-perf/src/main/java/com/google/firebase/perf/transport Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -104,15 +104,20 @@ private boolean isDeviceAllowedToSendNetworkEvents() {
104
104
return samplingBucketId < validNetworkSamplingBucketIdThreshold ;
105
105
}
106
106
107
- /** Returns whether device is allowed to send trace events based on trace sampling rate. */
107
+ /**
108
+ * Returns whether device is allowed to send Fragment screen trace events based on Fragment screen
109
+ * trace sampling rate.
110
+ */
108
111
private boolean isDeviceAllowedToSendFragmentScreenTraces () {
109
112
float validFragmentSamplingBucketIdThreshold = configResolver .getFragmentSamplingRate ();
110
113
return samplingBucketId < validFragmentSamplingBucketIdThreshold ;
111
114
}
112
115
113
116
/** Identifies if the {@link PerfMetric} is a Fragment screen trace */
114
117
private boolean isFragmentScreenTrace (PerfMetric metric ) {
115
- return metric .hasTraceMetric () && metric .getTraceMetric ().getName ().startsWith (Constants .SCREEN_TRACE_PREFIX ) && metric .getTraceMetric ().containsCustomAttributes (Constants .ACTIVITY_ATTRIBUTE_KEY );
118
+ return metric .hasTraceMetric ()
119
+ && metric .getTraceMetric ().getName ().startsWith (Constants .SCREEN_TRACE_PREFIX )
120
+ && metric .getTraceMetric ().containsCustomAttributes (Constants .ACTIVITY_ATTRIBUTE_KEY );
116
121
}
117
122
118
123
/**
You can’t perform that action at this time.
0 commit comments