opentelemetry-specification icon indicating copy to clipboard operation
opentelemetry-specification copied to clipboard

Introduce Ergonomic EmitEvent API

Open trask opened this issue 10 months ago • 3 comments

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

trask avatar Jan 09 '25 18:01 trask