-
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
Avoid duplicate expvar metrics - fixes #716 #726
Conversation
pkg/cassandra/config/config.go
Outdated
@@ -94,6 +95,9 @@ type SessionBuilder interface { | |||
|
|||
// NewSession creates a new Cassandra session | |||
func (c *Configuration) NewSession() (cassandra.Session, error) { | |||
if true { | |||
return &mocks.Session{}, nil |
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 WIP? cos this is weird
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.
yeah, sorry, still WIP
subpackages: | ||
- metrics | ||
- metrics/adapters | ||
- metrics/expvar | ||
- metrics/go-kit | ||
- metrics/go-kit/expvar |
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.
weird, even if I remove this line/pkg, glide adds it back, even though all code using it seems to be gone.
@black-adder ready for review |
cmd/query/main.go
Outdated
return nil | ||
} | ||
if err != nil { | ||
logger.Error("Cannot init archive storage reader", zap.Error(err)) | ||
return nil | ||
} | ||
writer, err := storageFactory.CreateSpanWriter() | ||
writer, err := archiveFactory.CreateArchiveSpanWriter() | ||
if err == istorage.ErrArchiveStorageNotConfigured || err == istorage.ErrArchiveStorageNotSupported { | ||
return nil |
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.
do we want to add the same logs as on L191? or is it not possible here since L192 would've been called anyway?
d78cae6
to
9a646bb
Compare
Fixes #716
jaeger-lib
1.4.0Signed-off-by: Yuri Shkuro ys@uber.com