Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add start/end millis for trace details response #5321

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

srikanthccv
Copy link
Member

Summary

Part of #5049

Since the traceID is part of the path var, I assume it will always be there and the result searchSpansResult will contain exactly one item as initialized here

searchSpansResult := []model.SearchSpansResult{{
and here
searchSpansResult := []basemodel.SearchSpansResult{{

We go through all the items scanned into searchScanResponses and send the min(timestamp) - durationNano as start and max(timestamp) + durationNano as end. The start and end are not exact but they serve the purpose.

@srikanthccv srikanthccv merged commit 0375fc4 into develop Jun 24, 2024
11 checks passed
@srikanthccv srikanthccv deleted the related-logs branch June 24, 2024 09:15
@@ -1983,6 +1993,9 @@ func (r *ClickHouseReader) SearchTraces(ctx context.Context, params *model.Searc
}
}

searchSpansResult[0].StartTimestampMillis = startTime - durationNano
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@srikanthccv Here we should have converted durationNano to milliseconds before subtracting or adding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants