Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Don't allow creation of multiple gauges with the same name #1107

Merged
merged 2 commits into from
Mar 18, 2019

Conversation

ajsutton
Copy link
Contributor

PR description

Creating multiple gauges with the same name results in only the first created one actually having any effect (because a supplier is passed in that the data is always pulled from). If we're creating gauges in objects that are discarded and recreated the metrics will be wrong and we probably leaked memory because of the on-going reference to the first created metric.

We're not currently creating multiple gauges with the same name so go back to throwing an exception if we ever try to.

@ajsutton ajsutton merged commit 7efd5b2 into PegaSysEng:master Mar 18, 2019
@ajsutton ajsutton deleted the forbid-duplicate-gauges branch March 18, 2019 23:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants