Skip to content

Commit

Permalink
feat: Add stable exception attributes
Browse files Browse the repository at this point in the history
resolves #23
  • Loading branch information
AbhiPrasad committed Nov 29, 2024
1 parent 453a9c5 commit 1c7950d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions model/trace/exception/exception__escaped.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"key": "exception.escaped",
"brief": "SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span.",
"type": "boolean",
"pii": {
"key": "false"
},
"is_in_otel": true,
"example": true
}
10 changes: 10 additions & 0 deletions model/trace/exception/exception__stacktrace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"key": "exception.stacktrace",
"brief": "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.",
"type": "string",
"pii": {
"key": "false"
},
"is_in_otel": true,
"example": "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)"
}
10 changes: 10 additions & 0 deletions model/trace/exception/exception__type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"key": "exception.type",
"brief": "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.",
"type": "string",
"pii": {
"key": "false"
},
"is_in_otel": true,
"example": "OSError"
}

0 comments on commit 1c7950d

Please sign in to comment.