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

Handle missing attributes without failing #39

Merged
merged 1 commit into from
Jun 1, 2021
Merged

Handle missing attributes without failing #39

merged 1 commit into from
Jun 1, 2021

Conversation

dehaansa
Copy link
Contributor

Description: Enhance InstrumentHelper & MBeanHelper to handle AttributeNotFoundException cleanly. Prior to this PR, if a groovy script included an instrument where the MBean existed but the Attribute was missing, it would fail and the remainder of the metrics listed afterwards in the groovy script would not be collected. This PR makes the AttributeNotFoundException cause that metric to be missing, but the remainder of the script's requested metrics are still collected.

Existing Issue(s): #38

Testing: Enhanced groovy tests to capture this.

Copy link
Contributor

@rmfitzpatrick rmfitzpatrick left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

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