From 2a64cf0c9e53f6c77bc718c98bac7dd6123c8439 Mon Sep 17 00:00:00 2001 From: Philip Bawn Date: Wed, 17 Jan 2024 07:44:31 -0800 Subject: [PATCH] Fixes three Zipkin v2 swagger2 datatypes (#94) This allows generated clients to de-serialize microseconds in timestamps. Co-authored-by: Philip Bawn --- zipkin2-api.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zipkin2-api.yaml b/zipkin2-api.yaml index d98a766..170d813 100644 --- a/zipkin2-api.yaml +++ b/zipkin2-api.yaml @@ -1,5 +1,5 @@ # -# Copyright 2018-2019 The OpenZipkin Authors +# Copyright 2018-2021 The OpenZipkin Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at @@ -115,12 +115,14 @@ paths: - name: minDuration in: query type: integer + format: int64 description: | Ex. 100000 (for 100ms). Only return traces whose `Span.duration` is greater than or equal to minDuration microseconds. - name: maxDuration in: query type: integer + format: int64 description: | Only return traces whose Span.duration is less than or equal to `maxDuration` microseconds. Only valid with minDuration. @@ -317,6 +319,7 @@ definitions: properties: timestamp: type: integer + format: int64 description: | Epoch **microseconds** of this event.