-
Notifications
You must be signed in to change notification settings - Fork 896
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
Rename EventLogger to EventEmitter #3869
Conversation
c0da3e3
to
e67affa
Compare
(Btw I realized we don't seem to have an actual event WG to ping for such PRs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it. 🙏🏻
@MrAlias brought up a suggestion to use a single-term name to be consistent with other APIs (Tracer, Logger, Meter). Options currently considered:
|
I hate typing and I would love a shorter name but I'd prefer it be one that is standard and that the community does not find ridiculous. I would prefer longer and standard over shorter and weird. I disagree that there is a requirement that the name be a single word. If someone can come up with a good one, great! Otherwise we should go with the standard industry term, which in this case is |
And to put my money where my mouth is, I think I have a solution! I suggest we just go with
That API feels good to me. And if we ever need an object to describe an individual event, we could go with |
My concern with As for Eventer not being "standard". Just remember, at one point "Logger" and "Tracer" were non-standard terms. It's only from the vantage point of their full adoption that you now see them as "standard". |
@tedsuo also consider this. The word When we invent a word like |
I think people simply question why we didn't use the word Metric. 🙂 (I understand the reasons why we didn't.) but even there, we didn't use a made up word. Meter is defined in the dictionary as "a device that measures and records the quantity, degree, or rate of something." It's true that the industry made up the word "logger" at some point. But in this case, the industry made up the word "EventEmitter." |
Agreed. So if we are going to make up a word to capture a new concept let's make sure that word is not a compound that only defines one operation. Similar to |
I'm fine with both
I don't think
I'm not at all concerned with extending If we decide in the future (for ergonomic or aesthetic reasons) that we need to combine these separate responsibilities, we should fight about the name then (at that time) and use the composite pattern. I speculate that at that future time the name will be more clear -- because it would be a more top-level grouping responsibility. |
@breedx-splk this all sounds fine, but the
Additionally, the evolution strategy you mention would not just result in Footnotes |
We'll try to present a conclusion at tomorrow's spec meeting. But to clarify some things: We don't have a consistent practice of unified composites. We have a consistent practice of using industry standard terminology. The short names are just a coincidence. We wouldn't use In the case of Emitting events will always be the primary purpose of the However, if we must leave the door open for additional APIs unrelated to event recording – a requirement not made on any other instrumentation type – I suggest we solve this by having an |
Can you please provide references? What telemetry platform uses the term |
How are you able to say this with confidence? This is unsubstantiated. |
This goes even further away from our standards. Your proposal now includes a provider named in a way that does not include in it what it provides. How do we justify |
Your view here is only one way to look at this. We don't use Furthermore, it is not a valid argument to say that there are no industry standard terms for an what we want to call an |
I'm not sure a conclusion is the stage of this conversation we are at. There are many points that I have made within this thread that have not be directly responded to. These points have instead been ignored and unjustifiably the term |
Again, like mentioned above, this is not how we have historically evolved our APIs. Why, on our forth signal, should we do something different here? |
Following up from the spec meeting, we decided to collect up a list of name proposals, and hand them to the TC next week to make a final decision. Anyone who would like to proposal a name along with a justification, please do so here before March 5th. |
So far, these names have been proposed (in alphabetical order):
|
|
The recommendation from the Event WG was in order of preference:
Decision was made on 3/5/24 in the Specification SIG to keep the name as EventLogger. |
Changes
This updates the Events API spec to use
EventEmitter
instead ofEventLogger
. Using emitter seems to be more fitting in the context of emitting events. Both the Java and JavaScript prototypes have usedEventEmitter
.