Skip to content

SpanEvent and Event through LogRecord should be "unified" #3406

@jsuereth

Description

@jsuereth

What are you trying to achieve?

Whether or not a user leverages SpanEvent or LogRecord to fire events should be orthogonal to the representation of the data. If I decide to add an event to a Span, then I should have similar data-model to when I fire off an "unadorned" event via the Event API.

What did you expect to see?

Right now there are fields on LogRecord that do not exist on SpanEvent:

  • SeverityText
  • SeverityNumber
  • Body

I believe this need to be added to (or have a specified encoding in) SpanEvent.

Additional context.

I think we should not try to workaround the issue in particular domains, like: #2926

Instead, allowing events to flow as SpanEvent or LogEvent should both be viable choices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    spec:logsRelated to the specification/logs directoryspec:traceRelated to the specification/trace directorytriage:accepted:needs-sponsorReady to be implemented, but does not yet have a specification sponsor

    Type

    No type

    Projects

    Status

    Spec - Accepted

    Status

    Related

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions