-
Notifications
You must be signed in to change notification settings - Fork 894
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 the need to have "unspecified" values of metric labels #345
Comments
See this comment. open-telemetry/opentelemetry-go#320 (comment) |
The current specification for span attributes states this:
On the surface it appears that we've specified different behaviors for empty-string values in tracing and metrics. However, generally as we export aggregated metrics there is a set of "grouping" dimensions for which values must be supplied. There is a common practice (e.g., in Prometheus) to treat unspecified values as empty strings. Although this applies to the case where a grouping value must be supplied, this motivates the general treatment of empty-strings as unspecified, since they create the same exported value in industry-standard exporters. I will propose that we change the behavior of empty-string values for span attributes (and resources, and span links, etc.) to be equivalent to an unspecified value. As a language-level supporting point, I'll note that in Go does not consider |
@jmacd this issue was about how do we model in the protocol unspecified vs empty, currently in the protocol we have a good way to support both, so I don't think it is still an issue for the protocol. Can we move your comment to a separate issue (maybe a new one)? |
This issue states:
|
I propose to close this issue. The matter is / will be resolved as follows:
We may update the SDK specification to state that when aggregating metric events for a given label key, and that label key has no specified value, and where the usage implies that string value is required, that the empty string shall be the preferred representation. It is as close to "No value" as we can get. |
This was discussed in the Metrics SIG--closing with the explanation above. |
The spec currently says:
The unspecified values are specifically called out and need to be supported explicitly in export data formats, which raised a debate here.
We need to clarify the need for "unspecified" values and if they are not necessary remove them from the spec.
The text was updated successfully, but these errors were encountered: