Skip to content

Conversation

@dnephin
Copy link
Contributor

@dnephin dnephin commented Aug 31, 2020

With the addition of labels in #54 only the new WithLabels methods on Sink are used by go-metrics.

My understanding is that this should be a backwards compatible change, because Sink is the interface accepted by metrics.New. Implementations of a Sink outside of this package would continue to work, and new one would no longer need to implement the 3 unused methods. Nothing outside of this package should call the Sink methods directly, they would call the methods on Metrics, which have not changed.

@dnephin dnephin force-pushed the remove-unused-interface-methods branch from be62836 to 2c01865 Compare September 10, 2020 15:05
With the addition of labels in hashicorp#54 the Metrics struct only uses the new
WithLabels methods on Sink.

This change removes the unused methods.
@dnephin dnephin force-pushed the remove-unused-interface-methods branch from 2c01865 to afd8928 Compare October 29, 2020 16:59
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.

1 participant