Logs API/SDK - Move LogRecord implementation details from API to SDK #1189
Labels
A-log
Area: Issues related to logs
priority:p2
Medium priority issues and bugs.
release:required-for-stable
Must be resolved before GA release, or nice to have before GA.
triage:accepted
Has been triaged and accepted.
version:breaking
Tag PR which will make breaking changes. Same as bumping the "major" in semver. https://semver.org/
Milestone
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 theSpan
structure in SDK.The text was updated successfully, but these errors were encountered: