From 8a3e8cf1f5a8dfb80a69106a489b53ed9a4a6e46 Mon Sep 17 00:00:00 2001 From: apmmachine <58790750+apmmachine@users.noreply.github.com> Date: Wed, 21 Jul 2021 12:50:19 -0400 Subject: [PATCH] synchronize json schema specs (#990) Co-authored-by: apmmachine --- internal/apmschema/jsonschema/span.json | 30 ++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/internal/apmschema/jsonschema/span.json b/internal/apmschema/jsonschema/span.json index 93a521ea6..99f5ea6d7 100644 --- a/internal/apmschema/jsonschema/span.json +++ b/internal/apmschema/jsonschema/span.json @@ -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": [ @@ -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 },