-
Notifications
You must be signed in to change notification settings - Fork 70
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
Support dependencies v2 in c* #59
Conversation
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@black-adder could you please review this? I will merge it in order to fix CI in the operator. |
return zonedDateTime.toInstant().toEpochMilli(); | ||
} | ||
|
||
public Long getTsBucket() { |
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.
@black-adder is this ok?
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.
we should truncate the time as well, ala .toInstant().truncatedTo(ChronoUnit.DAYS).toEpochMilli()
@@ -66,6 +66,13 @@ public boolean equals(Object o) { | |||
&& this.callCount == that.callCount; | |||
} | |||
|
|||
public String getSource() { | |||
return "jaeger"; |
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.
@black-adder is this ok?
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.
yup
return zonedDateTime.toInstant().toEpochMilli(); | ||
} | ||
|
||
public Long getTsBucket() { |
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.
we should truncate the time as well, ala .toInstant().truncatedTo(ChronoUnit.DAYS).toEpochMilli()
@@ -66,6 +66,13 @@ public boolean equals(Object o) { | |||
&& this.callCount == that.callCount; | |||
} | |||
|
|||
public String getSource() { | |||
return "jaeger"; |
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.
yup
} | ||
|
||
public void setSource(String source) { | ||
} |
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.
is this a no-op on purpose?
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.
yep
.saveToCassandra(); | ||
String table = dependenciesTable(sc); | ||
log.info("Storing dependencies into {}", table); | ||
if (table == "dependencies_v2") { |
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 using equals() is better.
use == to compare strings, in this case, it works but makes confusing.
Resolves #58