Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Wip fix for trace 1.0 #70
Wip fix for trace 1.0 #70
Changes from 6 commits
7e47378
230229c
a52c340
c769421
b21191c
cbaeafa
6f579f7
ea4c3a8
e92c1c7
10299ea
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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'm not too familiar with the Java SDK – in practice, is there always just one point?
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.
No, that's one of the issues we're fixing here.
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.
nit inconsistent indent
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.
fixed
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.
Where do GCM API errors get surfaced? It doesn't look like
createTimeSeriesBatch()
throws. API errors seem like the most reasonable case toreturn CompletableResultCode.ofFailure()
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 need to refactor all of that code. I opened up an issue to track it, but yeah... it's not clear what happens right now.
Even more, we may want to use an asynchronous client to avoid blocking, as we return a completable result (i.e an async observable). We'll fix this up more post-1.0 as it won't break existing usage, just make it better.
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.
Re above comment about each
MetricData
having a list of points; if that's not the case, this would report failure. Should we just remove the check for now if its not adding anything?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'm trying to not change the behavior right before 1.0. I agree this needs to get fixed, but I'd rather spend some time on it.
Given metrics is alpha, I think the TODO and a bug to fix is the right way to go for now.