-
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
Add C* query to error logs #1250
Conversation
Relates to #1249 |
da64066
to
7d82b97
Compare
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.
isn't the problem here that the error isn't being percolated all the way back to the UI? Also, I love how we're using jaeger to debug jaeger UI issues, that's so meta.
I don't think so - the error message from C*, as seen in #1249 is |
Odd, no where in the gocql codebase can I see how the error |
This is because it is generated on Cassandra and set to jaeger-query via the gocql error object. |
Signed-off-by: Prithvi Raj <p.r@uber.com>
7d82b97
to
cba3c9c
Compare
Codecov Report
@@ Coverage Diff @@
## master #1250 +/- ##
======================================
Coverage 100% 100%
======================================
Files 160 160
Lines 7181 7182 +1
======================================
+ Hits 7181 7182 +1
Continue to review full report at Codecov.
|
@@ -410,7 +410,8 @@ func (s *SpanReader) executeQuery(span opentracing.Span, query cassandra.Query, | |||
tableMetrics.Emit(err, time.Since(start)) | |||
if err != nil { | |||
logErrorToSpan(span, err) | |||
s.logger.Error("Failed to exec query", zap.Error(err)) | |||
span.LogFields(otlog.String("query", query.String())) | |||
s.logger.Error("Failed to exec query", zap.Error(err), zap.String("query", query.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.
zap.String("query", query.String())
=> zap.Stringer("query", query)
Which problem is this PR solving?
Short description of the changes
[query statement=%q values=%+v consistency=%s]