mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-26 21:05:00 +02:00
3cbd967152
Good day, While working on https://github.com/open-telemetry/opentelemetry-go/pull/5858 I found some other possible improvements. This PR: - Adds an early return to `SetAttributes` when no attributes are provided. - Only increases `s.attributes` to guarantee that there is enough space for elements to be added. - Fixes and issue where `truncateAttr` was not used when a attribute was being updated in `addOverCapAttrs`. Thanks for reviewing and please let me know if any changes are needed. --------- Co-authored-by: Damien Mathieu <42@dmathieu.com> |
||
---|---|---|
.. | ||
instrumentation | ||
internal | ||
log | ||
metric | ||
resource | ||
trace | ||
go.mod | ||
go.sum | ||
README.md | ||
version_test.go | ||
version.go |