Package 

Object LogAttributes


  • 
    public class LogAttributes
    
                        

    This class holds constant log attribute keys.

    You can find more information on Datadog's log attributes at https://docs.datadoghq.com/logs/processing/attributes_naming_convention/ .

    • Method Detail

      • getAPPLICATION_PACKAGE

         final String getAPPLICATION_PACKAGE()

        The package name of the application. (String) This value is extracted from your application's manifest and filled automatically by the Logger.

      • getAPPLICATION_VERSION

         final String getAPPLICATION_VERSION()

        The human readable version of the application. (String) This value is extracted from your application's manifest and filled automatically by the Logger.

      • getENV

         final String getENV()

        The custom environment name. (Number) This value is filled automatically by the Logger.

      • getDATE

         final String getDATE()

        The date when the log is fired as an ISO-8601 String. (String) This value is filled automatically by the Logger.

      • getDB_OPERATION

         final String getDB_OPERATION()

        The operation that was performed (“query”, “update”, “delete”,…). (String)

      • getDB_STATEMENT

         final String getDB_STATEMENT()

        A database statement for the given database type. (String) E.g., for mySQL: "SELECT * FROM wuser_table";

      • getDB_USER

         final String getDB_USER()

        User that performs the operation. (String)

      • getDD_SPAN_ID

         final String getDD_SPAN_ID()

        The id of the active Span. (String) This lets the Trace and Logs features to be linked. This value is filled automatically by the Logger.

      • getDD_TRACE_ID

         final String getDD_TRACE_ID()

        The id of the active Trace. (String) This lets the Trace and Logs features to be linked. This value is filled automatically by the Logger.

      • getDURATION

         final String getDURATION()

        A duration of any kind in nanoseconds. (Number) E.g.: HTTP response time, database query time, latency, etc.

      • getERROR_KIND

         final String getERROR_KIND()

        The error type or kind (or code is some cases). (String) This value is filled automatically by the Logger when you pass in a Throwable.

      • getERROR_MESSAGE

         final String getERROR_MESSAGE()

        A concise, human-readable, one-line message explaining the event (String) This value is filled automatically by the Logger when you pass in a Throwable.

      • getERROR_STACK

         final String getERROR_STACK()

        The stack trace or the complementary information about the error (String) This value is filled automatically by the Logger when you pass in a Throwable.

      • getHOST

         final String getHOST()

        The name of the originating host as defined in metrics. (String) This value is automatically filled by the Datadog framework.

      • getHTTP_METHOD

         final String getHTTP_METHOD()

        Indicates the desired action to be performed for a given resource. (String)

      • getHTTP_REFERRER

         final String getHTTP_REFERRER()

        HTTP header field that identifies the address of the web page that linked to the resource being requested. (String)

      • getHTTP_USERAGENT

         final String getHTTP_USERAGENT()

        The User-Agent as it is sent (raw format). (String) This value is automatically filled by the Datadog framework, using the System's "http.agent" property.

      • getLOGGER_THREAD_NAME

         final String getLOGGER_THREAD_NAME()

        The name of the current thread when the log is fired. (String) This value is filled automatically by the Logger.

      • getMESSAGE

         final String getMESSAGE()

        The body of the log entry. (String) This value is filled automatically by the Logger.

      • getNETWORK_CARRIER_ID

         final String getNETWORK_CARRIER_ID()

        The unique id of the Carrier attached to the SIM card. (Number) This value is filled automatically by the Logger.

      • getNETWORK_CLIENT_IP

         final String getNETWORK_CLIENT_IP()

        The IP address of the client that initiated the TCP connection. (String) This value is automatically filled by the Datadog framework.

      • getNETWORK_DOWN_KBPS

         final String getNETWORK_DOWN_KBPS()

        The downstream bandwidth for the current network in Kbps. (Number) This value is filled automatically by the Logger.

      • getNETWORK_UP_KBPS

         final String getNETWORK_UP_KBPS()

        The upstream bandwidth for the current network in Kbps. (Number) This value is filled automatically by the Logger.

      • getRUM_APPLICATION_ID

         final String getRUM_APPLICATION_ID()

        The RUM Application ID. (String) This lets the RUM and Logs features to be linked. This value is filled automatically by the Logger.

      • getRUM_SESSION_ID

         final String getRUM_SESSION_ID()

        The id of the active RUM session. (String) This lets the RUM and Logs features to be linked. This value is filled automatically by the Logger.

      • getRUM_VIEW_ID

         final String getRUM_VIEW_ID()

        The id of the active RUM View. (String) This lets the RUM and Logs features to be linked. This value is filled automatically by the Logger.

      • getRUM_ACTION_ID

         final String getRUM_ACTION_ID()

        The id of the active RUM Action. (String) This lets the RUM and Logs features to be linked. This value is filled automatically by the Logger.

      • getSERVICE_NAME

         final String getSERVICE_NAME()

        The name of the application or service generating the log events. (String) This value is filled automatically by the Logger.

      • getSOURCE

         final String getSOURCE()

        The technology from which the log originated. (String) This value is filled automatically by the Logger.

      • getSTATUS

         final String getSTATUS()

        The level/severity of a log. (String) This value is filled automatically by the Logger.

      • getUSR_ID

         final String getUSR_ID()

        The user identifier. (String) This value is filled automatically by the Logger.

      • getUSR_NAME

         final String getUSR_NAME()

        The user friendly name. (String) This value is filled automatically by the Logger.

      • getVARIANT

         final String getVARIANT()

        The application variant. (String) This value is filled automatically by the Logger.