LogAttributes - DataDog/dd-sdk-android GitHub Wiki

object 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/ .

Properties

APPLICATION_PACKAGE

const val APPLICATION_PACKAGE: String

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

APPLICATION_VERSION

const val APPLICATION_VERSION: String

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

DATE

const val DATE: String

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

DB_INSTANCE

const val DB_INSTANCE: String

Database instance name. (String)

DB_OPERATION

const val DB_OPERATION: String

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

DB_STATEMENT

const val DB_STATEMENT: String

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

DB_USER

const val DB_USER: String

User that performs the operation. (String)

DD_SPAN_ID

const val DD_SPAN_ID: String

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.

See also
Logger.Builder.bundleWithTraceEnabled

DD_TRACE_ID

const val DD_TRACE_ID: String

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.

See also
Logger.Builder.bundleWithTraceEnabled

DURATION

const val DURATION: String

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

ENV

const val ENV: String

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

ERROR_FINGERPRINT

const val ERROR_FINGERPRINT: String

Specifies a custom error fingerprint for the supplied log. (String)

ERROR_KIND

const val ERROR_KIND: String

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.

ERROR_MESSAGE

const val ERROR_MESSAGE: String

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.

ERROR_SOURCE_TYPE

const val ERROR_SOURCE_TYPE: String

The source type of the error. This value is used to indicate the language or platform that the error originates from, such as Flutter, React Native, or the NDK. (String)

ERROR_STACK

const val ERROR_STACK: String

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.

HOST

const val HOST: String

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

HTTP_METHOD

const val HTTP_METHOD: String

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

HTTP_REFERRER

const val HTTP_REFERRER: String

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

HTTP_REQUEST_ID

const val HTTP_REQUEST_ID: String

The ID of the HTTP request. (String)

HTTP_STATUS_CODE

const val HTTP_STATUS_CODE: String

The HTTP response status code. (Number)

HTTP_URL

const val HTTP_URL: String

The URL of the HTTP request. (String)

HTTP_USERAGENT

const val HTTP_USERAGENT: String

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.

HTTP_VERSION

const val HTTP_VERSION: String

The version of HTTP used for the request. (String)

LOGGER_METHOD_NAME

const val LOGGER_METHOD_NAME: String

The class method name. (String)

LOGGER_NAME

const val LOGGER_NAME: String

The name of the logger. (String) This value is filled automatically by the Logger.

See also
Logger.Builder.setName

LOGGER_THREAD_NAME

const val LOGGER_THREAD_NAME: String

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

LOGGER_VERSION

const val LOGGER_VERSION: String

The version of the logger. (String) This value is filled automatically by the Logger.

MESSAGE

const val MESSAGE: String

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

NETWORK_CARRIER_ID

const val NETWORK_CARRIER_ID: String

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

See also
Logger.Builder.setNetworkInfoEnabled

NETWORK_CARRIER_NAME

const val NETWORK_CARRIER_NAME: String

The name of the Carrier attached to the SIM card. (String) This value is filled automatically by the Logger.

See also
Logger.Builder.setNetworkInfoEnabled

NETWORK_CLIENT_IP

const val NETWORK_CLIENT_IP: String

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

NETWORK_CLIENT_PORT

const val NETWORK_CLIENT_PORT: String

The port of the client that initiated the connection. (Number)

NETWORK_CONNECTIVITY

const val NETWORK_CONNECTIVITY: String

The connectivity status of the device. (String) This value is filled automatically by the Logger.

See also
Logger.Builder.setNetworkInfoEnabled

NETWORK_DOWN_KBPS

const val NETWORK_DOWN_KBPS: String

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

See also
Logger.Builder.setNetworkInfoEnabled

NETWORK_SIGNAL_STRENGTH

const val NETWORK_SIGNAL_STRENGTH: String

The bearer specific signal strength. (Number) This value is filled automatically by the Logger.

See also
Logger.Builder.setNetworkInfoEnabled

NETWORK_UP_KBPS

const val NETWORK_UP_KBPS: String

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

See also
Logger.Builder.setNetworkInfoEnabled

RUM_ACTION_ID

const val RUM_ACTION_ID: String

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.

See also
Logger.Builder.bundleWithRumEnabled

RUM_APPLICATION_ID

const val RUM_APPLICATION_ID: String

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

See also
Logger.Builder.bundleWithRumEnabled

RUM_SESSION_ID

const val RUM_SESSION_ID: String

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.

See also
Logger.Builder.bundleWithRumEnabled

RUM_VIEW_ID

const val RUM_VIEW_ID: String

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.

See also
Logger.Builder.bundleWithRumEnabled

SERVICE_NAME

const val SERVICE_NAME: String

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

See also
Configuration.Builder.service
Logger.Builder.setService

SOURCE

const val SOURCE: String

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

SOURCE_TYPE

const val SOURCE_TYPE: String

The source type of an error. Used by cross platform tools to indicate the language or platform that the error originates from, such as Flutter or React Native (String).

STATUS

const val STATUS: String

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

USR_ATTRIBUTES_GROUP

const val USR_ATTRIBUTES_GROUP: String

Group containing user properties.

See also
LogAttributes.USR_EMAIL
LogAttributes.USR_ID
LogAttributes.USR_NAME

USR_EMAIL

const val USR_EMAIL: String

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

See also
SdkCore.setUserInfo

USR_ID

const val USR_ID: String

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

See also
SdkCore.setUserInfo

USR_NAME

const val USR_NAME: String

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

See also
SdkCore.setUserInfo

VARIANT

const val VARIANT: String

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