Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar committed Sep 30, 2024
1 parent f08751e commit 8b46580
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
17 changes: 8 additions & 9 deletions cli/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,16 @@ func (c Config) UI() string {
}

func (c Config) Path() string {
// pathPrefix := "/api"
// if c.ServerPath != "" {
// pathPrefix = c.ServerPath
// }
pathPrefix := "/api"
if c.ServerPath != "" {
pathPrefix = c.ServerPath
}

// if pathPrefix == "/" {
// return ""
// }
if pathPrefix == "/" {
return ""
}

// return pathPrefix
return ""
return pathPrefix
}

func (c Config) IsEmpty() bool {
Expand Down
3 changes: 2 additions & 1 deletion server/traces/trace_entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"sort"
"strconv"
"strings"
"time"

"github.com/kubeshop/tracetest/agent/workers/trigger"
"github.com/kubeshop/tracetest/server/pkg/id"
Expand Down Expand Up @@ -117,7 +118,7 @@ func getRootSpan(allRoots []*Span) *Span {
}

if root == nil {
root = &Span{ID: id.NewRandGenerator().SpanID(), Name: TemporaryRootSpanName, Attributes: NewAttributes(), Children: []*Span{}}
root = &Span{ID: id.NewRandGenerator().SpanID(), StartTime: time.Now(), EndTime: time.Now(), Name: TemporaryRootSpanName, Attributes: NewAttributes(), Children: []*Span{}}
}

for _, span := range allRoots {
Expand Down

0 comments on commit 8b46580

Please sign in to comment.