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

Use isHelperClass over additionalHelperClassNames #2796

Merged
merged 2 commits into from
Apr 14, 2021
Merged

Use isHelperClass over additionalHelperClassNames #2796

merged 2 commits into from
Apr 14, 2021

Conversation

trask
Copy link
Member

@trask trask commented Apr 13, 2021

Since isHelperClass is generally simpler and less error-prone compared to additionalHelperClassNames, I think it makes sense to use isHelperClass wherever possible, and (only) recommend isHelperClass in our InstrumentationModule docs (#2793).

There's only one place that I couldn't remove usage of additionalHelperClassNames completely: MethodInstrumentationModule.

Copy link
Member

@mateuszrzeszutek mateuszrzeszutek left a comment

Choose a reason for hiding this comment

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

💯 👍

My thoughts exactly - I realized that those two methods do the same thing when I was writing the InstrumentationModule doc 😄

@trask trask merged commit c17b803 into open-telemetry:main Apr 14, 2021
@trask trask deleted the prefer-is-helper-class branch April 14, 2021 16:38
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.

4 participants