Make LogRecord immutable, simplifies concurrency #5779
Labels
area:logs
Part of OpenTelemetry logs
enhancement
New feature or request
pkg:SDK
Related to an SDK package
Problem Statement
I would propose to separate LogRecord struct into mutable vs immutable and pass immutable to Emit to avoid having to deal with concurrency issues.
Proposed Solution
We can achieve this without any heap allocations (interfaces) by having something like:
The text was updated successfully, but these errors were encountered: