From 805f6f3cb84f27f4178e2765b22a081d914bcaec Mon Sep 17 00:00:00 2001 From: Matheus Nogueira Date: Thu, 18 Jan 2024 16:11:46 -0300 Subject: [PATCH] fix: last span timestamp format (#3541) --- server/http/controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/http/controller.go b/server/http/controller.go index 5e20873ba9..77a8d710d4 100644 --- a/server/http/controller.go +++ b/server/http/controller.go @@ -8,6 +8,7 @@ import ( "fmt" "net/http" "sync" + "time" "github.com/kubeshop/tracetest/server/assertions/selectors" "github.com/kubeshop/tracetest/server/datastore" @@ -735,7 +736,7 @@ func (c *controller) GetOTLPConnectionInformation(ctx context.Context) (openapi. return openapi.Response(http.StatusOK, openapi.OtlpTestConnectionResponse{ SpanCount: int32(response.NumberSpans), - LastSpanTimestamp: response.LastSpanTimestamp.String(), + LastSpanTimestamp: response.LastSpanTimestamp.Format(time.RFC3339Nano), }), nil }