-
Notifications
You must be signed in to change notification settings - Fork 895
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
Rename event payload to body #4035
Conversation
As a point of order, this not an adequate explanation for the change. Decisions need to be documented. |
what are your thoughts around calling it "event body" (to align with the Logs SDK / proto field name)? |
IMO, this does not need to align because it's matching the field in the API/data model to the specific OTLP protocol. I think event data is more general (less log specific), and seems more natural for describing the data that the event carries. With that said, there was a consensus in the Event SIG on event data but not necessarily a strong opinion. For reference, we are already using |
If our general intention is to be more consistent, body is probably more consistent. We chose to use the same pipeline for EventLogger and Logger. If these are feeding into the same pipeline they should have the same named fields. |
Ok, so we had further discussion in the Event SIG today, and dove deep into the definition and motivation for having events in OpenTelemetry. We realized that making these kinds of design decisions without first defining the purpose of events was becoming difficult and somewhat arbitrary. You can find the proposed definition here #4045. Based on those definitions, we've changed our minds! Naming this field If there are objections we can of course discuss this further, but in that case I suggest we resolve the larger issue first. If there are no objections, I think it would be fine to update this PR to change everything to |
I've looked at the recording of the Event SIG and am happy with the direction of using |
Leftover after #4035 which changed `Payload` into `Body` in Events API
Leftover after open-telemetry#4035 which changed `Payload` into `Body` in Events API
We should be consistent in what we call the event payload/data/body field. This was discussed in the Event SIG meeting on 5/10 and agreed that it should be called
body
.Related:
event.data
attribute to provide mapping from span events to events semantic-conventions#954