Class BacktraceData


  • public class BacktraceData
    extends java.lang.Object
    Serializable Backtrace API data object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String agent
      Name of the client that is sending this error report.
      java.lang.String agentVersion
      Version of the android library
      java.util.Map<java.lang.String,​java.lang.Object> annotations
      Current host environment variables
      java.util.Map<java.lang.String,​java.lang.String> attributes
      Get built-in attributes
      java.lang.String[] classifiers
      Get a report classifiers.
      android.content.Context context
      Current application context
      java.lang.String lang
      Name of programming language/environment this error comes from.
      java.lang.String langVersion
      Version of programming language/environment this error comes from.
      java.lang.String mainThread
      Get a main thread name
      BacktraceReport report
      Current BacktraceReport
      java.util.Map<java.lang.String,​SourceCode> sourceCode  
      java.lang.String symbolication
      If sending a Proguard obfuscated callstack, we need to set this field to "proguard" so the backend knows
      long timestamp
      UTC timestamp in seconds
      java.lang.String uuid
      16 bytes of randomness in human readable UUID format server will reject request if uuid is already found
    • Constructor Summary

      Constructors 
      Constructor Description
      BacktraceData​(android.content.Context context, BacktraceReport report, java.util.Map<java.lang.String,​java.lang.Object> clientAttributes)
      Create instance of report data
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getAttachments()
      Get absolute paths to report attachments
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lang

        @SerializedName("lang")
        public final java.lang.String lang
        Name of programming language/environment this error comes from.
        See Also:
        Constant Field Values
      • agent

        @SerializedName("agent")
        public final java.lang.String agent
        Name of the client that is sending this error report.
        See Also:
        Constant Field Values
      • symbolication

        @SerializedName("symbolication")
        public java.lang.String symbolication
        If sending a Proguard obfuscated callstack, we need to set this field to "proguard" so the backend knows
      • uuid

        @SerializedName("uuid")
        public java.lang.String uuid
        16 bytes of randomness in human readable UUID format server will reject request if uuid is already found
      • timestamp

        @SerializedName("timestamp")
        public long timestamp
        UTC timestamp in seconds
      • langVersion

        @SerializedName("langVersion")
        public java.lang.String langVersion
        Version of programming language/environment this error comes from.
      • agentVersion

        @SerializedName("agentVersion")
        public java.lang.String agentVersion
        Version of the android library
      • attributes

        @SerializedName("attributes")
        public java.util.Map<java.lang.String,​java.lang.String> attributes
        Get built-in attributes
      • mainThread

        @SerializedName("mainThread")
        public java.lang.String mainThread
        Get a main thread name
      • classifiers

        @SerializedName("classifiers")
        public java.lang.String[] classifiers
        Get a report classifiers. If user send custom message, then variable should be null
      • annotations

        @SerializedName("annotations")
        public java.util.Map<java.lang.String,​java.lang.Object> annotations
        Current host environment variables
      • sourceCode

        @SerializedName("sourceCode")
        public java.util.Map<java.lang.String,​SourceCode> sourceCode
      • context

        public transient android.content.Context context
        Current application context
    • Constructor Detail

      • BacktraceData

        public BacktraceData​(android.content.Context context,
                             BacktraceReport report,
                             java.util.Map<java.lang.String,​java.lang.Object> clientAttributes)
        Create instance of report data
        Parameters:
        context - current application context
        report - current report
        clientAttributes - attributes which should be added to BacktraceData object
    • Method Detail

      • getAttachments

        public java.util.List<java.lang.String> getAttachments()
        Get absolute paths to report attachments
        Returns:
        paths to attachments