Skip to content

Commit 2aad23f

Browse files
author
apmmachine
authored
synchronize json schema specs (#1926)
1 parent e8a88de commit 2aad23f

File tree

1 file changed

+29
-1
lines changed
  • apm-agent-core/src/test/resources/apm-server-schema/current

1 file changed

+29
-1
lines changed

apm-agent-core/src/test/resources/apm-server-schema/current/span.json

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,34 @@
2222
},
2323
"minItems": 0
2424
},
25+
"composite": {
26+
"description": "Composite holds details on a group of spans represented by a single one.",
27+
"type": [
28+
"null",
29+
"object"
30+
],
31+
"properties": {
32+
"compression_strategy": {
33+
"description": "A string value indicating which compression strategy was used. The valid values are `exact_match` and `same_kind`.",
34+
"type": "string"
35+
},
36+
"count": {
37+
"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.",
38+
"type": "integer",
39+
"minimum": 2
40+
},
41+
"sum": {
42+
"description": "Sum is the durations of all compressed spans this composite span represents in milliseconds.",
43+
"type": "number",
44+
"minimum": 0
45+
}
46+
},
47+
"required": [
48+
"count",
49+
"sum",
50+
"compression_strategy"
51+
]
52+
},
2553
"context": {
2654
"description": "Context holds arbitrary contextual information for the event.",
2755
"type": [
@@ -476,7 +504,7 @@
476504
}
477505
},
478506
"duration": {
479-
"description": "Duration of the span in milliseconds",
507+
"description": "Duration of the span in milliseconds. When the span is a composite one, duration is the gross duration, including \"whitespace\" in between spans.",
480508
"type": "number",
481509
"minimum": 0
482510
},

0 commit comments

Comments
 (0)