Try it free

Errors

  • Latest Dynatrace
  • Reference

Error user events capture various types of errors that occur during user interactions, including application crashes, ANR errors, JavaScript exceptions, CSP violations, and API-reported errors.

The following reference contains a list of error fields that have a well-defined semantic meaning in Dynatrace RUM.

Error fields

AttributeTypeDescriptionExamples
error.codelongexperimental
Display name: Error code
The code of the error. Set for iOS (NSError and Swift Error) and custom errors for C-based languages.
-1; 3072
error.has_custom_namebooleanexperimental
Display name: Custom error name set
If set to true, the error.name was reported via the Dynatrace API.
true
error.iduidexperimental
Display name: Error ID
A unique identifier for error grouping. The error.id is a 16-byte ID and hex-encoded if shown as a string.
357bf70f3c617cb34584b31bd4616af8
error.is_fatalbooleanexperimental
Display name: Error is fatal
If set to true, the error resulted in a fatal exit (for example, an unhandled exception).
true
error.namestringexperimental
Display name: Error name
A human-readable version of error.id. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
500: foo.bar/path/file; path/file:1:5
error.reasonstringexperimental
Display name: Error reason
The error reason. RUM JavaScript reports a pre-defined set of values. OneAgent for iOS reports nserror.domain.
no_network
error.sourcestringexperimental
Display name: Error source
The error source.
fetch; console
error.typestringexperimental
Display name: Error type
The main error type. This information is determined by Dynatrace RUM error grouping.
request

error.reason has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.

ValueDescriptionDisplay name
abortThe request was aborted by the user.Abort
cspThe request failed due to a Content Security Policy (CSP) violation.CSP
no_networkThe request failed because of no connectivity.No network
timeoutThe request timed out.Timeout

error.source has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.

ValueDescriptionDisplay name
consoleconsoleConsole
cordova_httpcordova_http
document_requestdocument_requestDocument request
exceptionexceptionException
fetchfetchFetch
promise_rejectionpromise_rejectionPromise rejection
xhrxhrXHR

error.type MUST be one of the following:

ValueDescriptionDisplay name
anrApplication Not Responding (ANR)Application not responding
crashCrashCrash
cspContent Security Policy (CSP) violationCSP
exceptionExceptionException
reportedCustom reported errorReported
requestFailed requestRequest

Application Not Responding (ANR)

Semantic conventions to describe Application Not Responding (ANR) events in Dynatrace RUM. These conventions are supported only for OneAgent for Mobile.

Query

This query searches for all ANR events.

fetch user.events
| filter characteristics.has_anr == true

ANR characteristics fields

AttributeTypeDescriptionExamples
characteristics.has_anrbooleanstable
Fixed value true.
true
characteristics.has_errorbooleanstable
Fixed value true.
true

ANR error fields

AttributeTypeDescriptionExamples
error.iduidexperimental
Display name: Error ID
A unique identifier for error grouping. The error.id is a 16-byte ID and hex-encoded if shown as a string.
357bf70f3c617cb34584b31bd4616af8
error.is_fatalbooleanexperimental
Display name: Error is fatal
Always true for ANR errors because the non-responsive app resulted in a fatal exit.
true
error.namestringexperimental
Display name: Error name
A human-readable version of error.id. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
500: foo.bar/path/file; path/file:1:5
error.typestringexperimental
Display name: Error type
Fixed value anr.
anr

ANR exception fields

AttributeTypeDescriptionExamples
exception.messagestringstable
Display name: Exception message
A message that describes the exception.
user request after error: Input dispatching timed out (f9276c4 com.example\/com.example.MainActivity (server) is not responding. Waited 10001ms for MotionEvent)
exception.stack_tracestringstable
Display name: Exception stack trace
The stack trace of the ANR error. The format depends on the technology and source.
"main" prio=5 tid=1 Sleeping\n | group="main" sCount=1 ucsCount=0 flags=1 obj=0x739329b8 self=0x7f3c8a64c7b0\n at java.lang.Thread.sleep(Native method)

Basic user event fields

The basic attributes for all user events are defined in the user event base model.

Content Security Policy (CSP) rule violation

Semantic conventions for W3C Content Security Policy (CSP) rule violations in Dynatrace RUM. These conventions are only supported for RUM JavaScript.

Query

This query searches for all violations of the Content Security Policy (CSP).

fetch user.events
| filter characteristics.has_csp_violation == true

CSP characteristics fields

AttributeTypeDescriptionExamples
characteristics.has_csp_violationbooleanstable
Fixed value true.
true
characteristics.has_errorbooleanstable
Fixed value true.
true

CSP error fields

AttributeTypeDescriptionExamples
error.iduidexperimental
Display name: Error ID
A unique identifier for error grouping. The error.id is a 16-byte ID and hex-encoded if shown as a string.
357bf70f3c617cb34584b31bd4616af8
error.is_fatalbooleanexperimental
Display name: Error is fatal
If set to true, the error resulted in a fatal exit (for example, an unhandled exception).
false
error.namestringexperimental
Display name: Error name
A human-readable version of error.id. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
500: foo.bar/path/file; path/file:1:5
error.reasonstringexperimental
Display name: Error reason
The error reason. RUM JavaScript reports a pre-defined set of values.
no_network
error.typestringexperimental
Display name: Error type
Fixed value csp.
csp

CSP rule violation report fields

AttributeTypeDescriptionExamples
csp.blocked_uri.fullstringstable
The absolute URI of the resource that was blocked from loading by the Content Security Policy. The field may also contain one of these special values instead of a URL: data, inline, blob, wasm-eval, eval, attachment, chrome-extension. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
https://www.foo.bar/resources/file.js; inline; blob
csp.blocked_uri.schemestringstable
The URI scheme component. This is extracted from csp.blocked_uri.full.
https
csp.blocked_uri.domainstringstable
The URI domain component. This is extracted from csp.blocked_uri.full.
www.foo.bar
csp.blocked_uri.pathstringstable
The URI path component. This is extracted from csp.blocked_uri.full.
/resources/file.js
csp.blocked_uri.querystringstable
The URI query component. This is extracted from csp.blocked_uri.full.
csp.blocked_uri.fragmentstringstable
The URI fragment component. This is extracted from csp.blocked_uri.full.
csp.blocked_uri.providerstringexperimental
The provider type for the host name of csp.blocked_uri.full. This information is determined by Dynatrace RUM resource detection.
third_party
csp.document_uri.fullstringstable
The full URI of the document in which the violation occurred. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
https://www.foo.bar/
csp.document_uri.schemestringstable
The URI scheme component. This is extracted from csp.document_uri.full.
https
csp.document_uri.domainstringstable
The URI domain component. This is extracted from csp.document_uri.full.
www.foo.bar
csp.document_uri.pathstringstable
The URI path component. This is extracted from csp.document_uri.full.
/
csp.document_uri.querystringstable
The URI query component. This is extracted from csp.document_uri.full.
csp.document_uri.fragmentstringstable
The URI fragment component. This is extracted from csp.document_uri.full.
csp.referrer.fullstringstable
The referrer of the document in which the violation occurred. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
https://www.foo.bar/
csp.dispositionstringstable
Indicates whether the Content Security Policy was enforced or only reported.
enforce
csp.violated_directivestringdeprecatedThis is a legacy alias of csp.effective_directive; some browsers may still report it.
The policy directive that was violated, as it appears in the policy.
default-src
csp.effective_directivestringstable
The directive whose enforcement caused the violation.
style-src
csp.original_policystringstable
The original policy as specified by the HTTP Content-Security-Policy or the HTTP Content-Security-Policy-Report-Only response header.
default-src 'none'; style-src cdn.foo.bar; report-to /_/csp-reports
csp.status_codelongstable
The HTTP status code of the resource on which the global object was instantiated.
200
csp.samplestringstable
If the directive's value contains the expression report-sample, this is set to the first 40 characters of the source file.
csp.line_numberlongstable
Line number where the violation occurred.
32
csp.column_numberlongstable
Column number where the violation occurred.
178
csp.source_file.fullstringstable
The full URL (from which the external file was loaded) that caused the violation. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
https://www.foo.bar/
csp.reporterstringstable
How the CSP violation was captured on site.
ReportingObserver
csp.stack_tracestringstable
The stack trace that RUM JavaScript collected for the CSP rule violation by firing an exception. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
@https://www.foo.bar/path/main.js:59:26 e@https://www.foo.bar/path/lib/1.1/lib.js:2:30315

csp.blocked_uri.provider MUST be one of the following:

ValueDescription
cdnCDN (content delivery network).
first_partyFirst-party provider.
third_partyThird-party provider.

csp.disposition MUST be one of the following:

ValueDescription
enforceThe HTTP Content-Security-Policy response header is used and the request was actually blocked.
reportThe HTTP Content-Security-Policy-Report-Only response header is used and the request was not blocked.

csp.reporter MUST be one of the following:

ValueDescription
ReportingObserverThe CSP violation was captured via the ReportingObserver API.
SecurityPolicyViolationEventThe CSP violation was captured via the SecurityPolicyViolationEvent API.

Basic user event fields

The basic attributes for all user events are defined in the user event base model.

Crash

Semantic conventions to describe crash events in Dynatrace RUM. These conventions are supported only for OneAgent for Mobile.

Query

This query searches for all crashes.

fetch user.events
| filter characteristics.has_crash == true

Crash characteristics fields

AttributeTypeDescriptionExamples
characteristics.has_crashbooleanstable
Fixed value true.
true
characteristics.has_errorbooleanstable
Fixed value true.
true
characteristics.is_api_reportedbooleanstable
Set to true for cross-platform (Flutter/React Native) crashes reported via the Dynatrace API.
true

Crash error fields

AttributeTypeDescriptionExamples
error.iduidexperimental
Display name: Error ID
A unique identifier for error grouping. The error.id is a 16-byte ID and hex-encoded if shown as a string.
357bf70f3c617cb34584b31bd4616af8
error.is_fatalbooleanexperimental
Display name: Error is fatal
If set to true, the error resulted in a fatal exit (for example, an unhandled exception).
true
error.namestringexperimental
Display name: Error name
A human-readable version of error.id. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
500: foo.bar/path/file; path/file:1:5
error.typestringexperimental
Display name: Error type
Fixed value crash.
crash

Crash exception fields

AttributeTypeDescriptionExamples
exception.crash_signal_namestringstable
The signal that was sent to the process.
SIGSEGV
exception.messagestringstable
Display name: Exception message
A message that describes the exception.
Division by zero
exception.stack_tracestringstable
Display name: Exception stack trace
The stack trace of the crash or a full crash report. The format depends on the technology and source.
java.lang.ArithmeticException: divide by zero\n at com.example.Foo.bar(Foo.kt:14); signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr 0000000000000000\nThread-18:\n #00 pc 000000000005cb90 /apex/com.android.runtime/lib64/bionic/libc.so (abort+192) (BuildId: eb58b4d427279994f00c0e1818477e4f)
exception.typestringstable
Display name: Exception type
The type of the exception, for example, its fully-qualified class name or the crash type of a native crash in an Android application.
java.net.ConnectException; OSError; char*

Basic user event fields

The basic attributes for all user events are defined in the user event base model.

Dynatrace API reported error

Semantic conventions to describe error events reported via the Dynatrace API. These conventions are supported only for OneAgent for Mobile.

Query

This query searches for all errors reported via the Dynatrace API.

fetch user.events
| filter characteristics.has_error AND characteristics.is_api_reported

Dynatrace API reported error characteristics fields

AttributeTypeDescriptionExamples
characteristics.has_errorbooleanstable
Fixed value true.
true
characteristics.is_api_reportedbooleanstable
Fixed value true.
true

Dynatrace API reported error fields

AttributeTypeDescriptionExamples
error.codelongexperimental
Display name: Error code
The code of the error. Set for iOS (NSError and Swift Error) and custom errors for C-based languages.
-1; 3072
error.has_custom_namebooleanexperimental
Display name: Custom error name set
If set to true, the error.name was reported via the Dynatrace API.
true
error.iduidexperimental
Display name: Error ID
A unique identifier for error grouping. The error.id is a 16-byte ID and hex-encoded if shown as a string.
357bf70f3c617cb34584b31bd4616af8
error.is_fatalbooleanexperimental
Display name: Error is fatal
If set to true, the error resulted in a fatal exit (for example, an unhandled exception).
true
error.namestringexperimental
Display name: Error name
A human-readable version of error.id. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
500: foo.bar/path/file; path/file:1:5
error.reasonstringexperimental
Display name: Error reason
The error reason. RUM JavaScript reports a pre-defined set of values. OneAgent for iOS reports nserror.domain.
no_network
error.typestringexperimental
Display name: Error type
Fixed value reported.
reported

Dynatrace API reported exceptions

The semantics for exceptions reported via the Dynatrace API are defined in the exception model.

Basic user event fields

The basic attributes for all user events are defined in the user event base model.

Exception

Semantic conventions to describe exceptions in Dynatrace RUM.

Query

This query searches for all exceptions.

fetch user.events
| filter characteristics.has_exception == true

Exception characteristics fields

AttributeTypeDescriptionExamples
characteristics.has_errorbooleanstable
Fixed value true.
true
characteristics.has_exceptionbooleanstable
Fixed value true.
true
characteristics.is_api_reportedbooleanstable
Additional characteristic: If set to true, the user event was sent using the Dynatrace API.
true

Exception error fields

AttributeTypeDescriptionExamples
error.has_custom_namebooleanexperimental
Display name: Custom error name set
If set to true, the error.name was reported via the Dynatrace API.
true
error.iduidexperimental
Display name: Error ID
A unique identifier for error grouping. The error.id is a 16-byte ID and hex-encoded if shown as a string.
357bf70f3c617cb34584b31bd4616af8
error.is_fatalbooleanexperimental
Display name: Error is fatal
If set to true, the error resulted in a fatal exit (for example, an unhandled exception).
true
error.namestringexperimental
Display name: Error name
A human-readable version of error.id. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
500: foo.bar/path/file; path/file:1:5
error.reasonstringexperimental
Display name: Error reason
The error reason. RUM JavaScript reports a pre-defined set of values. OneAgent for iOS reports nserror.domain.
no_network
error.sourcestringexperimental
Display name: Error source
The error source.
fetch; console
error.typestringexperimental
Display name: Error type
Fixed value exception.
exception

Exception fields

AttributeTypeDescriptionExamples
exception.column_numberlongstable
Display name: Exception column number
The column number where the exception happened. Only supported by RUM JavaScript, the value is reported as provided by the browser.
12304
exception.file.domainstringstable
Display name: Exception file domain
The URI domain component. This is extracted from exception.file.full.
www.foo.bar
exception.file.fullstringstable
Display name: Exception file
The full file location when the exception happened. Only supported by RUM JavaScript, the value is reported as provided by the browser. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
https://www.foo.bar/path/main.js; main.js; <anonymous>
exception.file.pathstringstable
Display name: Exception file path
The URI path component. This is extracted from exception.file.full.
/path/main.js
exception.file.providerstringexperimental
The provider type for the host name of exception.file.full. This information is determined by Dynatrace RUM resource detection.
third_party
exception.is_stack_trace_generatedbooleanstable
Display name: Exception is stack trace generated
If set to true, the captured stack trace was generated by Dynatrace RUM. This is only available if the user event contains a stack trace. Only supported by RUM JavaScript and OneAgent for Mobile with the Dynatrace Flutter extension.
false
exception.is_stack_trace_wrappedbooleanstable
If set to true, Dynatrace RUM wrapped the method that caused the exception. This is only available if the user event contains a stack trace. Only supported by RUM JavaScript and OneAgent for Mobile with the Dynatrace Flutter extension.
false
exception.line_numberlongstable
Display name: Exception line number
The line number where the exception happened. Only supported by RUM JavaScript, the value is reported as provided by the browser.
1401
exception.messagestringexperimental
Display name: Exception message
A message that describes the exception. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
Division by zero
exception.stack_tracestringstable
Display name: Exception stack trace
The stack trace of the exception. The format depends on the technology and source. While OneAgent formats stack traces to unify them across technologies, stack traces from an OpenTelemetry source are in the format they were sent to Dynatrace. Dynatrace can mask this field. To learn more, go to masking personal data in URIs.
@https://www.foo.bar/path/main.js:59:26 e@https://www.foo.bar/path/lib/1.1/lib.js:2:30315
exception.typestringexperimental
Display name: Exception type
The type of the exception, for example, its fully-qualified class name.
java.net.ConnectException; OSError

Basic user event fields

The basic attributes for all user events are defined in the user event base model.