Skip to content

Commit 78d4524

Browse files
committed
Add verbose check
1 parent f2a4728 commit 78d4524

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firebase-perf/src/main/java/com/google/firebase/perf/session/FirebasePerformanceSessionSubscriber.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class FirebasePerformanceSessionSubscriber(override val isDataCollectionEnabled:
3131
DebugEnforcementCheck.checkSession(currentPerfSession, "onSessionChanged")
3232

3333
// A [PerfSession] was created before a session was started.
34-
// Since these was gauge collection with app startup, it logs them to the updated session ID.
35-
if (currentPerfSession.isLegacy()) {
34+
// Since these were verbose gauge collection at app startup, it logs them to the updated session ID.
35+
if (currentPerfSession.isLegacy() && currentPerfSession.isVerbose) {
3636
GaugeManager.getInstance()
3737
.logGaugeMetadata(sessionDetails.sessionId, ApplicationProcessState.FOREGROUND)
3838
GaugeManager.getInstance()

0 commit comments

Comments
 (0)