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

Logs API/SDK - Move LogRecord implementation details from API to SDK

Open lalitb opened this issue 2 years ago • 0 comments

As of now, the Logs API contains the implementation details for creation of LogRecord object. This should be ideally moved to SDK. The API should have minimal implementation details and storage allocation, and hence minimal performance overhead. Anyone wanting to create custom logs SDK will otherwise have to bear the baggage of these allocations happening in API.

This is also how trace signal is implemented, API has a Span trait, and it's Noop implementation, while the implementation details are in the Span structure in SDK.

lalitb avatar Aug 07 '23 22:08 lalitb