-
Notifications
You must be signed in to change notification settings - Fork 265
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
Inconsistent Span status field name: message in OTLP vs description in API #430
Inconsistent Span status field name: message in OTLP vs description in API #430
Comments
What's the proposed fix? One option is to do nothing, keep the field name in proto as is and keep the parameter name in the API as is. |
I would rename, and ask JSON to send both values, and receivers to parse both for 6m, without adding a new field with the old name as we did in case of library -> scope. |
From what I understand the previous approach of renaming a field using a graceful approach didn't make everyone happy, so we don't want to follow that approach anymore. What do we do instead? We can rename Thoughts? |
The issue with the previous approach was that it broke too many things. This proposal seems even more breaking so I'm not sure its any better.
The constant breaking of OTLP JSON has to stop or nobody will have confidence in the project. Regardless of what is decided here, I think we need to declare JSON stable as soon as possible. It keeps getting pushed back but at some point we have to say what we have is good enough and fields won't be renamed. I'm still not clear what happened to swift. Was hoping to get a summary from @bogdandrutu or @Aneurysm9 when it was discovered how the field rename broke swift. It was my understanding that renaming the field but keeping the same id should not have been breaking on the wire. Today in the maintainers call it seems like that might actually have been breaking? It's important because I think we should hold all renames until we know for certain what happened and that it can be prevented. |
Can we just change the name of the term in the spec from |
I think this is worth entertaining. Perhaps we can look into all languages and see if there are any that actually use named parameters. |
This is another option, i.e. do nothing, live with the name discrepancy. |
To summarize, 4 options to resolve this:
I added this to Spec SIG meeting agenda tomorrow. |
Another approach is to say in the specs |
See #431 |
We need a resolution for this before 1.0. Adding to the milestone. |
@tigrannajaryan please assign to me, I'll draft a proposal. |
In the proto:
https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/trace/v1/trace.proto#L264
In the specs:
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status
Proposal:
We should fix this, but we should not repeat the previous mistake of adding a new field with that name and simply rename. The JSON parser in collector will do the right thing.
The text was updated successfully, but these errors were encountered: