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

fix: OTLP JSON examples #516

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Conversation

bripkens
Copy link
Contributor

@bripkens bripkens commented Dec 15, 2023

Why

The example files do not follow the specification. 64 bit integers must be string
encoded
.

What

  • Fix the encoding in the examples
  • Add an example for log severityNumber to point at the enum encoding rules (to help folks with cases like these).

# Why
The example files do not follow the specification. 64 bit integers
must be [string
encoded](https://protobuf.dev/programming-guides/proto3/#json).

# What

 - Fix the encoding in the examples
 - Add an example for log `severityNumber` to point at the enum
   encoding rules.
@bripkens bripkens requested a review from a team December 15, 2023 14:01
Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

The numbers for in64 fields are acceptable when decoding (so not completely wrong as an example), but I agree it is better to show examples that match our encoding requirements too.

examples/logs.json Show resolved Hide resolved
@bogdandrutu bogdandrutu merged commit c56093a into open-telemetry:main Jan 9, 2024
16 checks passed
VinozzZ pushed a commit to VinozzZ/opentelemetry-proto that referenced this pull request Jun 21, 2024
# Why
The example files do not follow the specification. 64 bit integers
must be [string
encoded](https://protobuf.dev/programming-guides/proto3/#json).

# What

 - Fix the encoding in the examples
 - Add an example for log `severityNumber` to point at the enum
   encoding rules.
VinozzZ pushed a commit to VinozzZ/opentelemetry-proto that referenced this pull request Jun 21, 2024
# Why
The example files do not follow the specification. 64 bit integers
must be [string
encoded](https://protobuf.dev/programming-guides/proto3/#json).

# What

 - Fix the encoding in the examples
 - Add an example for log `severityNumber` to point at the enum
   encoding rules.
VinozzZ pushed a commit to VinozzZ/opentelemetry-proto that referenced this pull request Jun 21, 2024
# Why
The example files do not follow the specification. 64 bit integers
must be [string
encoded](https://protobuf.dev/programming-guides/proto3/#json).

# What

 - Fix the encoding in the examples
 - Add an example for log `severityNumber` to point at the enum
   encoding rules.
VinozzZ pushed a commit to VinozzZ/opentelemetry-proto that referenced this pull request Jun 21, 2024
# Why
The example files do not follow the specification. 64 bit integers
must be [string
encoded](https://protobuf.dev/programming-guides/proto3/#json).

# What

 - Fix the encoding in the examples
 - Add an example for log `severityNumber` to point at the enum
   encoding rules.
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.

5 participants