You must have SDK version v19.7.0 to use this feature.
To signal a custom error or event, use the Public API:
// Log an error FSR.Record.error(message, metadata); // Log another type of event FSR.Record.event(eventname, metadata);
message, which have the same interface and take two arguments:
eventname: (String) A short description or code representing the error. Max length: 256 characters.
metadata: (Object) A JSON object representing the message or error. The stringified copy of this object must be no larger than 10KB.
Updated over 3 years ago