-
Notifications
You must be signed in to change notification settings - Fork 834
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Should AttributesExtractor be an interface? #3131
Comments
I thought about it a bit, but it made the instrumentation library deal with two types. Instead of |
Well - maybe there's |
I'm not following how that's related to |
@trask We embed the logic of mapping getter methods to semantic attributes in the abstract classes, if an interface we'd need to move it somewhere, or make them |
oh I see, I was only thinking of making the one class the attributes getter idea sounds interesting (not mixing extractor + getter), what's your thought on |
From the consistency point of view I support changing just |
@iNikem I'm still quite not in favor of simply changing all the methods to public Are you thinking of taking the split extractor / getter approach? |
@anuraaga No, I am thinking about converting only 1 class, |
Ah ok, yeah if the semantic attribute extractors are still classes it seems fine. Oops, I might have misinterpreted @trask's original issue too to mean all of them, not just the supertype :) |
Only bringing up because all other Extractors are interfaces, and Intellij has had to correct me on
extends
andimplements
a few times because it took me some time to notice the difference.Related, is the
set
method inAttributesExtractor
needed? It looks likeAttributesBuilder
is no-op already onnull
value, or is that subject to change?The text was updated successfully, but these errors were encountered: