Skip to content

Commit

Permalink
fix: last span timestamp format (#3541)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Jan 18, 2024
1 parent 8dd27e7 commit 805f6f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/http/controller.go
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
"net/http"
"sync"
"time"

"github.com/kubeshop/tracetest/server/assertions/selectors"
"github.com/kubeshop/tracetest/server/datastore"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 805f6f3

Please sign in to comment.