Skip to content
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

Merged
merged 3 commits into from
Mar 6, 2018
Merged

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented Mar 5, 2018

Fixes #716

  • Use different namespaces for Cassandra primary and archive storage
  • Fix a bug where archive factory wasn't used in query/main
  • Use new expvar metrics module from jaeger-lib 1.4.0

Signed-off-by: Yuri Shkuro ys@uber.com

@ghost ghost assigned yurishkuro Mar 5, 2018
@ghost ghost added the review label Mar 5, 2018
@@ -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
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, sorry, still WIP

@yurishkuro yurishkuro changed the title Avoid duplicate expvar metrics - fixes #716 [WIP] Avoid duplicate expvar metrics - fixes #716 Mar 5, 2018
subpackages:
- metrics
- metrics/adapters
- metrics/expvar
- metrics/go-kit
- metrics/go-kit/expvar
Copy link
Member Author

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.

@yurishkuro yurishkuro changed the title [WIP] Avoid duplicate expvar metrics - fixes #716 Avoid duplicate expvar metrics - fixes #716 Mar 5, 2018
@yurishkuro
Copy link
Member Author

@black-adder ready for review

@coveralls
Copy link

coveralls commented Mar 5, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 9a646bb on fix-716-expvar-dups into 2eeffec on master.

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
Copy link
Contributor

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?

Yuri Shkuro added 3 commits March 6, 2018 10:59
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
@yurishkuro yurishkuro force-pushed the fix-716-expvar-dups branch from d78cae6 to 9a646bb Compare March 6, 2018 16:01
@yurishkuro yurishkuro merged commit cce04e7 into master Mar 6, 2018
@ghost ghost removed the review label Mar 6, 2018
@yurishkuro yurishkuro deleted the fix-716-expvar-dups branch March 6, 2018 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants