Status: Development
This document defines semantic conventions for browser (web) instrumentations that emit events.
The event name MUST be browser.exception
.
This event describes an error or exception that occurs in a browser application.
Body fields:
Body Field | Type | Description | Examples | Requirement Level | Stability |
---|---|---|---|---|---|
column_number |
int | Column number where the error occurred. | 5 |
Recommended |
|
file_name |
string | Name of the file that generated the error. | foo.js |
Recommended |
|
line_number |
int | Line number where the error occurred. | 3 |
Recommended |
|
message |
string | The exception message. | Can't convert 'int' object to str implicitly |
Recommended |
|
stacktrace |
string | A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. | Exception in thread main java.lang.RuntimeException: Test exception at com.example.GenerateTrace.methodB(GenerateTrace.java:13) |
Recommended |
|
type |
string | The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. | TypeError ; java.net.ConnectException ; OSError |
Recommended |