Component(s)
pdata
What happened?
Describe the bug
If m and dst are equal and not empty, m.MoveTo(dst) results in empty maps dst and m.
Code:
|
func (m Map) MoveTo(dest Map) { |
Expectation
MoveTo() should be a no-op if m and dst or the underlying internal maps are equal (as in "using same memory region").
Collector version
main branch
Environment information
No response
OpenTelemetry Collector configuration
Log output
Additional context
No response