-
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
Pass startTime & endTime in Trace Get request #6228
Conversation
Thanks, I see why this test is failing and know how to fix it. However, it raises an interesting question about which data type we should use for the timestamps in the API. In api_v2 we used
So while our api_v2 was consistent between data model and the service interface, api_v3 is not consistent. |
I see, but unix nano level of timestamp seems to be too granular for API queries. Current HTTP API uses micro seconds level of timestamp for "loopback". I think we'd better have a very good reason to break it |
I agree, I don't really want to change api_v3 as it has been declared stable a long time ago. So we will continue using
And then in the Go code I had to add a MarshalToSizedBuffer function to the Traces struct. Do you want to try to make these changes? |
I have a PR #6233 |
## Which problem is this PR solving? - Part of #4150 ## Description of the changes - Upgrade to new IDL that removes gogo annotation from api_v3/query.proto - Add a pre-processor to inject annotations during build - Fix tests - Add start/end time to GetTrace test (which was failing in #6228) ## How was this change tested? - ## Checklist - [ ] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [ ] I have signed all commits - [ ] I have added unit tests for the new functionality - [ ] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `yarn lint` and `yarn test` --------- Signed-off-by: Yuri Shkuro <[email protected]>
Just remembered this discussion, it looks like Jaeger has adopted nano level of timestamp in HTTP requests already. My memory was incorrect before. Considering to update the time field as type of |
Test would fail on proto marshal