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

Event identifier of an integer type

Open pellared opened this issue 1 year ago • 3 comments

What are you trying to achieve?

It may be good to allow having EventId of an integer type (instead of EventName which is always as string) for performance reasons.

Additional context.

In .NET the EventId is a integer with optional name. https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.eventid.-ctor?view=net-8.0

Also see OTel C++:

  • https://github.com/open-telemetry/opentelemetry-cpp/blob/f69963f587b148d2eb20f7d30f8b4a1ccb184a6f/api/include/opentelemetry/logs/event_id.h

Related to:

  • https://github.com/open-telemetry/opentelemetry-specification/issues/4260

pellared avatar Nov 04 '24 07:11 pellared