-
Notifications
You must be signed in to change notification settings - Fork 889
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
Decide if semantic conventions require that attribute names across all areas should be unique #815
Comments
I would agree with that, because we need to target the lowest common denominator backends that do not make structural distinction between resource and span attributes. For example, in Zipkin span every attribute will be in a single flat list, while Jaeger span can structurally distinguish resource and span attributes (but not attributes from multiple/hierarchical resources, if we had them). |
…antic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry#815
I strongly support the proposal that attribute and label names should have the same interpretation across OpenTelemetry. I expect that finished Span will be translated into Metric events, for example, where (a subset of) span attributes become metric labels. |
For the case where spans get converted to metric events, if you have What would you suggest for cases like this? I don't see a good way around it. Context: #739 |
…antic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry#815
@gfuller1 it is indeed a problem. A few possible solutions:
|
@tigrannajaryan for 1. I've heard that a lot of thought went into the decision for that around performance and other things so I agree that's a no go. For 2. I imagine querying backends could cause issues. If you want to see all events that have I'm curious what the benefits are to span attribute values being string or numeric. |
@jmacd how would you handle the above case for your scenario? |
Numeric attributes would normally make sense if you want to do any sort of arithmetic, aggregation. Obviously that's pointless for HTTP status codes, but can be quite meaningfull for other attributes. I am open to changing |
for status codes, having a numeric value does let you find ranges ( |
@jkwatson that's a good point. Arguably that should also work with strings: |
I wonder how many metric query engines support that kind of lexigraphic order querying? |
Minor correction: not "metric engines" but "tracing engines" since we are discussing the possibility to change the data type of "http.status_code" span attribute from integer to string. Your question is still valid, but I don't think we need to worry about it. OpenTelemetry introduces so much that there is a lot of other opportunities to implement nice features for engine vendors anyway. |
Heh. I keep forgetting New Relic is probably unique in that it's the same query engine for both. :) You are correct, though! |
…antic convention areas (#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: #815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (open-telemetry#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (open-telemetry#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (open-telemetry#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (open-telemetry#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (open-telemetry#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (open-telemetry#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (open-telemetry#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (open-telemetry#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (open-telemetry#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
…antic convention areas (open-telemetry#832) * Require that names and namespaces are one global space across all semantic convention areas We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It was not clear if the attribute names across all convention areas should be globally unique. This commit asserts that conventions are one space, they are not independent spaces with their own namespaces each. We prohibit using the same Span or Resource attribute name or metric label name but give them slightly different meanings or value sets. Resolves: open-telemetry/opentelemetry-specification#815 * Address PR comments Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
We have semantic conventions for Resources, Spans and Metrics (in the future also Logs are expected). It is not clear if the attribute names across all convention areas should be globally unique.
Raised here #807 (comment)
This needs to be resolved before GA since otherwise if there are any conflicts we won't be able to fix it in backward compatible manner.
The text was updated successfully, but these errors were encountered: