1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-16 10:19:23 +02:00
opentelemetry-go/api/core
Tyler Yahn 91091b44eb Add comments and test for 64-bit field alignment (#418)
* Add comments on needed filed alignment

Add comment about alignment requirements to all struct fields who's
values are passed to 64-bit atomic operations.

Update any struct's field ordering if one or more of those fields has
alignment requirements to support 64-bit atomic operations.

* Add 64-bit alignment tests

Most `struct` that have field alignment requirements are now statically
validated prior to testing. The only `struct`s not validated that have
these requirements are ones defined in tests themselves where multiple
`TestMain` functions would be needed to test them. Given the fields are
already identified with comments specifying the alignment requirements
and they are in the test themselves, this seems like an OK omission.

Co-authored-by: Liz Fong-Jones <elizabeth@ctyalcove.org>
2020-01-06 13:08:40 -05:00
..
doc.go Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00
key_test.go Consistently use pointer receivers for core.Number (#375) 2019-12-09 13:03:11 -08:00
key.go Add MarshalJSON for core.Value (#281) 2019-11-04 13:46:34 -06:00
number_test.go Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
number.go Consistently use pointer receivers for core.Number (#375) 2019-12-09 13:03:11 -08:00
numberkind_string.go Metrics SDK work-in-progress (#172) 2019-10-29 13:27:22 -07:00
rawhelpers.go Shrink core.Value (#256) 2019-10-30 15:01:19 -07:00
span_context_test.go Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00
span_context.go Unslice to simplify (#324) 2019-11-18 10:47:04 -08:00
valuetype_string.go Shrink core.Value (#256) 2019-10-30 15:01:19 -07:00