-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix OTLP/JSON to use lowerCamelCase keys #6287
Comments
this is not a bug correct? |
I think being non-compliant with a spec is a bug :-) |
I would not remove that for few months, since people may have already deployed apps that send the original proto names. Do you think that is not the case? |
I agree. Let's keep for now and remove in a few months. |
Note a bug discovered in the spec: open-telemetry/opentelemetry-proto#476 I would suggest to wait for resolution of that issue before we change anything in the Collector. |
@tigrannajaryan open-telemetry/opentelemetry-proto/issues/476 was resolved, and this still seems to be an issue: opentelemetry-collector/pdata/pmetric/json.go Line 208 in df4ba7d
Also, do we consider this a bug? Is this allowed after 1.0? |
From the November 15th SIG meeting, there are two questions here:
|
Copying the list from the Chosen Solution here:
Items 3 and 4 are the one's actionable for the Collector. Number 4 needs to be acted asap (if not already) and number 3 we can do on May 9, 2024 (one year after the OTLP spec PR was merged). |
I think I would prefer to remove it. It is code that needs to be maintained, it is not spec compliant and is not necessary. I feel that one year is enough grace period to deprecate it.
Not in the formal sense. We are simply making the implementation compliant with the spec. |
Okay, this is convincing to me, I filed #8974 to make it crystal clear that our IMO this clears out the way for pdata 1.0 :) |
…plicitly (#8974) Explicitly documents that the `JSONMarshaler` and `JSONUnmarshaler` as conforming to the format in the OTLP/JSON specification. The intent is to be explicit that we follow this spec and that deviations (such as supporting snake case) are bugs that can be removed in a minor version update. **Link to tracking Issue:** Relates to #6287
…plicitly (open-telemetry#8974) Explicitly documents that the `JSONMarshaler` and `JSONUnmarshaler` as conforming to the format in the OTLP/JSON specification. The intent is to be explicit that we follow this spec and that deviations (such as supporting snake case) are bugs that can be removed in a minor version update. **Link to tracking Issue:** Relates to open-telemetry#6287
Can we close this issue at this time? |
@atoulme No, we need to fix this by dropping support for lowerCamelCase on May next year. |
Once the change open-telemetry/opentelemetry-specification#2829 is released (likely in spec 1.15.0) we can update the OTLP implementations here to stop allowing original field names and only accept lowerCamelCase.
The text was updated successfully, but these errors were encountered: