mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 20:59:00 +08:00
fix: timerange selected for traces to logs (#6634)
This commit is contained in:
parent
2701ae5c34
commit
8608f02263
@ -86,8 +86,10 @@ function SelectedSpanDetails(props: SelectedSpanDetailsProps): JSX.Element {
|
||||
history.push(
|
||||
`${ROUTES.LOGS_EXPLORER}?${createQueryParams({
|
||||
[QueryParams.compositeQuery]: JSON.stringify(query),
|
||||
[QueryParams.startTime]: minTime,
|
||||
[QueryParams.endTime]: maxTime,
|
||||
// we subtract 1000 milliseconds from the start time to handle the cases when the trace duration is in nanoseconds
|
||||
[QueryParams.startTime]: traceStartTime - 1000,
|
||||
// we add 1000 milliseconds to the end time for nano second duration traces
|
||||
[QueryParams.endTime]: traceEndTime + 1000,
|
||||
})}`,
|
||||
);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user