Skip to content
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

Adjust field names of JSON output in compliance with OTLP/HTTP spec #327

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

sam-tombury
Copy link
Contributor

OTLP/HTTP spec states that JSON field names should be lowerCamelCased.

See JSON Protobuf Encoding, in particular:

The keys of JSON objects are field names converted to lowerCamelCase. Original field names are not valid to use as keys for JSON objects. For example, this is a valid JSON representation of a Resource: { "attributes": {...}, "droppedAttributesCount": 123 }, and this is NOT a valid representation: { "attributes": {...}, "dropped_attributes_count": 123 }.

JSON field names should be lowerCamelCased
Copy link
Contributor

@janstenpickle janstenpickle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@janstenpickle janstenpickle merged commit 3b8bd43 into trace4cats:master Aug 9, 2023
9 checks passed
@sam-tombury sam-tombury deleted the fix/otel-json-spec branch August 9, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants