-
Notifications
You must be signed in to change notification settings - Fork 544
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
Conversation
f8340df
to
3059519
Compare
Thanks for the review and the good suggestions. I believe I addressed all the feedback. |
cmd/tempo-vulture/main.go
Outdated
} | ||
|
||
// Do the same for the startTime we've just selected | ||
if seed.Before(startTime.Add(tempoWriteBackoffDuration)) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
c4b1ca9
to
72e03b4
Compare
There was a problem hiding this 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") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
72e03b4
to
d1f6e5e
Compare
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
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]