Uma Achanta
Uma Achanta

Reputation: 3729

How to log the longer text in Firebase events?

I am working Firebase event log I was able to see my logs and wanted to print a unique id whose length is 42. but when I added this to event then its giving me following error

Value is too long; discarded. Value kind, name, value length: param, item_id, 42


Bundle bundle = new Bundle();
        bundle.putString(FirebaseAnalytics.Param.ITEM_ID, api_ID);
        bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, transaction_ID);
        bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, transaction_ID);
        MyApplication.getFirebaseAnalytics().logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);

I understand the error, suggest any other way to log the id (length is 42).

All answers will be appreciated.

Upvotes: 0

Views: 1825

Answers (1)

Chirag
Chirag

Reputation: 56925

As per the latest Firebase document, Param values can be up to 100 characters long.

Please make sure you are using the latest firebase library in gradle.

https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Param

Upvotes: 2

Related Questions