-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[V3/API] Add time window for GetTrace http_gateway #6248
Conversation
851c3ad
to
d31c84e
Compare
d31c84e
to
bd100ec
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6248 +/- ##
=======================================
Coverage 96.11% 96.12%
=======================================
Files 360 360
Lines 20485 20500 +15
=======================================
+ Hits 19690 19705 +15
Misses 607 607
Partials 188 188
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
lgtm. The DCO check is failing on some commits - might be easier to create a new PR with just your changes on top of most recent main
expectedQuery spanstore.GetTraceParameters | ||
params map[string]string |
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.
if params are the input please move them above the expected values, in both struct declaration and in the initialization below.
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.
done
} | ||
|
||
func TestHTTPGatewayGetTraceInternalErrors(t *testing.T) { | ||
gw := setupHTTPGatewayNoServer(t, "") | ||
// error from span reader | ||
const simErr = "simulated error" | ||
gw.reader. | ||
On("GetTrace", matchContext, matchGetTraceParameters). | ||
Return(nil, errors.New(simErr)).Once() |
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.
can use assert.AnError
instead of simErr
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.
done
Use new PR: #6372 |
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test