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

Implement search in vulture #944

Merged
merged 12 commits into from
Sep 15, 2021
Merged

Conversation

zalegrala
Copy link
Contributor

@zalegrala zalegrala commented Sep 9, 2021

What this PR does:

Here we include a Vulture update to exercise the search API in Tempo and report on the results.

Which issue(s) this PR fixes:
Fixes #922

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@zalegrala zalegrala force-pushed the vultureSearch branch 5 times, most recently from f8340df to 3059519 Compare September 9, 2021 22:52
@zalegrala
Copy link
Contributor Author

Thanks for the review and the good suggestions. I believe I addressed all the feedback.

}

// Do the same for the startTime we've just selected
if seed.Before(startTime.Add(tempoWriteBackoffDuration)) {
Copy link
Member

Choose a reason for hiding this comment

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

does this matter? if startTime > actualStartTime it means that vulture has been running longer than the retention period which means there shouldn't be a race condition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've adjusted the search and read loops to use the simpler logic. Thanks for the suggestion.

@zalegrala zalegrala force-pushed the vultureSearch branch 5 times, most recently from c4b1ca9 to 72e03b4 Compare September 13, 2021 16:00
Copy link
Member

@mapno mapno left a comment

Choose a reason for hiding this comment

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

Overall LGTM, great work


attr := randomAttrFromTrace(expected, r)
if attr == nil {
return tm, fmt.Errorf("no search attr selected from trace")
Copy link
Member

Choose a reason for hiding this comment

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

Should we add this failure as a metric?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so, good point.

@joe-elliott joe-elliott merged commit 267b951 into grafana:main Sep 15, 2021
@zalegrala zalegrala deleted the vultureSearch branch September 15, 2021 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the Vulture to support search
3 participants