Skip to content

Commit

Permalink
address pr issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jslching committed Nov 1, 2023
1 parent a6e72bc commit 1104ebb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions util/traceutil/trace/span.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ func (n NoopSpan) SetExtended() {}

func newSpan(name string) *RecordingSpan {
s := &RecordingSpan{
Data: &recordingExtendedData{
recordingData: &recordingData{},
},
startTime: utc.Now(),
}
s.Data.Name = name
Expand All @@ -109,7 +106,7 @@ func newSpan(name string) *RecordingSpan {
type RecordingSpan struct {
mutex sync.Mutex
Parent Span
Data *recordingExtendedData
Data recordingExtendedData
startTime utc.UTC
endTime utc.UTC
duration time.Duration
Expand All @@ -125,7 +122,7 @@ type recordingData struct {
}

type recordingExtendedData struct {
*recordingData
recordingData
Start string `json:"start"`
End string `json:"end"`
}
Expand Down

0 comments on commit 1104ebb

Please sign in to comment.