Skip to content

Commit

Permalink
[v2] Require and change description for error.id (#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
simitt authored Sep 19, 2018
1 parent e30e02c commit 553eb8d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ https://github.com/elastic/apm-server/compare/6.4\...master[View commits]
- Rename `transaction.span_count.dropped.total` to `transaction.span_count.dropped` on Intake API v2 {pull}1351[1351]
- Require either `message` or `type` for `error.exception` {pull}1354[1354].
- Require `span.parent_id`, forbid `null` for `span.trace_id`, `transaction.trace_id` {pull}1391[1391]
- Require `error.id` and changed description to 128 random bits ID {pull}1384[1384]

[[release-notes-6.4]]
== APM Server version 6.4
Expand Down
7 changes: 4 additions & 3 deletions docs/spec/errors/v2_error.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
{
"properties": {
"id": {
"type": ["string", "null"],
"description": "Hex encoded 64 random bits ID of the error.",
"type": ["string"],
"description": "Hex encoded 128 random bits ID of the error.",
"maxLength": 1024
},
"trace_id": {
Expand All @@ -27,7 +27,8 @@
"type": ["string", "null"],
"maxLength": 1024
}
}
},
"required": ["id"]
}
]
}
7 changes: 4 additions & 3 deletions model/error/generated/schema/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ const ModelSchema = `{
{
"properties": {
"id": {
"type": ["string", "null"],
"description": "Hex encoded 64 random bits ID of the error.",
"type": ["string"],
"description": "Hex encoded 128 random bits ID of the error.",
"maxLength": 1024
},
"trace_id": {
Expand All @@ -442,7 +442,8 @@ const ModelSchema = `{
"type": ["string", "null"],
"maxLength": 1024
}
}
},
"required": ["id"]
}
]
}
Expand Down

0 comments on commit 553eb8d

Please sign in to comment.