From 19d6a3f1b6d64adccbef4fe59c71e00c74b39a8e Mon Sep 17 00:00:00 2001 From: Jan Michael Auer Date: Fri, 23 May 2025 10:38:38 +0200 Subject: [PATCH 1/2] fix: Add missing fields to buffered-segments and ingest-spans --- schemas/buffered-segments.v1.schema.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/schemas/buffered-segments.v1.schema.json b/schemas/buffered-segments.v1.schema.json index 7018a299..334005f9 100644 --- a/schemas/buffered-segments.v1.schema.json +++ b/schemas/buffered-segments.v1.schema.json @@ -59,6 +59,14 @@ "$ref": "#/definitions/UInt", "description": "The start timestamp of the span in milliseconds since epoch." }, + "start_timestamp_precise": { + "$ref": "#/definitions/PositiveFloat", + "description": "UNIX timestamp in seconds with fractional part up to microsecond precision." + }, + "end_timestamp_precise": { + "$ref": "#/definitions/PositiveFloat", + "description": "UNIX timestamp in seconds with fractional part up to microsecond precision." + }, "duration_ms": { "$ref": "#/definitions/UInt32", "description": "The duration of the span in milliseconds." @@ -92,6 +100,9 @@ }, "measurements": { "$ref": "#/definitions/Measurements" + }, + "data": { + "$ref": "#/definitions/Data" } }, "required": [ @@ -102,6 +113,8 @@ "retention_days", "span_id", "start_timestamp_ms", + "start_timestamp_precise", + "end_timestamp_precise", "trace_id" ] }, @@ -184,8 +197,12 @@ "$ref": "#/definitions/MeasurementValue" } }, + "Data": { + "type": "object" + }, "MeasurementValue": { "type": "object", + "title": "measurement_value", "properties": { "value": { "type": "number" From d92601dd28e405c680679788111568de9cf75e99 Mon Sep 17 00:00:00 2001 From: Jan Michael Auer Date: Fri, 23 May 2025 10:50:46 +0200 Subject: [PATCH 2/2] fix: Update examples --- examples/buffered-segments/1/basic_buffered_segment.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/buffered-segments/1/basic_buffered_segment.json b/examples/buffered-segments/1/basic_buffered_segment.json index 3168e596..ae568bca 100644 --- a/examples/buffered-segments/1/basic_buffered_segment.json +++ b/examples/buffered-segments/1/basic_buffered_segment.json @@ -21,7 +21,9 @@ "user": "ip:127.0.0.1" }, "span_id": "95acbe6d30a66717", - "start_timestamp_ms": 1706734066840, + "start_timestamp_ms": 1715868485371, + "start_timestamp_precise": 1715868485.370551, + "end_timestamp_precise": 1715868486.370551, "trace_id": "8e6f22e6169545cc963255d0f29cb76b" }, { @@ -45,7 +47,9 @@ "user": "ip:127.0.0.1" }, "span_id": "95acbe6d30a66717", - "start_timestamp_ms": 1706734066840, + "start_timestamp_ms": 1715868485371, + "start_timestamp_precise": 1715868485.370551, + "end_timestamp_precise": 1715868486.370551, "trace_id": "8e6f22e6169545cc963255d0f29cb76b" } ]