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

Prohibit usage of enum value name strings in OTLP/JSON #2758

Merged

Conversation

tigrannajaryan
Copy link
Member

Resolves open-telemetry/opentelemetry-proto#424

This change disallows using enum value names as strings
in OTLP/JSON and requires to use enum integer values only.

This change is stacked on top of #2756
which needs to be merged first.

Copy link
Member

@dyladan dyladan left a comment

Choose a reason for hiding this comment

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

LGTM % grammar nits

specification/protocol/otlp.md Outdated Show resolved Hide resolved
specification/protocol/otlp.md Outdated Show resolved Hide resolved
specification/protocol/otlp.md Outdated Show resolved Hide resolved
specification/protocol/otlp.md Outdated Show resolved Hide resolved
Resolves open-telemetry/opentelemetry-proto#424

This change disallows using enum value names as strings
in OTLP/JSON and requires to use enum integer values only.
@tigrannajaryan tigrannajaryan force-pushed the feature/tigran/enums-otlp-json branch from 6550c72 to 10b025b Compare August 30, 2022 14:55
@carlosalberto carlosalberto added the spec:protocol Related to the specification/protocol directory label Sep 2, 2022
@bogdandrutu bogdandrutu merged commit 9920d5e into open-telemetry:main Sep 19, 2022
@tigrannajaryan tigrannajaryan deleted the feature/tigran/enums-otlp-json branch September 19, 2022 23:28
@tigrannajaryan tigrannajaryan mentioned this pull request Sep 28, 2022
9 tasks
tigrannajaryan added a commit to tigrannajaryan/opentelemetry-specification that referenced this pull request Oct 17, 2022
- The severityNumber field is an enum and must use a numeric value according this:
open-telemetry#2758
- Link to a more appropriate section of otlp.md doc.
tigrannajaryan added a commit to tigrannajaryan/opentelemetry-specification that referenced this pull request Nov 2, 2022
- The severityNumber field is an enum and must use a numeric value according this:
open-telemetry#2758
- Link to a more appropriate section of otlp.md doc.
tigrannajaryan added a commit to tigrannajaryan/opentelemetry-specification that referenced this pull request Nov 2, 2022
- The severityNumber field is an enum and must use a numeric value according this:
open-telemetry#2758
- Link to a more appropriate section of otlp.md doc.
tigrannajaryan added a commit that referenced this pull request Nov 3, 2022
- The severityNumber field is an enum and must use a numeric value according this:
#2758
- Link to a more appropriate section of otlp.md doc.
- Remove deprecatedCode
- Use numeric value for status code
lmolkova pushed a commit to lmolkova/opentelemetry-specification that referenced this pull request Nov 3, 2022
…metry#2886)

- The severityNumber field is an enum and must use a numeric value according this:
open-telemetry#2758
- Link to a more appropriate section of otlp.md doc.
- Remove deprecatedCode
- Use numeric value for status code
ChengJinbao added a commit to ChengJinbao/opentelemetry-specification that referenced this pull request Nov 16, 2022
- The severityNumber field is an enum and must use a numeric value according this:
open-telemetry/opentelemetry-specification#2758
- Link to a more appropriate section of otlp.md doc.
- Remove deprecatedCode
- Use numeric value for status code
joaopgrassi pushed a commit to dynatrace-oss-contrib/semantic-conventions that referenced this pull request Mar 21, 2024
- The severityNumber field is an enum and must use a numeric value according this:
open-telemetry/opentelemetry-specification#2758
- Link to a more appropriate section of otlp.md doc.
- Remove deprecatedCode
- Use numeric value for status code
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
…y#2758)

* Prohibit usage of enum value name strings in OTLP/JSON

Resolves open-telemetry/opentelemetry-proto#424

This change disallows using enum value names as strings
in OTLP/JSON and requires to use enum integer values only.

* Fix grammar

Co-authored-by: Bogdan Drutu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec:protocol Related to the specification/protocol directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do NOT guarantee string enum values backwards compatibility in JSON
9 participants