Sets a string value to be associated with the given attribute name which will be visible in the Firebase Crashlytics console.
const crashlytics = getCrashlytics();await setAttribute(crashlytics, 'role', 'admin'); Copy
const crashlytics = getCrashlytics();await setAttribute(crashlytics, 'role', 'admin');
A crashlytics instance.
The name of the attribute to set.
A string value for the given attribute.
Sets a string value to be associated with the given attribute name which will be visible in the Firebase Crashlytics console.
Example