1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00
Files
opentelemetry-go/log
arjun 291140b0d8 log: Add Record.Clone (#7001)
Fixes #6986

This PR adds a `Clone()` method to the `log.Record` type.

The `Clone` method returns a copy of the record with no shared state,
allowing both the original and the clone to be modified independently.

This functionality mirrors the existing `sdk/log.Record.Clone()`
behavior and includes a corresponding unit test (`TestRecordClone`) to
ensure correctness.

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2025-07-15 09:50:43 +02:00
..
2025-06-25 08:41:12 +02:00
2024-03-26 20:13:54 +01:00
2025-07-15 09:50:43 +02:00
2025-07-15 09:50:43 +02:00