-
Notifications
You must be signed in to change notification settings - Fork 893
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
Metrics terminology: Grouping instruments as (opposed to Adding instruments) #625
Comments
The thing that bugs me a little bit with both "Additive" and "Collective" is that they sound very "static", rather than dynamic. Somehow, a more active form like "Collecting" somehow evokes the meaning a little closer to me. What would you say to "Adding" and "Collecting", using the gerund forms, rather than static-evoking adjectives? All that being said, if we clearly define this in the spec glossary, I think this would be fine, and is definitely better than "non-additive". |
I think you're right about preferring a gerund form. But this also leads me not to prefer "Collecting" and to think of "Grouping". Collecting is a loaded term for us, given the collector. These instruments form groups of measurements, whereas the other instruments add measurements. Example uses:
The particular point that makes me agree strongly relates to #608. In that case, the proposal is to add a new Grouping instrument that accepts Additive inputs. I want to use Additive to describe inputs, Adding to describe instruments. |
/me breaks out his inner thesaurus... I'm ok with Adding/Grouping. Interesting to have more static words for inputs... I think I like it, but I need to mull it over in my head a bit. |
An additive input is defined as one that semantically supports addition. Of course, numbers unconditionally support addition in the mathematical sense, but semantically there is nothing you can add to an individual measurement to transform it into a different individual measurement. You can group two individual measurements, but you can't add them. However if the inputs to a grouping instrument are additive, then the sum is additive. I think it's time to decide on the merits of #608, this terminology will be helpful in the specification but ultimately doesn't impact the API choices we make. |
Unsure if this is the right issue to ask this, but is it safe to sample "non-additive" metrics? From reading the definitions, it seems like we should be able to. I'm unsure if this is already clarified elsewhere. |
@dashed I'd like to direct you to a few open PRs where this question is under discussion. open-telemetry/opentelemetry-proto#159 is discussing a open-telemetry/opentelemetry-proto#168 is discussing the protocol change where GROUPING and ADDING kinds are introduced to OTLP. The RawValue
There is an algorithm or two that we will need to compute exemplars with meaningful sample count, but the answer to your question is that yes, we should be able to. Thanks! |
@jmacd thanks! I'll follow those two PRs you've linked. |
discussed at the spec sig mtg today and initially assigning to @jmacd |
These terms have stood up very well. We have used the term "Structure" to describe this categorization. Here are example uses:
|
The current metrics spec uses the term "Additive" to describe the Counter, UpDownCounter, SumObserver, and UpDownSumObserver instruments. This term was derived as follows: the input to these instruments convey a sum that is of primary interest, whether expressed as the change (synchronous case) or as the sum itself (synchronous case).
The other instruments have not had a proper term applied. Sometimes "non-additive", these instruments recognize individual events cannot be simply added, that they are averaged instead of added. This proposal suggests the term Collective to refer to these instruments, because:
Examples of use:
The text was updated successfully, but these errors were encountered: