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

Allow AtlasMetricObserver to be stopped #420

Merged
merged 1 commit into from
Aug 4, 2017

Conversation

dmuino
Copy link
Contributor

@dmuino dmuino commented Aug 4, 2017

AtlasMetricObserver creates a thread to push metrics to the backend.
It now adds a new method, stop, so the thread can be cleaned up.

`AtlasMetricObserver` creates a thread to push metrics to the backend.
It now adds a new method, `stop`, so the thread can be cleaned up.
* Stop attempting to send metrics to atlas.
* Cleans up the thread that is created by this observer.
*/
public void stop() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think this should be part of the base observer interface? It seems like other observer types might hit the same problem. I think we could use a default method with an empty implementation to avoid breaking compatibility.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's probably a good idea to add it to the base interface. I'll create a new PR with that change.

@brharrington brharrington merged commit d08b136 into Netflix:master Aug 4, 2017
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.

2 participants