-
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
Describe how to convert non-string primitives for protocols which only support strings #2343
Conversation
… that only support strings
Co-authored-by: Joshua MacDonald <[email protected]>
FYI, I have a related open OTEP which tells how to convert from values to OTLP value (the opposite direction of what this PR defines): open-telemetry/oteps#178 |
@dashpole I am confused about the changes you mentioned in the description. |
@bogdandrutu |
…y support strings (open-telemetry#2343) * Describe how to handle converting non-string primitives for protocols that only support strings * update wording to make clear that only non-string values are converted to strings * unify language * Update specification/common/common.md Co-authored-by: Joshua MacDonald <[email protected]> Co-authored-by: Joshua MacDonald <[email protected]> Co-authored-by: Bogdan Drutu <[email protected]>
Changes
Small change forked from #2266 (comment). Similarly to specifying how to represent arrays, we should specify how to represent primitives as strings if those are not supported. We should use the same string representation for primitive types as we do for primitives within arrays.
I'm not sure if this is actually allowed, since the spec is stable. But since this is a SHOULD, rather than a MUST, it wouldn't require breaking changes. If it isn't permitted, I can just document this in the Prometheus conversion spec itself.
@bogdandrutu I think this would require slight changes to https://github.com/open-telemetry/opentelemetry-collector/blob/30e6bf6eeee544e869411bf50c57447323d259d9/model/pdata/common.go#L370.
cc @jmacd @jsuereth