Skip to content

Introduce Ergonomic EmitEvent API #4357

@trask

Description

@trask

As part of #4352, we are removing the EmitEvent API, since events can now be emitted using the generic Emit API and so the EmitEvent API isn't necessary for moving forward anymore.

We (Java SIG at least) would like to revisit introducing a more ergonomic Event API in the future once other parts of Events have settled down more (but potentially before we document on the website how to emit Events using the Java API).

We support #4352, because the EmitEvent API as specified today is not very ergonomic anyways, as it includes SeverityText and ObservedTimestamp which are more targeted at bridging.

We'd potentially like something more like the previous Event API: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.38.0/specification/logs/event-api.md#emit-event

cc @jack-berg

Metadata

Metadata

Assignees

No one assigned

    Labels

    sig-issueA specific SIG should look into this before discussing at the specspec:logsRelated to the specification/logs directory

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions