Skip to content

Commit dd78c7e

Browse files
committed
fix traceql errors by propagating the start and end to the fetchspanrequest
1 parent 5f294c1 commit dd78c7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/traceql/engine.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ func (e *Engine) ExecuteSearch(ctx context.Context, searchReq *tempopb.SearchReq
5555
return nil, err
5656
}
5757

58+
fetchSpansRequest.StartTimeUnixNanos = unixSecToNano(searchReq.Start)
59+
fetchSpansRequest.EndTimeUnixNanos = unixSecToNano(searchReq.End)
60+
5861
span.SetAttributes(attribute.String("pipeline", rootExpr.Pipeline.String()))
5962
span.SetAttributes(attribute.String("fetchSpansRequest", fmt.Sprint(fetchSpansRequest)))
6063

0 commit comments

Comments
 (0)