Skip to content

Commit

Permalink
synchronize json schema specs (#1357)
Browse files Browse the repository at this point in the history
Co-authored-by: apmmachine <infra-root-apmmachine@elastic.co>
  • Loading branch information
apmmachine and apmmachine authored Jul 26, 2021
1 parent 7489850 commit d6f210b
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion src/Elastic.Apm.Specification/specs/span.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,34 @@
},
"minItems": 0
},
"composite": {
"description": "Composite holds details on a group of spans represented by a single one.",
"type": [
"null",
"object"
],
"properties": {
"compression_strategy": {
"description": "A string value indicating which compression strategy was used. The valid values are `exact_match` and `same_kind`.",
"type": "string"
},
"count": {
"description": "Count is the number of compressed spans the composite span represents. The minimum count is 2, as a composite span represents at least two spans.",
"type": "integer",
"minimum": 2
},
"sum": {
"description": "Sum is the durations of all compressed spans this composite span represents in milliseconds.",
"type": "number",
"minimum": 0
}
},
"required": [
"count",
"sum",
"compression_strategy"
]
},
"context": {
"description": "Context holds arbitrary contextual information for the event.",
"type": [
Expand Down Expand Up @@ -476,7 +504,7 @@
}
},
"duration": {
"description": "Duration of the span in milliseconds",
"description": "Duration of the span in milliseconds. When the span is a composite one, duration is the gross duration, including \"whitespace\" in between spans.",
"type": "number",
"minimum": 0
},
Expand Down

0 comments on commit d6f210b

Please sign in to comment.