Skip to content

Commit d13605e

Browse files
committed
Rename userInfo in EventMetadata to additionalCustomKeys
1 parent 12142f5 commit d13605e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common/SessionReportingCoordinator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ private void persistEvent(
342342
MAX_CHAINED_EXCEPTION_DEPTH,
343343
isFatal);
344344
CrashlyticsReport.Session.Event finallizedEvent =
345-
addMetaDataToEvent(capturedEvent, eventMetadata.getUserInfo());
345+
addMetaDataToEvent(capturedEvent, eventMetadata.getAdditionalCustomKeys());
346346

347347
// Non-fatal, persistence write task we move to diskWriteWorker
348348
if (!isFatal) {

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/metadata/EventMetadata.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ package com.google.firebase.crashlytics.internal.metadata
1919
*
2020
* @property sessionId the sessionId to attach to the event.
2121
* @property timestamp the timestamp to attach to the event.
22-
* @property userInfo a [Map<String, String>] of key value pairs to attach to the event, in addition
23-
* to the global custom keys.
22+
* @property additionalCustomKeys a [Map<String, String>] of key value pairs to attach to the event,
23+
* in addition to the global custom keys.
2424
*/
2525
data class EventMetadata
2626
@JvmOverloads
2727
constructor(
2828
val sessionId: String,
2929
val timestamp: Long,
30-
val userInfo: Map<String, String> = mapOf()
30+
val additionalCustomKeys: Map<String, String> = mapOf()
3131
)

0 commit comments

Comments
 (0)