Skip to content

Commit 9ac0cb4

Browse files
authored
Add error.* fields to spec (#35)
1 parent 2fc7f71 commit 9ac0cb4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

spec/spec.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,24 @@
104104
"required": false,
105105
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html",
106106
"comment": "Should be opt-in as it requires the logging library to capture a stack trace for each log event."
107+
},
108+
"error.type": {
109+
"type": "string",
110+
"required": false,
111+
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-error.html",
112+
"comment": "The exception type or class, such as `java.lang.IllegalArgumentException`."
113+
},
114+
"error.message": {
115+
"type": "string",
116+
"required": false,
117+
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-error.html",
118+
"comment": "The message of the exception."
119+
},
120+
"error.stack_trace": {
121+
"type": "string",
122+
"required": false,
123+
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-error.html",
124+
"comment": "The stack trace of the exception as plain text."
107125
}
108126
}
109127
}

0 commit comments

Comments
 (0)