-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cassandra init #6072
base: main
Are you sure you want to change the base?
Cassandra init #6072
Conversation
Signed-off-by: mehul <mehulsharam4786@gmail.com>
Signed-off-by: mehul <mehulsharam4786@gmail.com>
Signed-off-by: mehul <mehulsharam4786@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6072 +/- ##
==========================================
- Coverage 96.90% 96.71% -0.20%
==========================================
Files 349 350 +1
Lines 16588 16719 +131
==========================================
+ Hits 16075 16169 +94
- Misses 329 356 +27
- Partials 184 194 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
} | ||
var datacentre, replications string | ||
// var ReplicationFactor int | ||
if mode == "prod" { |
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 don't think we need this distinction anymore. Users can provide precise values for parameters, we don't have to have Jaeger guess those parameters based on the MODE
builder := &MappingBuilder{} | ||
schema, _, err := builder.GetSpanServiceMappings() |
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 does the term "mapping" come from? If you're copying it from Elasticsearch, there "mapping" is actually a term understood by ES. No such thing in Cassandra.
case "4": | ||
template = "./v004.cql.tmpl" | ||
default: | ||
template = "./v004.cql.tmpl" |
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 am not sure how you are planning to use those files. They use variable placeholders like ${keyspace}
, which works in shell substitution, but will not work as a Go template. We should be using Go template the this functionality. Your could do a search/replace, something like ${keyspace}
==> {{ .Keyspace }}
. But it would be easier just to copy and change the syntax. You might need to use conditional clauses, like {{- if .UseILM}}
from ES templates.
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