Skip to content

Commit 1c360dd

Browse files
revert exception.escaped changes
1 parent d52aa82 commit 1c360dd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/exceptions/exceptions-spans.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ This event describes a single exception.
3737
|---|---|---|---|---|---|
3838
| [`exception.message`](/docs/registry/attributes/exception.md) | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | `Conditionally Required` [1] | string | The exception message. | `Division by zero`; `Can't convert 'int' object to str implicitly` |
3939
| [`exception.type`](/docs/registry/attributes/exception.md) | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | `Conditionally Required` [2] | 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. | `java.net.ConnectException`; `OSError` |
40+
| [`exception.escaped`](/docs/registry/attributes/exception.md) | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>It's no longer recommended to record exceptions that are handled and do not escape the scope of a span. | `Opt-In` | boolean | Indicates that the exception is escaping the scope of the span. | |
4041
| [`exception.stacktrace`](/docs/registry/attributes/exception.md) | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | `Recommended` | 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\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5)` |
4142
| [`code.column.number`](/docs/registry/attributes/code.md) | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | `Opt-In` | int | The column number in `code.file.path` best representing the operation. It SHOULD point within the code unit named in `code.function.name`. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Line'. This constraint is imposed to prevent redundancy and maintain data integrity. | `16` |
4243
| [`code.file.path`](/docs/registry/attributes/code.md) | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | `Opt-In` | string | The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Function'. This constraint is imposed to prevent redundancy and maintain data integrity. | `/usr/local/MyApplication/content_root/app/index.php` |
4344
| [`code.function.name`](/docs/registry/attributes/code.md) | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | `Opt-In` | string | The method or function fully-qualified name without arguments. The value should fit the natural representation of the language runtime, which is also likely the same used within `code.stacktrace` attribute value. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Function'. This constraint is imposed to prevent redundancy and maintain data integrity. [3] | `com.example.MyHttpService.serveRequest`; `GuzzleHttp\Client::transfer`; `fopen` |
4445
| [`code.line.number`](/docs/registry/attributes/code.md) | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | `Opt-In` | int | The line number in `code.file.path` best representing the operation. It SHOULD point within the code unit named in `code.function.name`. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Line'. This constraint is imposed to prevent redundancy and maintain data integrity. | `42` |
45-
| [`exception.escaped`](/docs/registry/attributes/exception.md) | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>It's no longer recommended to record exceptions that are handled and do not escape the scope of a span. | `Opt-In` | boolean | Indicates that the exception is escaping the scope of the span. | |
4646

4747
**[1] `exception.message`:** Required if `exception.type` is not set, recommended otherwise.
4848

model/exceptions/events.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ groups:
1414
conditionally_required: Required if `exception.type` is not set, recommended otherwise.
1515
- ref: exception.stacktrace
1616
- ref: exception.escaped
17-
requirement_level: opt_in
1817
- ref: code.function.name
1918
requirement_level: opt_in
2019
- ref: code.file.path

0 commit comments

Comments
 (0)