1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00
opentelemetry-go/api
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
..
core Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
distributedcontext Consistently use pointer receivers for core.Number (#375) 2019-12-09 13:03:11 -08:00
global s/options/config/ (#410) 2020-01-03 09:48:45 -08:00
key Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00
metric Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
propagators Rename CurrentSpan to SpanFromContext & SetCurrentSpan to ContextWithSpan (#379) 2019-12-11 08:51:32 -08:00
testharness Rename CurrentSpan to SpanFromContext & SetCurrentSpan to ContextWithSpan (#379) 2019-12-11 08:51:32 -08:00
trace fixed typo (#408) 2020-01-03 09:38:05 -08:00
unit Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00