-
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
Clarify pluralization guidelines for semantic conventions #1115
Comments
Related: #1053 |
Map is not possible, see #376. |
Related: #1109 |
from the spec sig mtg today, marking as P1 to get analysis of what is needed to change so a decision can be made if the spec needs a breaking change. |
@bogdandrutu just wanted to confirm if I understood the suggested policy correctly; the way I understood conclusion from the SIG is following:
Did I get it right? In such case * we seem to came to the conclusion it's probably not necessary in discussion under the other PR |
Focusing on the |
In contrib#1167: it's not clear whether the In #1053: here we have an inconsistency about "size" vs. "length". We have discussed this inconsistency as relating to their domains: HTTP uses "length", while messaging systems use "size". I would propose we leave these inconsistencies. These are both singular nouns, in any case. |
I asked for more detail in open-telemetry/opentelemetry-collector-contrib#1167. These list-valued attributes, if used as resources, will not export into metrics systems well. Can you provide more examples? These will make sense in spans and logs more so than metrics.
In the @pmm-sumo May we resolve this in favor of singular names? |
@jmacd I think that for K8s processor we should stick to singular name for container In principle though, I am not sure if attribute names should be always singular. Looking at this PR: #1137 (which essentially fixes the |
from the spec sig mtg today, re-triaged this as allowed-for-ga since the change expected to address is not breaking |
What are you trying to achieve?
Most of the currently defined attributes use singular names as they typically address a single entity (e.g.
os.type
,db.connection.string
, etc.) While it's possible to usea map orarray as a value type, there are few examples found, such asprocess.command_line
(even then it's not fully clear if arguments are always included as an array or if it's sometimes an array and sometimes a string)There are cases (discussed in contrib#1167, where an attribute typically describes a single entity but sometimes might actually represent a collection of them.
I believe it might be helpful to clarify the rules for naming plural attributes. A similar initiative was taken for metric names recently.
Specifically, there might be two use-cases considered:
(I) Rules for attributes that are always expected to represent multiple entities
(II) Rules for attributes that typically represent a single entity but sometimes represent a collection of them
k8s.pod.container
for a single instance andk8s.pod.containers
for multiple instances)?k8s.pod.container
ork8s.pod.containers
?The text was updated successfully, but these errors were encountered: